doGRAS.long: Do the GRAS algorithm for a "long" data.table

Description Usage Arguments Value Author(s) References

Description

This function calculates an updated "long" data.table, based on a data.table dt, which meets the given row and columns totals. Note: dt can contain negative elements.

Usage

1
doGRAS.long(dt, rowcol, colcol, rowsum, colsum, ...)

Arguments

dt

the "long" data.table

rowcol

the column which holds the row-dimension of the reshaped matrix

colcol

the column which holds the column-dimension of the reshaped matrix

rowsum

vector with the row totals

colsum

vector with the column totals

...

parameter to be passed to doGRAS

Value

the updated data.table in the same format as before

Author(s)

Oliver Reiter

References

Junius T. and J. Oosterhaven (2003), The solution of updating or regionalizing a matrix with both positive and negative entries, Economic Systems Research, 15, pp. 87-96.

Lenzen M., R. Wood and B. Gallego (2007), Some comments on the GRAS method, Economic Systems Research, 19, pp. 461-465.

Temurshoev, U., R.E. Miller and M.C. Bouwmeester (2013), A note on the GRAS method, Economic Systems Research, 25, pp. 361-367.


zauster/riot documentation built on May 4, 2019, 9:12 p.m.