Check coverage distribution
Arguments
- cov_df
A
data.frame()
of stratified coverage survey data to get overall coverage estimates of.cov_df
should have a variable namedcases_in
for number of SAM or MAM cases in the programme found during the survey,cases_out
for number SAM or MAM cases not in the programme found during the survey, andrec_in
for children recovering from SAM or MAM who are in the programme found during the survey. A final required variable should be one that contains identifying geographical information corresponding to the location from which each row of the survey data was collected from.- k
Correction factor. Ratio of the mean length of an untreated episode to the mean length of a CMAM treatment episode
- p
Minimum p-value to test statistic. Default is 0.05.
Value
A named list of 2 lists: one for case-finding effectiveness (cf) and the second for treatment coverage (tc). For each list, the following values are provided:
statistic - calculated chi-square statistic
df - degrees of freedom
p - p-value of chi-square statistic
Examples
check_coverage_homogeneity(survey_data)
#> ℹ Case-finding effectiveness across 14 surveys is not patchy.
#> ! Treatment coverage across 14 surveys is patchy.
#> $cf
#> $cf$statistic
#> [1] 20.1292
#>
#> $cf$df
#> [1] 13
#>
#> $cf$p
#> [1] 0.09203514
#>
#>
#> $tc
#> $tc$statistic
#> [1] 33.10622
#>
#> $tc$df
#> [1] 13
#>
#> $tc$p
#> [1] 0.001642536
#>
#>