View source: R/get_proportions_df.R
get_proportions_df | R Documentation |
Create a data frame with the proportion infected over time
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), ... )
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:
|
... |
Optional parameters to pass to |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.