Description Usage Arguments Value See Also
Simulate nsim simulations of an epidemic on a dataset of households
1 2 3 4 5 6 7 8 9 10 11 | run_simulation(
nsim = 1,
family_structure_data,
beta_aa,
gamma_val,
delta_val,
P = NULL,
T_max = 45,
future_plan = "sequential",
dictionary_path = NULL
)
|
nsim |
number of simulation to run |
family_structure_data |
dataset of families including the number of adults, number of children, and the index case (see |
beta_aa |
proabilty that an adult will infect an adult (must be appear in the dictionary) |
gamma_val |
relative susceptibility of children to adults (must be appear in the dictionary) |
delta_val |
relative infectivity of children to adults (must be appear in the dictionary) |
P |
a vector of generation time distribution (default is generated by 'load_P“) |
T_max |
the length of the epidemic within the family |
future_plan |
the plan for using the future package (default is |
dictionary_path |
path to the folder that contain the dictionaries |
a tibble with the maximum likelihood for each simulated dataset
load_P
create_family_structure_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.