ReinfectionModel: Create a ReinfectionModel object, which determines whether...

Description Usage Arguments Details Examples

View source: R/reinfectionModel.R

Description

Create a ReinfectionModel object, which determines whether and how individuals may return to the susceptible population after an infection runs its course.

Usage

1
2
3
4
5
6
ReinfectionModel(
  reinfectMode = c("SEIR", "SEIRS", "Fixed"),
  X_prs = NA,
  priorPrecision = NA,
  priorMean = NA
)

Arguments

reinfectMode

a string equal to one of: "SEIR" , "SEIRS", or "Fixed", SEIR models include no reinfection. SEIRS models include a reinfection process, and Fixed models allow reinfection, but do not estimate the parameters involved. Currently, only SEIR and SEIRS modes are supported.

X_prs

a $T$ by $p$ design matrix, which must be specified for SEIRS and Fixed models.

priorPrecision

the prior precisions for each of the reinfection parameters

priorMean

the prior means for each of the reinfection parameters

Details

SEIR models are probably the most commonly employed version of compartmental epidemic models today, and are specified using a simple SEIR reinfection model (i.e., a model which introduces no reinfection process). On the other hand, there are some diseases which must be modeled more flexibly, for individuals are not permanently (over the course of a typical study period) removed from the susceptible population by immunity or death after an infection.

Examples

1
reinfectionModel = ReinfectionModel("SEIR")

grantbrown/ABSEIR documentation built on Oct. 14, 2021, 2:32 p.m.