ghosh.inv: Ghoshian Inverse

Description Usage Arguments Details Value Author(s) References Examples

Description

Computes the Ghoshian (ouput) inverse. ghosh.inv has inputs to invert a subset of all regions if desired. If not using an InputOutput object from as.inputoutput, the functionality is limited. See example for more details.

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
ghosh.inv(Z = NULL, X, B, RS_label, regions)

Arguments

Z

Either an object class of InputOutput calculated from as.inputoutput or the intermediate transaction matrix. Do NOT use matrix of technical coefficients.

X

Vector. Total production vector. Not required if Z is an object with InputOutput class.

B

Matrix. Matrix of technical output coefficients.

RS_label

Matrix. A nx2 column matrix of labels for regions and sectors. The first column must be regions and the second column must be sectors. This is used to match with the intermediate transaction matrix.

regions

Character or Integer. Specific regions to be used. 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.

Details

The Ghoshian inverse is derived from the input-output table A=[a_ij] where

b_ij=z_ij/X_i

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

(I-B)^{-1}

Observe we result with the following system

X'=V'G

Therefore, the element g_{ij} is interpreted as the ratio of sector i's value added contributing to the total production of sector j.

Value

Returns a matrix with the Ghoshian Inverse

Author(s)

Ignacio Sarmiento-Barbieri, John J. P. Wade

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
 6
 7
 8
 9
10
# Using an "InputOutput" object
data(toy.IO)
class(toy.IO)

G1 <- ghosh.inv(toy.IO, region = "Narnia")

# Otherwise
Z <- toy.IO$Z
X <- toy.IO$X
G3 <- ghosh.inv(Z, X)

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