get_dqc_stoch: Calculate the Detected-Quarantine-Community vector...

View source: R/get_dqc_stoch.R

get_dqc_stochR Documentation

Calculate the Detected-Quarantine-Community vector stochastically

Description

This function iterates through the Detected-Quarantine-Community (DQC) vector stochastically for a set number of generations.

Usage

get_dqc_stoch(
  init = c(Ds = 0, Da = 0, Qcds = 0, Qhds = 0, Qcda = 0, Qhda = 0, Qq = 0, Cs = 0.8, Ca
    = 0.2),
  n_generation = 10,
  ...
)

Arguments

init

Named vector of initial values indicating proportion infected in each detected-community-quarantine category. All elements of the vector must sum to 1. Must include the names: Ds, Da, Qcds, Qhds, Qcda, Qhda, Qq, Cs, Ca. Default: c(Ds = 0, Da = 0, Qcds = 0, Qhds = 0, Qcda = 0, Qhda = 0, Qq = 0, Cs = 0.8, Ca = 0.2) See init_dqc() to generate this vector.

n_generation

Numeric positive value. Number of iterations to run. Default: 10.

...

Optional parameters to pass to get_infect_mat, get_detect_mat(), and get_intermediate_inf. See get_infect_mat, get_detect_mat(), and get_intermediate_inf for defaults.

Value

A named vector, the Detected-Quarantine-Community proportions after some number of generations


HopkinsIDD/tti documentation built on May 24, 2022, 1:11 a.m.