gt_opts | R Documentation |
Returns generation time parameters in a format for lower level model use.
gt_opts(
dist = Fixed(1),
...,
disease,
source,
max = 14,
fixed = FALSE,
default_tolerance = 0.001,
weight_prior = TRUE
)
generation_time_opts(
dist = Fixed(1),
...,
disease,
source,
max = 14,
fixed = FALSE,
default_tolerance = 0.001,
weight_prior = TRUE
)
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 |
default_tolerance |
Numeric; default tolerance to be used if an
unconstrained distribution is passed as |
weight_prior |
Logical; if TRUE (default), any priors given in |
A <generation_time_opts>
object summarising the input delay
distributions.
convert_to_logmean()
convert_to_logsd()
bootstrapped_dist_fit()
Gamma()
LogNormal()
Fixed()
# 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
gt_opts(example_generation_time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.