epi_final_size: Epidemic Final Size Calculation

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. Note that this uses the final size calculation similar to that in Kucharski et al. 2014 PLoS Pathogens.

Usage

1
epi_final_size(C1, R0, Ns, alphas)

Arguments

C1

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

R0

the disease specific R0 ie. beta and gamma. Note that another parameter will mediate the contact rate

Ns

the matrix of population sizes for each age or 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_ode_size


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