AddModelIdentifier: Add a model identifier.

Description Usage Arguments Details Value See Also

View source: R/EpidemiologyModelModifications.R

Description

Adds a specified identifier id to all stocks and rates on the model m.

Usage

1
2
3
4
5
6
AddModelIdentifier(
  model,
  id,
  addToOtherLeftHandSidesQ = TRUE,
  birthsTermQ = FALSE
)

Arguments

model

A model object.

id

A number or string to used as ID.

addToOtherLeftHandSidesQ

Should the id added to other left hand side symbols or not?

birthsTermQ

Should the births term be included or not?

Details

The original model object has birthTermsQ in the closure of model$RHSFunction. (For now) it is easier to just have that parameter specified than imply it.

Value

A model.

See Also

Other Epidemiology Model Modifier functions: AddModelRates(), JoinModels(), MakeMigrationEquations(), TakeRHSFunctionBodyLines(), ToSiteCompartmentalModel()


antononcube/ECMMon-R documentation built on April 18, 2021, 10:47 a.m.