agg.matrix: Aggregation Matrix

Description Usage Arguments Value Author(s) References Examples

Description

Aggregates Input-Output Matrices. Construct an aggregation matrix of kxn dimension.

Usage

1
agg.matrix(mat,d.mip)

Arguments

mat

Matrix. How sectors should be aggregated. First column should be the new sector in order, the remaining columns the sectors that are going to be aggregated

dimcol

Numeric. Column dimension

Value

Returns matrix to be pre and post multiplied to aggregate sectors.

Author(s)

Ignacio Sarmiento-Barbieri

References

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)

Examples

1
2
3
4
temp<-matrix(sample(1:30), 10)
temp[,1]<-seq(1:10)

S<-agg.matrix(temp,40)

ignaciomsarmiento/ioanalysis documentation built on May 21, 2019, 9:52 a.m.