Description Usage Arguments Value Author(s) References
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.
1 | doGRAS.long(dt, rowcol, colcol, rowsum, colsum, ...)
|
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 |
the updated data.table in the same format as before
Oliver Reiter
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.