Description Usage Arguments Details Examples
View source: R/initialValueContainer.R
Create an InitialValueContainer object, which catalogues the starting population values for an epidemic.
1 2 3 4 5 6 7 8 | InitialValueContainer(
S0,
E0,
I0,
R0,
type = c("identity", "uniform"),
params = list()
)
|
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 |
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.
1 2 3 4 | inits <- InitialValueContainer(c(1000,1000),
c(10,0),
c(0,0),
c(100,100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.