7 Sampling
To create different sampling schemes, we can use the sample arguments in the simulate_population()
function, for example:
= "nested",
sample_type = cbind(individual=c(10, 15),observation=c(10, 5)), sample_param
There are three different types of sampling ‘nested’, ‘missing’ and ‘temporal’, each of which are outlined below.
The sample arguments create different datasets for each population that has been simulated, and you can then use the function get_sample_data()
to extract the sampled data.