general_sir: General SIR ode

Description Usage Arguments Value

View source: R/final_size.R

Description

Generic SIR ode function (for use in deSolve), taking an arbritrary number of populations, ages and immunity classes

Usage

1
general_sir(t, y, pars, C, Nage, Ntiter)

Arguments

t

current time, as for ode function

pars

vector of R0, 1/gamma and alphas (vector of immunity conferred for each titre class)

C

the normalised contact matrix of contact frequencies between each age and titre classes

Nage

number of age classes

Ntiter

number of titre classes

vector

of compartment sizes eg. S11, I11, R11, S12, I12, R12 etc...

Value

a list of compartment size changes, as required by deSolve


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