check_tables {ipfr} | R Documentation |
Check seed and target tables for completeness
Description
Given seed and targets, checks to make sure that at least one observation of each marginal category exists in the seed table. Otherwise, ipf/ipu would produce wrong answers without throwing errors.
Usage
check_tables(
primary_seed,
primary_targets,
secondary_seed = NULL,
secondary_targets = NULL,
primary_id
)
Arguments
primary_seed |
In population synthesis or household survey expansion, this would be the household seed table (each record would represent a household). It could also be a trip table, where each row represents an origin-destination pair. |
primary_targets |
A |
secondary_seed |
Most commonly, if the primary_seed describes
households, the secondary seed table would describe the persons in each
household. Must contain the same |
secondary_targets |
Same format as |
primary_id |
The field used to join the primary and secondary seed
tables. Only necessary if |
Value
both seed tables and target lists