Create a list of delay distributions to run the ringbp model
delay_opts(incubation_period, onset_to_isolation)
a function
: a random number generating
function
that samples from incubation period distribution, the
function
accepts a single integer
argument specifying the number of
times to sample the incubation period (i.e. length of the function
output).
a function
: a random number generating
function
that accepts a single integer
argument specifying the
length of the function
output.
A list
with class <ringbp_delay_opts>
.
delay_opts(
incubation_period = \(n) rweibull(n = n, shape = 2.32, scale = 6.49),
onset_to_isolation = \(n) rweibull(n = n, shape = 1.65, scale = 4.28)
)
#> $incubation_period
#> function (n)
#> rweibull(n = n, shape = 2.32, scale = 6.49)
#> <environment: 0x556a5a792e38>
#>
#> $onset_to_isolation
#> function (n)
#> rweibull(n = n, shape = 1.65, scale = 4.28)
#> <environment: 0x556a5a792e38>
#>
#> attr(,"class")
#> [1] "ringbp_delay_opts"