Description Usage Arguments Value Examples
Function to simulate the stochastic TSIR assuming stochasticity in transmission and a Poisson birth-death process
1 2 |
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 |
A list with time series of simulated infected and susceptible hosts
1 | ## Not run: see chapter 8 in book
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.