sir_22: Two age/two titre class SIR ODE function

Description Usage Arguments Value See Also

View source: R/final_size.R

Description

Calculates the final size of an epidemic given 2-dimensional population categorisation eg. age and immunity class using an SIR model. Only takes 2 ages and 2 titres.

Usage

1
sir_22(t, y, pars, C)

Arguments

t

current time, as for ode function

pars

vector of R0, alpha1, alpha2 (immunity of titre class 1 and 2) and duration of infectious period

C

the contact rate matrix for contact rates between each age/titre class (4x4 matrix)

vector

of compartment sizes ie. S11, I11, R11, S12 etc...

Value

a list of compartment size changes, as required by deSolve

See Also


jameshay218/episize documentation built on May 18, 2019, 11:20 a.m.