InitialValueContainer: Create an InitialValueContainer object, which catalogues the...

Description Usage Arguments Details Examples

View source: R/initialValueContainer.R

Description

Create an InitialValueContainer object, which catalogues the starting population values for an epidemic.

Usage

1
2
3
4
5
6
7
8
InitialValueContainer(
  S0,
  E0,
  I0,
  R0,
  type = c("identity", "uniform"),
  params = list()
)

Arguments

S0

An integer vector of susceptible counts

E0

An integer vector of exposed counts

I0

An integer vector of infectious counts

R0

AN integer vector of removed counts

Details

While approximate Bayesian techniques avoid the need to specify starting values for the spatiotemporally varying population values (i.e. the current number of susceptible, exposed, infectious, and removed individuals), we still need to specify how many individuals start out in each of these categories. In the future, we may support the specification of priors on these terms, but for now they are considered fixed.

Examples

1
2
3
4
inits <- InitialValueContainer(c(1000,1000),
                                          c(10,0),
                                          c(0,0),
                                          c(100,100))

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