View source: R/get_misc_infection_density.R
get_misc_infection_density | R Documentation |
Creates a dataframe containing probability of infection occurring at a particular dates/times, given the symptom_begin_dates and number_of_persons per date.
get_misc_infection_density( symptom_begin_dates, number_of_persons, max_incubation_days = 17, meanlog = 1.69, sdlog = 0.55 )
symptom_begin_dates |
Dates, when the persons get symptoms. |
number_of_persons |
Number of persons who get symptoms on each date. |
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.
symptom_begin_dates <- c(as.Date("2022-03-22"), as.Date("2022-03-26")) number_of_persons <- c(3,1) get_misc_infection_density(symptom_begin_dates, number_of_persons)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.