List Balancing for Reweighting and Population Synthesis
Create the ASU example
Creates a synthetic population based on ipu results
Applies an importance weight to an ipfr factor
Balances secondary targets to primary
Check geo fields
Check for missing categories in seed
Check seed and target tables for completeness
Compare results to targets
Create a named list of target priority levels.
Re-weight a Seed Table to Marginal Controls
ipfr: A package to perform iterative proportional fitting
Iterative Proportional Updating
Balance a matrix given row and column targets
Iterative Proportional Updating (Newton-Raphson)
Helper function to process a seed table
Scale targets to ensure consistency
Performs iterative proportional updating given a seed table and an arbitrary number of marginal distributions. This is commonly used in population synthesis, survey raking, matrix rebalancing, and other applications. For example, a household survey may be weighted to match the known distribution of households by size from the census. An origin/ destination trip matrix might be balanced to match traffic counts. The approach used by this package is based on a paper from Arizona State University (Ye, Xin, et. al. (2009) <http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.537.723&rep=rep1&type=pdf>). Some enhancements have been made to their work including primary and secondary target balance/importance, general marginal agreement, and weight restriction.