get_dist {EpiNow2} | R Documentation |
Get a Literature Distribution
Description
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
.
Usage
get_dist(data, disease, source, max_value = 15, fixed = FALSE)
Arguments
data |
A |
disease |
A character string indicating the disease of interest. |
source |
A character string indicating the source of interest. |
max_value |
Numeric, the maximum value to allow. Defaults to 15 days. |
fixed |
Logical, defaults to |
Value
A list defining a distribution
Author(s)
Sam Abbott
Examples
get_dist(
EpiNow2::generation_times, disease = "SARS-CoV-2", source = "ganyani"
)
[Package EpiNow2 version 1.4.0 Index]