Learn R Programming

EpiNow2 (version 1.4.0)

delay_opts: Delay Distribution Options

Description

[Stable] Returns delay distributions formatted for usage by downstream functions.

Usage

delay_opts(dist = dist_spec(), ..., fixed = FALSE)

Value

A list summarising the input delay distributions.

Arguments

dist

A delay distribution or series of delay distributions generated using dist_spec(). Default is an empty call to dist_spec(), i.e. no delay

...

deprecated; use dist instead

fixed

deprecated; use dist instead

Author

Sam Abbott

Sebastian Funk

See Also

convert_to_logmean convert_to_logsd bootstrapped_dist_fit dist_spec

Examples

Run this code
# 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)

Run the code above in your browser using DataLab