inhomoSIRSGillespie: Modified inhomogeneous Gillespie algorithm

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Uses a modified Gillespie algorithm to simulate the numbers of susceptible and infected individuals forward in time when value of environmental force of infection changes

Usage

1
2
inhomoSIRSGillespie(startState, popSize, startTime, intervalLength, parameters,
  alphas, allbreaks)

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

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

alphas

Numeric vector containing the values of alpha

allbreaks

Numeric vector containing the times at which the value of alpha changes

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.