epi_ode_size: Epidemic Final Size Calculation ODE

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

Usage

1
epi_ode_size(C1, R0, Tg, Ns, alphas)

Arguments

C1

the non-normalised contact matrix of contact frequencies between each age class

R0

the disease specific R0 (transmission rate). Note that another parameter will mediate the contact rate

Tg

number of days spent infectious (ie. 1/gamma)

Ns

the matrix of population sizes for each age/titre combination (non-normalised) (ie. rows = ages, cols = immunity classes)

alphas

a vector of values between 0 and 1 matching the number of immunity classes

Value

an NxM matrix of attack rates (ie. proportion of susceptibles becoming infected)

See Also

epi_final_size


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