This function computes core epidemiological summary statistics from deterministic compartmental epidemic models (e.g., SIR, SIS, SEIR).
Arguments
- data
A data frame returned by
ode_*()functions. Must contain a columntime, and at leastSandI. Additional compartments such asEorRare allowed.- beta
Transmission rate (numeric).
- gamma
Recovery / removal rate (numeric).
- N
Total population (numeric). If
NULL(default), it is computed as the sum of the known compartment columns (S, E, I, R) at the first time point; extra user-added columns are ignored.
Value
A named list with:
- R0
Basic reproduction number.
- peak_infection
Maximum number of infectious individuals.
- peak_time
Time at which infectious peak occurs.
- attack_rate
Proportion of population that transitioned out of S; defined only for models containing an R compartment (e.g., SIR/SEIR) and meaningful only for CLOSED populations.
Details
The input data frame is expected to be the output of ode_*() functions,
containing a time column and one or more compartment columns (e.g., S, I, R, E).
All compartment values are assumed to be in absolute population counts,
and the total population is assumed to be conserved unless otherwise specified.