powered by
Search a data frame for a distribution and return it in the format expected by delay_opts() and the generation_time argument of epinow and estimate_infections.
delay_opts()
generation_time
epinow
estimate_infections
get_dist(data, disease, source, max_value = 15, fixed = FALSE)
A list defining a distribution
A data.table in the format of generation_times.
data.table
generation_times
A character string indicating the disease of interest.
A character string indicating the source of interest.
Numeric, the maximum value to allow. Defaults to 15 days.
Logical, defaults to FALSE. Should distributions be supplied as fixed values (vs with uncertainty)?
FALSE
Sam Abbott
get_dist(EpiNow2::generation_times, disease = "SARS-CoV-2", source = "ganyani")
Run the code above in your browser using DataLab