ModPoissonTL: Modified homogeneous Poisson tau-leaping algorithm

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Modified Poisson tau-leaping algorithm. Uses a tau-leaping algorithm to simulate the numbers of susceptible and infected individuals forward in time when value of environmental force of infection remains constant

Usage

1
2
ModPoissonTL(startState, popSize, startTime, intervalLength, parameters, alpha,
  deltatint, ncrit)

Arguments

startState

Integer vector of size two containing the initial number of susceptible and infected individuals respectively

popSize

Population size

startTime

Start time of simulation

intervalLength

Length of simulation interval

parameters

parameters Numeric vector of size seven containing the current values of the infectious contact rate, the recovery rate, the rate at which immunity is lost, and the powers

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

Value

Vector containing number of susceptible and infected at the end of the simulation interval


vnminin/bayessir documentation built on May 3, 2019, 6:17 p.m.