Description Usage Arguments Details Value Author(s) References See Also Examples
Computes the hypothetical extraction as outlined in Dietzenbacher et al. (1993) and as outlined in Blar and Miller (2009).
Caution: Inverting large matrices will take a long time. Each individual hypothetical extraction requires the inversion of a matrix. R does a computation roughly every 8e10 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.
1 2 
io 
An 
ES 
An 
regions 
Character or Integer. Specific regions to be used. Can either be a character that exactly matches the name of the region in 
sectors 
Character or Integer. Specific sectors to be used. Can either be a character that exactly matches the name of the sector in 
type 
Character. Any combination of 
aggregate 

simultaneous 

normalize 

type
(1) backward
 Calculates the impact of hypothetically extracting the jth region/sector using the formula
X  (I  A_c)^{1} f
where A_c is the matrix of technical input coefficients with the jth column replaced by zeros
(2)forward
 Calculates the impact of hypothetically extracting the jth region/sector using the formula
X  V (I  B_r)^{1}
where B_r is the matrix of technical output coefficients with the jth row replaced by zeros
(3) backward.total
 Calculates the impact of hypothetically extracting the jth region/sector using the formula
X  (I  A_{cr})^{1} f
where A_{cr} is the matrix of technical input coefficients with the jth column and jth row replaced by zeros except for the diagonal element.
(4) forward.total
 Calculates the impact of hypothetically extracting the jth region/sector using the formula
X  V (I  B_{cr})^{1}
where B_{cr} is the matrix of technical output coefficients with the jth column and jth row replaced by zeros except for the diagonal element.
aggregate
If TRUE
multiplies the impact vector by a vector of ones to received the summed value of the impact from hypothetical extraction.
normalize
If TRUE
each component in the impact vector is divided by the total output of that sector/region combination.
Produces a list over regions of a list over type of extraction. If there is only one region and one type, then a matrix is returned. For example, items can be called by using extraction$region$type
.
John J. P. Wade, Ignacio SarmientoBarbieri
Dietzenbacher Erik & van der Linden Jan A. & Steenge Alben E. (1993). The Regional Extraction Method: EC InputOutput Comparisons. Economic Systems Research. Vol. 5, Iss. 2, 1993
Blair, P.D. and Miller, R.E. (2009). "InputOutput Analysis: Foundations and Extensions". Cambridge University Press
Nazara, Suahasil & Guo, Dong & Hewings, Geoffrey J.D., & Dridi, Chokri, 2003. "PyIO. InputOutput Analysis with Python". REAL Discussion Paper 03t23. University of Illinois at UrbanaChampaign. (http://www.real.illinois.edu/dpaper/03/03t23.pdf)
as.inputoutput
, easy.select
, linkages
, key.sector
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  data(toy.IO)
class(toy.IO)
E1 < extraction(toy.IO)
# Using an EasySelect object
data(toy.IO)
class(toy.IO)
E2 < extraction(toy.IO, toy.ES)
E2$Hogwarts
# Using more options
E3 < extraction(toy.IO, regions = c(1,2), sectors = c("Wii", "Minions"),
type = c("backward", "backward.total"), aggregate = TRUE)
E3$Hogwarts$backward.total
# Multiple regions and types
E4 < extraction(toy.IO, type = c("forward","forward.total"), normalize = TRUE)
E4$Hogwarts$forward.total

Loading required package: ggplot2
Loading required package: plot3D
Loading required package: lpSolve
Warning message:
no DISPLAY variable so Tk is not available
[1] "InputOutput"
[1] "InputOutput"
Wii Spaceships Lightsabers
Hogwarts.Pizza 367.8041 366.4898 403.5530
Hogwarts.Wii 702.5231 384.5346 410.0142
Hogwarts.Spaceships 341.2393 689.4143 359.9499
Hogwarts.Lightsabers 585.9798 610.7862 882.4320
Hogwarts.Minions 546.4528 547.5957 582.4964
Narnia.Pizza 477.1353 452.4745 498.7491
Narnia.Wii 413.2719 411.8120 409.4651
Narnia.Spaceships 458.0948 451.5633 486.2146
Narnia.Lightsabers 489.4683 502.0303 529.2053
Narnia.Minions 414.6636 442.2452 422.5196
Wii Minions
[1,] 4796.633 4974.076
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.