2020# ' @param u5 A numeric value for the proportion of the population that is under
2121# ' years old.
2222# ' @param p Prevalence of SAM or MAM in the given population.
23+ # ' @param k Correction factor. Ratio of the mean length of an untreated episode
24+ # ' to the mean length of a CMAM treatment episode
2325# ' @param cov_type Coverage estimator to report. Either *"cf"* for
2426# ' *case-finding effectiveness* or *"tc"* for *treatment coverage*.
2527# ' Default is *"cf"*.
26- # ' @inheritParams squeacr::calculate_tc
2728# '
2829# ' @returns A list of overall coverage estimates with corresponding 95%
2930# ' confidence intervals for case-finding effectiveness and treatment coverage.
@@ -141,11 +142,11 @@ estimate_coverage <- function(cov_df,
141142 cov_type <- match.arg(cov_type )
142143
143144 if (cov_type == " cf" ) {
144- cov <- with(cov_df , squeacr :: calculate_cf(cin = cases_in , cout = cases_out ))
145+ cov <- with(cov_df , calculate_cf(cin = cases_in , cout = cases_out ))
145146 } else {
146147 cov <- with(
147148 cov_df ,
148- squeacr :: calculate_tc(
149+ calculate_tc(
149150 cin = cases_in , cout = cases_out , rin = rec_in , k = k
150151 )
151152 )
@@ -166,7 +167,7 @@ calculate_ci <- function(cov_df, cov_type = c("cf", "tc"), k = 3, weights) {
166167 } else {
167168 rec_out <- with(
168169 cov_df ,
169- squeacr :: calculate_rout(cases_in , cases_out , rec_in , k = k )
170+ calculate_rout(cases_in , cases_out , rec_in , k = k )
170171 )
171172
172173 c <- cov_df $ cases_in + cov_df $ rec_in
0 commit comments