get_proportions_df: Create a data frame with the proportion infected over time

View source: R/get_proportions_df.R

get_proportions_dfR Documentation

Create a data frame with the proportion infected over time

Description

Create a data frame with the proportion infected over time

Usage

get_proportions_df(
  duration,
  init = c(Ds = 0, Da = 0, Qcds = 0, Qhds = 0, Qcda = 0, Qhda = 0, Qq = 0, Cs = 0.8, Ca
    = 0.2),
  ...
)

Arguments

duration

Numeric value greater than 0. The number of iterations you would like to examine.

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.

...

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

Value

data frame with three columns:

  • t: the time

  • prop_infected: the proportion infected

  • r_effective: the effective reproduction number at the given time point

  • category: the category


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