Learn R Programming

EpiModel (version 2.0.1)

init.dcm: Initial Conditions for Deterministic Compartmental Models

Description

Sets the initial conditions for deterministic compartmental models simulated with dcm.

Usage

init.dcm(s.num, i.num, r.num, s.num.g2, i.num.g2, r.num.g2, ...)

Arguments

s.num

Number of initial susceptible. For two-group models, this is the number of initial group 1 susceptible.

i.num

Number of initial infected. For two-group models, this is the number of initial group 1 infected.

r.num

Number of initial recovered. For two-group models, this is the number of initial group 1 recovered. This parameter is only used for the SIR model type.

s.num.g2

Number of initial susceptible in group 2. This parameter is only used for two-group models.

i.num.g2

Number of initial infected in group 2. This parameter is only used for two-group models.

r.num.g2

Number of initial recovered in group 2. This parameter is only used for two-group SIR models.

...

Additional initial conditions passed to model.

Details

The initial conditions for a model solved with dcm should be input into the init.dcm function. This function handles initial conditions for both base model types and original models. For an overview of initial conditions for base DCM class models, consult the Basic DCMs tutorial.

Original models may use the parameter names listed as arguments here, a new set of names, or a combination of both. With new models, initial conditions must be input in the same order that the solved derivatives from the model are output. More details on this requirement are outlined in the Solving New DCMs tutorial.

See Also

Use param.dcm to specify model parameters and control.dcm to specify the control settings. Run the parameterized model with dcm.