SimTsir2 {epimdr}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

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

## Not run: see chapter 8 in book

[Package epimdr version 0.6-5 Index]