Description Usage Arguments Value
View source: R/covid_status_functions.R
Each new case is assigned a number of days an individual is both presymptomatic and symptomatic for.
1 2 3 4 5 6 7 8 9 10 11 12 13 | infection_length(
df,
exposed_dist = "weibull",
exposed_mean = 3.2,
exposed_sd = 1,
presymp_dist = "weibull",
presymp_mean = 3.2,
presymp_sd = 1,
infection_dist = "normal",
infection_mean = 14,
infection_sd = 2,
seed = NULL
)
|
df |
Input list of the function - output of an ____assign function |
exposed_dist |
The distribution of the length of the exposed stage - options: weibull, lognormal, normal |
exposed_mean |
The mean length of the exposed stage |
exposed_sd |
The standard deviation of the length of the exposed stage |
presymp_dist |
The distribution of the length of the presymptomatic stage - options: weibull, lognormal, normal |
presymp_mean |
The mean length of the presymptomatic stage |
presymp_sd |
The standard deviation of the length of the presymptomatic stage |
infection_dist |
The distribution of the length of the symptomatic stage |
infection_mean |
The mean length of the symptomatic stage |
infection_sd |
The standard deviation of the length of the symptomatic stage |
seed |
Seed for model run |
An updated version of the input list with the new cases having infection lengths assigned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.