SimTsir2: Function to simulate the seasonally-forced TSIR
Description
Function to simulate the stochastic TSIR assuming stochasticity in transmission and a Poisson birth-death process
Usage
SimTsir2(beta, alpha, B, N, inits = list(Snull = 0, Inull = 0),
type = "det")
Arguments
beta
the seasonal transmission coefficients
B
a vector of Births (the length of which determines the length of the simulation)
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
Run this code# NOT RUN {
see chapter 8 in book
# }
Run the code above in your browser using DataLab