sir.library: Often Used Simulations

sir.libraryR Documentation

Often Used Simulations

Description

Infectious disease time series simulated using sir, for use primarily in examples, tests, and vignettes. Users should not rely on simulation details, which may change between package versions.

Usage

data(sir.e01, package = "fastbeta") # "Example 01", and so on
data(sir.e02, package = "fastbeta")

Format

A “multiple time series” object, inheriting from class mts, always a subset of the result of a call to sir, discarding transient behaviour. Simulation parameters may be preserved as attributes.

Source

Scripts sourced by data to reproduce the simulations are located in the ‘data’ subdirectory of the fastbeta installation; see, e.g. system.file("data", "sir.e01.R", package = "fastbeta").

See Also

sir.

Examples


data(sir.e01, package = "fastbeta")
str(sir.e01)
plot(sir.e01)

data(sir.e02, package = "fastbeta")
str(sir.e02)
plot(sir.e02)

davidearn/fastbeta documentation built on April 30, 2024, 2:35 a.m.