Calculate syndrome incidence from deaths, CFR, and CR_L (formula-based)
Source:R/burden.R
calculate_incidence_L.RdEstimates the number of incident cases of syndrome L using:
Usage
calculate_incidence_L(
deaths_L,
cfr_lk_tbl,
P_Lk_prime_tbl,
CR_L = 1,
pathogen_col = "pathogen",
cfr_col = "CFR_LK",
plk_col = "P_Lk_prime",
facility_col = NULL,
deaths_col = "deaths"
)Arguments
- deaths_L
Numeric scalar (pooled mode) or data frame with a
facility_colcolumn and adeaths_colcolumn (facility-level mode).- cfr_lk_tbl
Data frame with at minimum columns
pathogen_colandcfr_col. Typically thecfr_tableelement fromcalculate_cfr_lk().- P_Lk_prime_tbl
Data frame with
pathogen_colandplk_col. Use theP_Lk_prime(pooled) element fromcalculate_P_Lk_prime_BSI()orcalculate_P_Lk_prime().- CR_L
Numeric scalar. CFR adjustment factor from
calculate_CR_L(). Default1(no adjustment).- pathogen_col
Character. Pathogen column in both tables. Default
"pathogen".- cfr_col
Character. CFR column in
cfr_lk_tbl. Default"CFR_LK".- plk_col
Character. P'LK column in
P_Lk_prime_tbl. Default"P_Lk_prime".- facility_col
Character or NULL. Facility identifier. When provided,
cfr_lk_tblandP_Lk_prime_tblmust each containfacility_col, anddeaths_Lmust be a data frame withfacility_col+deaths_col.- deaths_col
Character. Column in
deaths_Ldata frame containing death counts. Default"deaths". Ignored whendeaths_Lis a scalar.
Value
Data frame with columns deaths, CFR_L, CR_L,
I_L (incident cases), and facility_col when applicable.
Details
$$I_L = \frac{D_L}{\text{CFR}_L \times \text{CR}_L}$$
where the syndrome-level CFR is the pathogen-weighted average:
$$\text{CFR}_L = \sum_k P'_{Lk} \times \text{CFR}_{Lk}$$
Use this when you have population- or facility-level death counts and want
to back-calculate incidence. For a direct patient count from facility data,
use count_incident_cases() instead.