summary.dcm | R Documentation |
Extracts and prints model statistics solved with dcm
.
## S3 method for class 'dcm'
summary(object, at, run = 1, digits = 3, ...)
object |
An |
at |
Time step for model statistics. |
run |
Model run number, for |
digits |
Number of significant digits to print. |
... |
Additional summary function arguments (not used). |
This function provides summary statistics for the main epidemiological
outcomes (state and transition size and prevalence) from a dcm
model.
Time-specific summary measures are provided, so it is necessary to input a
time of interest. For multiple-run models (sensitivity analyses), input a
model run number. See examples below.
dcm
## Deterministic SIR model with varying act.rate
param <- param.dcm(inf.prob = 0.2, act.rate = 2:4, rec.rate = 1/3,
a.rate = 0.011, ds.rate = 0.01,
di.rate = 0.03, dr.rate = 0.01)
init <- init.dcm(s.num = 1000, i.num = 1, r.num = 0)
control <- control.dcm(type = "SIR", nsteps = 50)
mod <- dcm(param, init, control)
summary(mod, at = 25, run = 1)
summary(mod, at = 25, run = 3)
summary(mod, at = 26, run = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.