The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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.

Version: 0.0.1
Depends: R (≥ 3.6)
Imports: stats, graphics, grDevices, utils
Suggests: survey, MASS, testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-10-28
DOI: 10.32614/CRAN.package.RASbound (may not be active yet)
Author: Jose M. Pavía ORCID iD [aut, cre]
Maintainer: Jose M. Pavía <jose.m.pavia at uv.es>
BugReports: https://github.com/JMPavia/RASbound/issues
License: GPL-3
URL: https://github.com/JMPavia/RASbound
NeedsCompilation: no
Materials: README
CRAN checks: RASbound results

Documentation:

Reference manual: RASbound.html , RASbound.pdf
Vignettes: Advanced diagnostics (source, R code)
A worked example: a 57 x 57 input-output-style table (source, R code)
Introduction to RASbound (source, R code)

Downloads:

Package source: RASbound_0.0.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=RASbound to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.