finalsize: Compute the Expected Epidemic Final Size
Description
Computes the proportion of a population expected to be infected over
the course of an epidemic, as a function of the basic reproduction number.
Usage
finalsize(R0, S0, I0)
Value
A numeric vector listing values in the interval \([0,1]\) for the
expected epidemic final size.
Arguments
R0
a numeric vector listing non-negative values for the basic reproduction
number.
S0, I0
numeric vectors listing values in the interval \([0,1]\) for the
proportions of the population that are susceptible and infected,
respectively, at the start of the epidemic. Hence S0 + I0
must be less than or equal to 1.
Computation
The basic reproduction number R0 defines the expected
epidemic final size Z through an implicit equation,
Here, W denotes the
Lambert \(W\) function.
finalsize computes this solution, relying on function
lambertW from package emdbook.
Details
At least one of S0 and I0 must be supplied.
If S0 (I0) is supplied but not I0 (S0),
then the latter is assigned the value of one minus the former.
R0, S0, and I0 are recycled to a common length
(the maximum of their lengths).
References
Ma, J. & Earn, D. J. D. (2006).
Generality of the final size formula for an epidemic of a newly invading
infectious disease.
Bulletin of Mathetmatical Biology,
68(3), 679-702.
tools:::Rd_expr_doi("10.1007/s11538-005-9047-7")