SimTsir2: Function to simulate the seasonally-forced TSIR

Description Usage Arguments Value Examples

View source: R/rfuncs.R

Description

Function to simulate the stochastic TSIR assuming stochasticity in transmission and a Poisson birth-death process

Usage

1
2
SimTsir2(beta, alpha, B, N, inits = list(Snull = 0, Inull = 0),
  type = "det")

Arguments

beta

the seasonal transmission coefficients

alpha

the exponent on I

B

a vector of Births (the length of which determines the length of the simulation)

N

the population size

inits

a list containing initial S and I

type

an argument "det" or "stoc" that determines whether a deterministic or stochastic simulation is done

Value

A list with time series of simulated infected and susceptible hosts

Examples

1
## Not run: see chapter 8 in book

epimdr documentation built on March 26, 2020, 7:41 p.m.

Related to SimTsir2 in epimdr...