Check group sum consistency for target columns
check_group_sum.RdChecks that column group row sums match person and household totals in weighting input files. Use to validate group consistency for targets.
Details
Matches columns by group pattern (prefix or regex).
Sums group columns and compares to total column.
Prints mismatched rows and stops if requested.
Returns TRUE if all rows match, FALSE otherwise.
See also
scripts/weighting/target_validation.R
Other validation helpers:
check_daypat_results(),
check_group_sums(),
check_initial_weights(),
check_ref_counts(),
check_weight_skew()