Skip to contents

Classify coverage results

Usage

classify_coverage(n_in, n_total, standard = c(0.2, 0.5))

Arguments

n_in

Number (integer) of cases found in the programme

n_total

Number (integer) of children under 5 years sampled

standard

Decision rule standard/s. Should be between 0 and 1. At least one standard should be provided for a two-tier coverage classifier. Two standards should be provided for a three-tier coverage classifier. Default is a three-tier classifier with rule set at 0.2 and 0.5.

Value

A character value or vector indicating coverage classification. If standard is a single value, returns "Satisfactory" if coverage is above standard and "Not satisfactory" if coverage is below or equal to standard. If standard is two values, returns "Low" if coverage is below or equal to lower standard, "High" if coverage is above the higher standard, and "Moderate" for all other coverage values.

Author

Ernest Guevarra

Examples

classify_coverage(n_in = 6, n_total = 40)
#> [1] "Low"
with(survey_data,
  classify_coverage(n_in = in_cases, n_total = n)
)
#>  [1] "Low"      "Low"      "Low"      "Low"      "Low"      "Low"     
#>  [7] "Low"      "Moderate" "Moderate" "Moderate" "Low"      "Low"     
#> [13] "Low"      "Low"