Skip to contents

calculate_district_reporting_rate calculates the percentage of districts that meet or exceed a specified reporting rate threshold for each indicator, by year. Also computes an overall yearly mean.

Usage

calculate_district_reporting_rate(.data, threshold = 90)

Arguments

.data

A cd_data object containing district-level reporting rate columns.

threshold

Numeric. Minimum acceptable reporting rate (as a percentage). Default: 90.

Value

A tibble of class cd_district_reporting_rate with:

  • One row per year.

  • Columns low_<indicator>: percentage of districts meeting the threshold.

  • low_mean_rr: mean percentage of districts meeting the threshold across indicators.

Details

This function supports subnational data quality monitoring by identifying the proportion of districts with sufficiently complete reporting. It enables year-over-year comparisons and helps target underperforming regions.

Examples

if (FALSE) { # \dontrun{
  # Calculate district-level reporting rates with a threshold of 90%
  district_summary <- calculate_district_reporting_rate(data, threshold = 90)
} # }