draw_generation_interval: Generate generation intervals for potential secondary...

Description Usage Arguments Value

View source: R/draw_distributions.R

Description

Generation intervals for each case's potential secondary infections are drawn from distribution defined in sim_params$generation_int_params

Usage

1
draw_generation_interval(n, incubation_length, sim_params)

Arguments

n

Number of potential secondary infections for this case

incubation_length

Incubation period of this case (used in skew normal distribution only)

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$generation_int_params. Current distributions possible are:

  • skew_norm: Drawn from skew normal distribution with xi set to the case's incubation period, and attributes "omega" and "alpha" given in sim_params$generation_int_params. This is what Hellewell uses.

  • gamma: Drawn from a gamma distribution with attributes "shape" and "rate" given in sim_params$generation_int_params.

Value

A vector of length n for generation intervals of the case's potential secondary infections


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