gosh.inv: Gosh Inverse

Description Usage Arguments Details Value Author(s) References Examples

View source: R/gosh.inv.R

Description

Computes the Goshian Inverse

Usage

1
gosh.inv(mip, X, write.xlsx=FALSE, name="Gosh_Inv.xlsx")

Arguments

mip

Matrix. Input output matrix

X

Vector. Input in each column

write.xlsx

Logical. If TRUE writes an excel file

name

String. Name of the excel file

Details

The Goshian inverse is derived from the output allocation matrix table A=[a_ij] where

a_ij=z_{ij}/X_i

where z_ij is the input from i required in the production of j. X_i is the corresponding output in each row. The Goshian inverse is then computed as

(I-A)^{-1}

Value

Returns a data.frame with the Goshian Inverse

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
5
mip<-mat_40x40[1:40,2:41] #Input-output coeffcients

X<-mat_40x40$DT.a.PB[1:40]  #Total output vector

G<-gosh.inv(mip,X,write.xlsx = FALSE)

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