SIR model for mosquito vectors (P 4.4).
Description
Solves a simple SIR model for mosquito vectors.
Usage
1 
Arguments
pars 

init 

time 
time sequence for which output is wanted; the first value of times must be the initial time. 
... 
further arguments passed to ode function. 
Details
This is the R version of program 4.2 from page 123 of "Modeling Infectious Disease in humans and animals" by Keeling & Rohani.
Value
list
. The first element, *$model
, is the model function. The second, third and fourth elements are vectors (*$pars
, *$init
, *$time
, respectively) containing the pars
, init
and time
arguments of the function. The fifth element *$results
is a data.frame
with up to as many rows as elements in time. First column contains the time. Second, third and fourth columns contain the proportion of susceptibles, infectious and recovered.
References
Keeling, Matt J., and Pejman Rohani. Modeling infectious diseases in humans and animals. Princeton University Press, 2008. Modeling Infectious Diseases in Humans and Animals
See Also
ode.
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13  # Parameters and initial conditions.
parameters < c(muH = 5.5e5, muM = 0.143,
vH = 5.5e2, vM = 1.443e3,
betaHM = 0.5, betaMH = 0.8,
gamma = 0.033, r = 0.5 / 1e3)
initials < c(XH = 1e3, XM = 1e4, YH = 1, YM = 1)
# Solve and plot.
sir.vector < SIRVector(pars = parameters,
init = initials,
time = 0:1000)
PlotMods(sir.vector)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.