Description Usage Arguments Value See Also
Create a random dataset of families
1 2 3 4 5 6 | create_family_structure_data(
seed = -1,
n = 1000,
adult_index_case_prob = 0.8,
T_max = 21
)
|
seed |
seed for the simulation |
n |
number of families |
adult_index_case_prob |
probability that the index case is adult |
T_max |
number of days to run epidemic (scalar or vector of size n) |
a the result as a tibble including the number of adults, the number of children, the index case, and the epidemic duration (in days) of each family
create_simulated_data
run_simulation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.