seir.library {fastbeta} | R Documentation |
Often Used Simulations
Description
Infectious disease time series simulated using seir
, for
use primarily in examples, tests, and vignettes. Users should not rely
on simulation details, which may change between package versions.
Note that simulation code depends on availability of suggested packages
adaptivetau and deSolve. If the dependency cannot be loaded
then the value of the data set is NULL
.
Usage
## if (requireNamespace("deSolve"))
data(seir.ts01, package = "fastbeta")
## else ...
## if (requireNamespace("adaptivetau"))
data(seir.ts02, package = "fastbeta")
## else ...
Format
A “multiple time series” object, inheriting from class
mts
, always a subset of the result of a call to
seir
, discarding transient behaviour. Simulation
parameters may be preserved as attributes.
Source
Scripts sourced by data
to reproduce the simulations are
located in subdirectory ‘data’ of the fastbeta installation;
see, e.g.
system.file("data", "seir.ts01.R", package = "fastbeta")
.
See Also
seir
.
Examples
if (requireNamespace("deSolve")) withAutoprint({
data(seir.ts01, package = "fastbeta")
str(seir.ts01)
plot(seir.ts01)
})
if (requireNamespace("adaptivetau")) withAutoprint({
data(seir.ts02, package = "fastbeta")
str(seir.ts02)
plot(seir.ts02)
})