Description Usage Arguments Value
Modified Poisson tau-leaping algorithm. Uses a tau-leaping algorithm to simulate S, I, W, and R forward in time when value of environmental force of infection remains constant
1 2 | ModPoissonTLforSIWR(startState, popSize, Wmax, startTime, intervalLength,
parameters, alpha, deltatint, ncrit)
|
startState |
Integer vector of size three containing the initial values for S, I, and W |
popSize |
Population size |
startTime |
Start time of simulation |
intervalLength |
Length of simulation interval |
parameters |
Numeric vector of size six containing the current values of the infectious contact rate, betaW, the recovery rate, the rate at which immunity is lost, kappa, and eta |
alpha |
The value of the time-varying environmental force of infection |
deltatint |
Initial value to use for tau in tau-leaping algorithm |
ncrit |
Critical number |
Vector containing values of S, I, and W at the end of the simulation interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.