Skip to contents

calculate_reporting_rate() computes the average reporting rate for each indicator across available years, disaggregated by the specified administrative level. It also calculates an overall mean reporting rate per group.

Usage

calculate_reporting_rate(
  .data,
  admin_level = c("national", "adminlevel_1", "district")
)

Arguments

.data

A data frame of class cd_data that contains reporting rate columns (e.g., anc_rr, idelv_rr, vacc_rr).

admin_level

Character. The administrative level at which to calculate reporting rates. Must be one of "national", "adminlevel_1" or "district".

Value

A tibble of class cd_reporting_rate, containing:

  • One row per grouping (year, adminlevel_1, district as applicable).

  • One column per reporting indicator.

  • mean_rr: average of all indicators per group.

Details

Use this function to monitor reporting completeness at national or subnational levels. It supports trend analysis and program performance reviews in line with Countdown 2030 guidelines.

Examples

if (FALSE) { # \dontrun{
  # National summary
  calculate_reporting_rate(data, admin_level = "national")

  # Regional summary
  calculate_reporting_rate(data, admin_level = "adminlevel_1")

  # District-level summary
  calculate_reporting_rate(data, admin_level = "district")
} # }