Balance DHS Admin 1 Panel
balance_dhs_panel.RdDrops indicators or regions with insufficient coverage from the panel. Balancing is performed in two passes: drop thin indicators, then drop thin regions.
Usage
balance_dhs_panel(panel, indicators = NULL, min_countries = 5L,
min_indicators = 10L, verbose = TRUE)Arguments
- panel
Tibble from
cascade_to_admin1().- indicators
Character vector of indicator column names. If NULL, auto-detected from
imp_*_flagcolumns.- min_countries
Integer: minimum countries per indicator (default: 5).
- min_indicators
Integer: minimum indicators per region (default: 10).
- verbose
Logical: print diagnostics (default: TRUE).
Examples
if (FALSE) { # \dontrun{
gf <- gapfill_all_dhs()
raw_panel <- cascade_to_admin1(gf)
balanced <- balance_dhs_panel(raw_panel)
} # }