summary.icm | R Documentation |
Extracts and prints model statistics simulated with icm
.
## S3 method for class 'icm'
summary(object, at, digits = 3, ...)
object |
An |
at |
Time step for model statistics. |
digits |
Number of significant digits to print. |
... |
Additional summary function arguments. |
This function provides summary statistics for the main epidemiological
outcomes (state and transition size and prevalence) from an icm
model.
Time-specific summary measures are provided, so it is necessary to input a
time of interest.
icm
## Stochastic ICM SI model with 3 simulations
param <- param.icm(inf.prob = 0.2, act.rate = 1)
init <- init.icm(s.num = 500, i.num = 1)
control <- control.icm(type = "SI", nsteps = 50,
nsims = 5, verbose = FALSE)
mod <- icm(param, init, control)
summary(mod, at = 25)
summary(mod, at = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.