Generate a fake data set with covariates age, sex, and zip code.
The number of population units.
This simulation is vaguely inspired by the French dataset on multiple sclerosis prevalence (El Adssi et. al., 2012). It is used to create a three-list capture-recapture system with unit-level independence between lists. Capture probabilities are constant (for simplicity!) across lists, but not across population units. The heterogeneity is a function of the covariates: age, sex, and zip code. We code zip here as ‘a’, ‘b’, ‘c’, ‘d’.
A data.frame containing the covariates and capture histories associated with each observed unit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.