Learn R Programming

EpiModel (version 0.25)

statsDCM: Extract Model Statistics

Description

This function extracts and prints model statistics solved with the mod. class functions.

Usage

statsDCM(out, time, run = 1, digits = 3, console = TRUE)

Arguments

out
array containing model results
time
timestep for model statistics
run
run number for model if sensitivity analyses are conducted
digits
number of significant digits to print
console
print to R console

Examples

Run this code
out <- epiDCM(type='SIR', s.num=1000, i.num=1, r.num=0,
                beta=0.2, cont=2:8, nu=1/3,
                b=0.011, ms=0.01, mi=0.03, mr=0.01,
                dt=500, verbose=TRUE)
statsDCM(out, time=25, run=1)
statsDCM(out, time=25, run=7)
statsDCM(out, time=26, run=7)

Run the code above in your browser using DataLab