Package: ipfr 1.0.2
ipfr: List Balancing for Reweighting and Population Synthesis
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.
Authors:
ipfr_1.0.2.tar.gz
ipfr_1.0.2.zip(r-4.5)ipfr_1.0.2.zip(r-4.4)ipfr_1.0.2.zip(r-4.3)
ipfr_1.0.2.tgz(r-4.4-any)ipfr_1.0.2.tgz(r-4.3-any)
ipfr_1.0.2.tar.gz(r-4.5-noble)ipfr_1.0.2.tar.gz(r-4.4-noble)
ipfr_1.0.2.tgz(r-4.4-emscripten)ipfr_1.0.2.tgz(r-4.3-emscripten)
ipfr.pdf |ipfr.html✨
ipfr/json (API)
NEWS
# Install 'ipfr' in R: |
install.packages('ipfr', repos = c('https://dkyleward.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dkyleward/ipfr/issues
Last updated 5 years agofrom:0e4aad0b62. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 06 2024 |
R-4.5-win | OK | Nov 06 2024 |
R-4.5-linux | OK | Nov 06 2024 |
R-4.4-win | OK | Nov 06 2024 |
R-4.4-mac | OK | Nov 06 2024 |
R-4.3-win | OK | Nov 06 2024 |
R-4.3-mac | OK | Nov 06 2024 |
Exports:ipuipu_matrixsetup_arizonasynthesize
Dependencies:backportsBBmisccheckmateclicolorspacecpp11data.tabledplyrfansifarverfastmatchgenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmlrmunsellnlmeparallelMapParamHelperspillarpkgconfigpurrrR6RColorBrewerrlangscalesstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithrXML
Readme and manuals
Help Manual
Help page | Topics |
---|---|
ipfr: A package to perform iterative proportional fitting | ipfr-package ipfr |
Iterative Proportional Updating | ipu |
Balance a matrix given row and column targets | ipu_matrix |
Create the ASU example | setup_arizona |
Creates a synthetic population based on ipu results | synthesize |