Skip to contents

Prepare data

Function to prepare data in format required for estimation procedure

data.prep()
Prepare data

Estimate model

Function to estimate a Bayesian case-control model.

fit()
Function to estimate a Bayesian case-control model.

Run simulations

Function to simulate data from a relevant data generating process (DGP)

dgf()
Simulate data generating process

Shapefile data

Shapefile data for dgf() function and main case-control examples.

scotland
Shapefile data for dgf() function: scotland
pennLC
Shapefile data for dgf() function: Penn
NYleukemia
Shapefile data for dgf() function: New York
shape_egypt
Shapefile data for Egypt

Case-control data

Example case-control data.

survey_egypt
Case-control data for Egypt ISIS cases and controls
denom_mena
Denominator data for MENA countries
data.list
Formatted shape and case-control data for Egypt ISIS cases and controls
mon_egypt
Monitor object from rstan::mon() of class "simsummary" "data.frame"

Helper functions

Helper functions to check graph connected. Created by Mitzi Morris [here]*(https://github.com/stan-dev/example-models/blob/master/knitr/car-iar-poisson/nb_data_funs.R)

testconnected()
Test graph connected
isdisconnected()
Check graph disconnected