EconPapers    
Economics at your fingertips  
 

SAS® Macros for Constraining Arrays of Numbers

Charles Coleman ()

MPRA Paper from University Library of Munich, Germany

Abstract: Many applications require constraining arrays of numbers to controls in one or two dimensions. Example applications include survey estimates, disclosure avoidance, input-output tables, and population and other estimates and projections. If the results are allowed to take on any nonnegative values, raking (a.k.a. scaling) solves the problem in one dimension and two-way iterative raking solves it in two dimensions. Each of these raking macros has an option for the user to output a dataset containing the rakes. The problem is more complicated in one dimension if the data can be of any sign, the so-called “plus-minus” problem, as simple raking may produce unacceptable results. This problem is addressed by generalized raking, which preserves the structure of the data at the cost of a nonunique solution. Often, results are required to be rounded so as to preserve the original totals. The Cox-Ernst algorithm accomplishes an optimal controlled rounding in two dimensions. In one dimension, the Greatest Mantissa algorithm is a simplified version of the Cox-Ernst algorithm. Each macro contains error control code. The macro variable &errorcode is made available to the programmer to enable error trapping.

Keywords: RAS. Range-RAS; RRAS; IPF; iterative proportionate fitting; raking; controlled rounding; Cox-Ernst algorithm (search for similar items in EconPapers)
JEL-codes: C02 C67 D57 J10 R15 (search for similar items in EconPapers)
Date: 2015-09
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
https://mpra.ub.uni-muenchen.de/77650/1/PO-131.pdf original version (application/pdf)
https://mpra.ub.uni-muenchen.de/77843/1/MPRA_paper_77843.pdf revised version (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:pra:mprapa:77650

Access Statistics for this paper

More papers in MPRA Paper from University Library of Munich, Germany Ludwigstraße 33, D-80539 Munich, Germany. Contact information at EDIRC.
Bibliographic data for series maintained by Joachim Winter ().

 
Page updated 2025-03-19
Handle: RePEc:pra:mprapa:77650