generation_time_opts {EpiNow2} | R Documentation |
Generation Time Distribution Options
Description
Returns generation time parameters in a format for lower level model use.
Usage
generation_time_opts(
dist = Fixed(1),
...,
disease,
source,
max = 14,
fixed = FALSE,
tolerance = 0.001,
weight_prior = TRUE
)
Arguments
dist |
A delay distribution or series of delay distributions . If no distribution is given a fixed generation time of 1 will be assumed. |
... |
deprecated; use |
disease |
deprecated; use |
source |
deprecated; use |
max |
deprecated; use |
fixed |
deprecated; use |
tolerance |
Numeric; the desired tolerance level. |
weight_prior |
Logical; if TRUE (default), any priors given in |
Value
A <generation_time_opts>
object summarising the input delay
distributions.
See Also
convert_to_logmean()
convert_to_logsd()
bootstrapped_dist_fit()
Gamma()
LogNormal()
Fixed()
Examples
# default settings with a fixed generation time of 1
generation_time_opts()
# A fixed gamma distributed generation time
generation_time_opts(Gamma(mean = 3, sd = 2, max = 14))
# An uncertain gamma distributed generation time
generation_time_opts(
Gamma(
mean = Normal(mean = 3, sd = 1),
sd = Normal(mean = 2, sd = 0.5),
max = 14
)
)
# An example generation time
generation_time_opts(example_generation_time)