agg.region: Aggregate Regions

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

agg.sector takes specified regions and creates a "new" joint region. This produces a new InputOutput object. Note the Leontief Inverse and Ghoshian Inverse are elements. All regions must have exactly the same sectors. See locate.mismatch.

Caution: Inverting large matrices will take a long time. R does a computation roughly every 8e-10 second. The number of computations per matrix inversion is n^3 where n is the dimension of the square matrix. For n = 5000 it should take 100 seconds. I trust you know how cubic functions grow.

Usage

1
agg.region(io, regions, newname = "newname")

Arguments

io

An InputOutput class object from as.inputoutput

regions

Character. Specific regions to be aggregated. Can either be a character that exactly matches the name of the region in RS_label or the number of the region in the order it appears in RS_label.

newname

Character. The name to give to the new aggregated region.

Details

Creates an aggregation matrix similar to that of agg.sector. See Blair and Miller 2009 for more details.

Value

A new InputOutput object is created. See as.inputoutput.

Author(s)

John J. P. Wade, Ignacio Sarmiento-Barbieri

References

Blair, P.D. and Miller, R.E. (2009). "Input-Output Analysis: Foundations and Extensions". Cambridge University Press

Nazara, Suahasil & Guo, Dong & Hewings, Geoffrey J.D., & Dridi, Chokri, 2003. "PyIO. Input-Output Analysis with Python". REAL Discussion Paper 03-t-23. University of Illinois at Urbana-Champaign. (http://www.real.illinois.edu/d-paper/03/03-t-23.pdf)

See Also

as.inputoutput, locate.mismatch, agg.region

Examples

1
2
3
data(toy.IO)
class(toy.IO)
agg.region(toy.IO, regions = c(1,2), newname = "Magic")

jjpwade/ioanalysis documentation built on May 6, 2019, 6:57 p.m.