Skip to contents

Checks skew between household and person weights in PUMS data, reporting percent difference and population totals. Use to diagnose weighting issues.

Usage

check_weight_skew(pums, label = "")

Arguments

pums

data.table. PUMS data table.

label

character(1). Optional label for reporting.

Value

NULL. Used for side effect of validation.

Details

  • Calculates percent skew between household and person weights.

  • Reports population totals and skew for diagnostics.

  • Used for validation; returns nothing.

Settings

None.

See also

  • scripts/weighting/initial_weights.R

Other validation helpers: check_daypat_results(), check_group_sum(), check_group_sums(), check_initial_weights(), check_ref_counts()

Examples

## Not run:
check_weight_skew(pums, label = "Test")
#> Error: object 'pums' not found
## End(Not run)