sir_3: 3 age class SIR ode

Description Usage Arguments Value See Also

View source: R/final_size.R

Description

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

Usage

1
sir_3(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 normalised contact matrix of contact frequencies between each age classes

vector

of compartment sizes eg. S1, I1, R1, S2, I2, R2 etc...

Value

a list of compartment size changes, as required by deSolve

See Also

sir, sir_2


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