View source: R/get_infection_density.R
get_infection_density | R Documentation |
Creates a dataframe containing probability of infection occurring at a particular date/time, given the symptom_begin_date.
get_infection_density( symptom_begin_date, max_incubation_days = 14, meanlog = 1.69, sdlog = 0.55 )
symptom_begin_date |
Date, when the person gets symptoms. |
max_incubation_days |
Number of incubation days. |
meanlog |
Number, the parameter of mean from the log-normal distribution. |
sdlog |
Number, the parameter of sd from the log-normal distribution. |
meanlog and sdlog are the log-normal distribution parameters derived from the incubation period characteristics described in Xin et al. (2021).
Dataframe with dates and probability of infection.
Xin H, Wong JY, Murphy C et al. (2021) "The Incubation Period Distribution of Coronavirus Disease 2019: A Systematic Review and Meta-Analysis". Clinical Infectious Diseases, 73(12): 2344-2352.
get_infection_density(as.Date("2022-03-22")) get_infection_density(as.Date("2022-03-22"), max_incubation_days = 14, meanlog = 1.69, sdlog = 0.55)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.