draw_incubation_period: Draw incubation periods for new cases from distribution...

Description Usage Arguments Value

View source: R/draw_distributions.R

Description

Draw incubation periods for new cases from distribution defined in sim_params$incub_params

Usage

1
draw_incubation_period(n, sim_params)

Arguments

n

Number of cases required

sim_params

sim_params object (a list) containing simulation parameters, where all of the information needed to describe the distribution is found within sim_params$incub_params Current distributions possible are:

  • lognormal: Delay is drawn from lognormal distribution with attributes "meanlog" and "sdlog" given in sim_params$incub_params. for traced cases. Untraced cases have a further delay of "delay" days.

  • weibull: Delay is drawn from a Weibull distribution with attributes "shape" and "scale" given in sim_params$incub_params. Traced cases have their delay set to zero days.

Value

A vector of length n for case incubation period (double)


bcgov/epi.branch.sim documentation built on Dec. 16, 2020, 5:49 a.m.