View source: R/05-post_strat_estimator.R
estimate_coverage_overall | R Documentation |
Weighted post-stratification estimation of coverage over several service delivery units
estimate_coverage_overall(cov_df, pop_df, strata, u5, p, k = 3)
estimate_coverage(cov_df, cov_type = c("cf", "tc"), k = 3)
cov_df |
A |
pop_df |
A |
strata |
A character value of the variable name in |
u5 |
A numeric value for the proportion of the population that is under years old. |
p |
Prevalence of SAM or MAM in the given population. |
k |
Correction factor. Ratio of the mean length of an untreated episode to the mean length of a CMAM treatment episode |
cov_type |
Coverage estimator to report. Either "cf" for case-finding effectiveness or "tc" for treatment coverage. Default is "cf". |
A list of overall coverage estimates with corresponding 95% confidence intervals for case-finding effectiveness and treatment coverage.
cov_df <- survey_data
pop_df <- pop_data |>
setNames(nm = c("strata", "pop"))
estimate_coverage_overall(
cov_df, pop_df, strata = "district", u5 = 0.177, p = 0.01
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.