Skip to contents

Checks initial weights reference counts against PUMS data for consistency. Use to validate reference count alignment between ACS and PUMS.

Usage

check_ref_counts(pums, ref_counts)

Arguments

pums

data.table. PUMS data table.

ref_counts

data.table. Reference counts table.

Value

NULL. Used for side effect of validation.

Details

  • Compares household and person counts between ACS and PUMS tables.

  • Reports differences and percent skew.

  • 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_weight_skew()

Examples

## Not run:
check_ref_counts(pums, ref_counts)
#> Error: object 'pums' not found
## End(Not run)