tsirSim2: Function to simulate the seasonally-forced TSIR

View source: R/tsir.R

tsirSim2R 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"

epimdr2 documentation built on Dec. 28, 2022, 2:23 a.m.