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

View source: R/get_dqc_equilibrium.R

get_dqc_equilibriumR Documentation

Calculate the Detected-Quarantine-Community vector equilibrium

Description

This function iterates through the Detected-Quarantine-Community (DQC) vector until an equilibrium is reached at a given tolerance.

Usage

get_dqc_equilibrium(
  init = c(Ds = 0, Da = 0, Qcds = 0, Qhds = 0, Qcda = 0, Qhda = 0, Qq = 0, Cs = 0.8, Ca
    = 0.2),
  tolerance = 1e-04,
  burn_in = 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.

tolerance

Numeric value between 0 and 1. Tolerance to determine whether an equilibrium has been met. Default: 1e-4

burn_in

Numeric positive value. Minimum number of iterations to run. Default: 10.

...

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

Value

A named vector, the Detected-Quarantine-Community proportions at equilibrium.


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