Description Usage Format Examples
This data is made from the SIR DCM/ICM example in the EpiModel vignette found here. We run the discrete compartmental model (DCM) for 300 steps and set the birth and death rates (a.rate, ds.rate, di.rate, dr.rate) to zero. This is object is of class dcm
. The output details can be found with ?EpiModel::dcm
.
1 |
a dcm
object from the EpiModel
package. This contains the following elements:
the epidemic parameters passed into the model through param, with additional parameters added as necessary.
the control settings passed into the model through control, with additional controls added as necessary.
a list of data frames, one for each epidemiological output from the model. Outputs for base models always include the size of each compartment, as well as flows in, out of, and between compartments.
1 2 3 4 5 | ## Look at structure
str(EpiModel_det)
## Look at SIR values
head(do.call('cbind', EpiModel_det$epi[c("s.num", "i.num", "r.num")]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.