Package: RASbound 0.0.1

Jose M. Pavía
RASbound: Bounded RAS / Biproportional Matrix Balancing with Cell-Level Constraints
Implements the RAS method for adjusting a matrix to match target row and column totals. In RAS, a matrix A is multiplied on the left by a diagonal matrix R and on the right by a diagonal matrix S, which gives the method its name. It is also known as biproportional matrix balancing, iterative proportional fitting (IPF) or raking. The package extends it with lower and upper bounds on individual cells. Provides several algorithmic variants for handling bound violations: hard cell-freezing with simultaneous, sequential, or hybrid fixation; two dependency-free clamp-and-compensate heuristics (proportional redistribution and iterative renormalization); and a naive unconstrained-recompute baseline; together with thin wrapper functions exposing equivalent bounded-calibration methods from the 'survey' package under a common interface. Intended for updating or regionalizing input-output tables, social accounting matrices (SAMs), and other applications where classic RAS/IPF is used but cell-level plausibility ranges must be respected. References: Deming and Stephan (1940) <doi:10.1214/aoms/1177731829> Deville, Saerndal and Sautory (1993) <doi:10.1080/01621459.1993.10476369> Acknowledgements: The author wishes to thank Conselleria de Educacion, Cultura y Universidades, Generalitat Valenciana (grant CIAICO/2023/031) for supporting this research.
Authors:
RASbound_0.0.1.tar.gz
RASbound_0.0.1.zip(r-4.7-any)RASbound_0.0.1.zip(r-4.6-any)
RASbound_0.0.1.tar.gz(r-4.7-any)RASbound_0.0.1.tar.gz(r-4.6-any)
RASbound_0.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
RASbound/json (API)
| # Install 'RASbound' in R: |
| install.packages('RASbound', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jmpavia/rasbound/issues
Last updated from:6704da3c9f. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 120 | ||
| source / vignettes | OK | 363 | ||
| linux-release | OK | 99 | ||
| windows-devel | OK | 73 | ||
| windows-release | OK | 63 | ||
| wasm-release | OK | 83 |
Exports:bras_calibrate_linearbras_calibrate_logitbras_calibrate_rakingbras_cap_iterbras_freeze_hybridbras_freeze_seqbras_freeze_simbras_naivebras_softras
Dependencies:
Last update: 2026-10-28
Started: 2026-10-28
Last update: 2026-10-28
Started: 2026-10-28
Last update: 2026-10-28
Started: 2026-10-28
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Bounded RAS via 'survey::calibrate(calfun = "linear")' (wrapper) | bras_calibrate_linear |
| Bounded RAS via 'survey::calibrate(calfun = "logit")' (wrapper) | bras_calibrate_logit |
| Bounded RAS via 'survey::calibrate(calfun = "raking")' (wrapper) | bras_calibrate_raking |
| Bounded RAS: iterative capping with renormalization | bras_cap_iter |
| The 'bras_fit' result object | bras_fit bras_fit-class |
| Bounded RAS: hybrid hard-freeze variant (simultaneous with sequential fallback) | bras_freeze_hybrid |
| Bounded RAS: sequential hard-freeze variant (most-extreme cell first) | bras_freeze_seq |
| Bounded RAS: simultaneous hard-freeze variant | bras_freeze_sim |
| Bounded RAS: naive recompute-every-pass variant (baseline, not recommended) | bras_naive |
| Bounded RAS: soft proportional redistribution variant | bras_soft |
| Plot which cells were fixed at a bound | plot.bras_fit |
| Print a fitted bounded-RAS object | print.bras_fit |
| Classic RAS (no bounds) | ras |
| Summarize a fitted bounded-RAS object | summary.bras_fit |
