seir.stochastic: calculates a stochastic trajectory of the S(E)IR model

Description Usage Arguments Value Author(s)

Description

This is being used by runSIR.

Usage

1
seir.stochastic(parameters, init, seed = NA, transient = 0, tmax = 2128)

Arguments

parameters

parameters of the S(E)IR mode

init

initial state

seed

random seed. If set to NA, will use R's current seed

transient

transient time. If this is >0, the model will be run deterministically for the time specified here before running the stochastic model. Only the outcome of the stochastic model is recorded

tmax

the maximum time to which to run the model (form 0)

init.params

whether the initial conditions are passed as parameters

Value

a stochastic trajectory of the model.

Author(s)

Sebastian Funk.


sbfnk/dynmod documentation built on May 29, 2019, 3:21 p.m.