tsirSim2 {epimdr2}R Documentation

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

tsirSim2(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

"See chapter 8 in book"

[Package epimdr2 version 1.0-9 Index]