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 tibble of class cd_data.

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.

Examples

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