sir_2: Two population SIR case - ODE model

Description Usage Arguments Value See Also

View source: R/final_size.R

Description

2 age class SIR ode function (for use in deSolve)

Usage

1
sir_2(t, y, pars, C)

Arguments

t

current time, as for ode function

pars

vector of R0, alpha (immunity) and duration of infectious period

C

the 2x2 contact rate matrix

vector

of compartment sizes ie. S1, I1, R1, S2 etc...

Value

a list of compartment size changes, as required by deSolve

See Also

sir_3, sir


jameshay218/episize documentation built on May 17, 2017, 9:38 a.m.