Repository for package accompanying paper “Explaining Recruitment to Extremism: A Bayesian Hierarchical Case-Control Approach.”
Overview
The goal of this package is to make it easy for the user to:
-
Prepare data for estimation procedure (
data.prep()) -
Estimate Bayesian case-control models (
fit())
You can begin using the package by loading into memory using:
devtools::install_github("cjbarrie/extremeR")Getting started
There are two principal extremeR functions.
-
Preparing the data is achieved with
data.prep(), which allows the user to bundle the main relevant data source (case-control data and shapefile data) into a list object for estimation. -
Estimating models with different specifications is achieved with
fit(), which allows the user to estimate models described in the associated article, and to specify hierarchical structure, priors, contamination layer etc.
