Learn R Programming

lllcrc (version 1.2)

french.1: A fake dataset, french.1

Description

Generate a fake dataset, for simulation purposes, that is somewhat similar to the data on multiple sclerosis in the Lorraine Region of France as in El Adssi et. al. (2012).

Usage

french.1(pop, n, k)

Arguments

pop
A data frame containing a template for the population.
n
The size of the target population.
k
The number of lists.

Value

A data frame, which gets passed back up to the main function poptop for a bit of cleaning.

Details

This function is the guts for a capture-recapture experiment that is specified by the heters argument in the function poptop; with a minor revision ot the function captures, you could create your own guts function for a very different capture-recapture experiment that sits within the same coding framework.

References

El Adssi H, Debouverie M and Guillemin F (2012). "Estimating the prevalence and incidence of multiple sclerosis in the Lorraine region, France, by the capture-Recapture method." Multiple Sclerosis Journal, 18(9), pp. 1244-1250.