generate_imported_infections: Adds imported infections to simulation

Description Usage Arguments Details Value

View source: R/generate_new_infections.R

Description

The number of imported infections may be a deterministic or stochastic value.

Usage

1
generate_imported_infections(sim_params, sim_status)

Arguments

sim_params

sim_params object (a list) containing simulation parameters

sim_status

sim_status object (a list) containing simulation state vector

Details

The list object sim_params$import_params determines how imported cases are added to the simulation. The following import types are supported, which is chosen by sim_params$import_params$type:

type="None" or "none"

No cases are imported.

type="constant"

Each day, the number of imported cases is equal to a constant value, set by sim_params$import_params$rate.

type="constant_two_phase"

Same as the above, but with two possible constant values. For times prior to sim_params$import_params$delay, the rate is sim_params$import_params$rate1. After this time, the rate is sim_params$import_params$rate2.

type="daily_constant"

Each day, the number of imported cases is given by a vector defined by sim_params$import_params$rate, which should have length equal to the number of days in the simulation.

type="poisson"

Each day, the number of imported cases is drawn from a Poisson distribution with mean set by sim_params$import_params$rate.

type="daily_risk"

Each day, the number of imported cases is drawn from a Poisson distribution with mean equal to the daily risk. The daily risk is given by a vector defined by sim_params$import_params$risk, which should have length equal to the number of days in the simulation.

Value

A list containing


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