estimate_outcomes {cfr} | R Documentation |
Estimate known outcomes of cases using a delay distribution
Description
Estimates the expected number of individuals with known outcomes from a case and outcome time series of outbreak data, and an epidemiological delay distribution of symptom onset to outcome. When calculating a case fatality risk, the outcomes must be deaths, the delay distribution must be an onset-to-death distribution, and the function returns estimates of the known death outcomes.
Usage
estimate_outcomes(data, delay_density)
Arguments
data |
A Note that the Note also that the total number of cases must be greater than the total number of reported deaths. |
delay_density |
An optional argument that controls whether delay
correction is applied in the severity estimation.
May be |
Details
The ratio u_t
represents, for the outbreak, the overall proportion of
cases whose outcomes are expected to be known by each day $i$. For an ongoing
outbreak with relatively long delays between symptom onset and case outcome,
a u_t
value of 1.0 may indicate that the outbreak has ended, as the
outcomes of all cases are expected to be known.
Value
A <data.frame>
with the columns in data
, and with two additional
columns:
-
"estimated_outcomes"
for the number of cases with an outcome of interest (usually, death) estimated to be known on the dates specified indata
, and -
u_t
for the ratio of cumulative number of estimated known outcomes and the cumulative number of cases reported until each date specified indata
.
Examples
# Load Ebola 1976 outbreak data
data("ebola1976")
# estimate severity for each day while correcting for delays
# obtain onset-to-death delay distribution parameters from Barry et al. 2018
# examine the first few rows of the output
estimated_outcomes <- estimate_outcomes(
data = ebola1976,
delay_density = function(x) dgamma(x, shape = 2.40, scale = 3.33)
)
head(estimated_outcomes)