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
.
Arguments
- data
A
data.table
in the format ofgeneration_times
.- 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
FALSE
. Should distributions be supplied as fixed values (vs with uncertainty)?
Examples
get_dist(
EpiNow2::generation_times, disease = "SARS-CoV-2", source = "ganyani"
)
#>
#> Uncertain gamma distribution with (untruncated) mean 3.6 (SD 0.71) and SD 3.1 (SD 0.77)
#>