initSIR: Initial conditions for the SIR model

Description Usage Arguments Details Value Author(s)

Description

Takes a vector of initial conditions (in S, E(optionally), I, R) and returns a vector of initial conditions to use with S(E)IR models of arbitrary number of infectious stages and agegroups

Usage

1
initSIR(state, parameters, additional = c("Z"))

Arguments

state

named state vector

parameters

parameters of the model

additional

additional classes

Details

Multiple exposed or infectious stages might be introduced to change the distribution of waiting times, or because there are biologically distinct stages. Multiple age groups might be introduced to follow infection across age groups.

The number of age groups is determined by the number of S classes in the state vector

Value

a named vector of initial conditions

Author(s)

Sebastian Funk


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