Description Usage Arguments Value Author(s) References Examples
Aggregates Input-Output Matrices. Construct an aggregation matrix of kxn dimension.
1 | agg.matrix(mat,d.mip)
|
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 |
Returns matrix to be pre and post multiplied to aggregate sectors.
Ignacio Sarmiento-Barbieri
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)
1 2 3 4 | temp<-matrix(sample(1:30), 10)
temp[,1]<-seq(1:10)
S<-agg.matrix(temp,40)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.