delay_opts {EpiNow2} | R Documentation |
Delay Distribution Options
Description
Returns delay distributions formatted for usage by downstream functions.
Usage
delay_opts(dist = dist_spec(), ..., fixed = FALSE)
Arguments
dist |
A delay distribution or series of delay distributions generated
using |
... |
deprecated; use |
fixed |
deprecated; use |
Value
A list summarising the input delay distributions.
Author(s)
Sam Abbott
Sebastian Funk
See Also
convert_to_logmean convert_to_logsd bootstrapped_dist_fit dist_spec
Examples
# no delays
delay_opts()
# A single delay that has uncertainty
delay <- dist_spec(mean = 1, mean_sd = 0.2, sd = 0.5, sd_sd = 0.1, max = 15)
delay_opts(delay)
# A single delay without uncertainty
delay <- dist_spec(mean = 1, sd = 0.5, max = 15)
delay_opts(delay)
# Multiple delays (in this case twice the same)
delay_opts(delay + delay)
[Package EpiNow2 version 1.4.0 Index]