Description Usage Arguments Value
View source: R/covid_status_functions.R
Susceptible individuals are assigned COVID through a Bernoulli draw (rbinom) based on their probability of becoming a COVID case.
1 | case_assign(df, tmp.dir = getwd(), save_output = TRUE, seed = NULL)
|
df |
Input list of the model - output of covid_prob function |
tmp.dir |
Directory for saving a csv recording the number of new cases each day |
save_output |
Logical. Should the number of new cases be saved as output. |
seed |
Seed for model run |
An updated version of the input list with the new cases assigned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.