make_wio | R Documentation |
Creates a list object of class wio
containing the typical
international input-output matrices in a standardized format, as well as a
list of code names (countries, sectors and demand components) and a list
of dimensions (number of countries, sectors and demand components). It
can use source files from well-known databases or internal data (test
data).
make_wio(wiotype = "icio2023", year = NULL, src_dir = NULL, quiet = FALSE)
wiotype |
String specifying the name and edition of the
input-output tables to be used:
* |
year |
Integer specifying reference year. If |
src_dir |
String specifying the source directory where the source file
of the international input-output tables is saved, normally as a zip file
(containing |
quiet |
Boolean, if |
make_wio()
directly unzips and processes the original source files
for the different international input-output tables and returns a list
with the traditional matrices, including the coefficient matrix A
, the
Leontief global inverse matrix B
, the Leontief matrix of local inverse
matrices Ld
and others.
Original source files can be obtained from the OECD's ICIO web page, the University of Groningen's WIOD web page, the Eurostat web page or the Asian Development Bank MRIO web page
If source files are used, they must be previously downloaded and placed in an accessible folder in disk, without renaming them. The following name pattern is expected:
XXXX-XXXX.zip
for "icio2023"
(.csv
files)
XXXX-XXXX_SML.zip
for "icio2023s"
(.csv
files)
ICIO_XXXX-XXXX.zip
for "icio2021"
(.csv
files)
ICIO2018_XXXX.zip
for "icio2018"
(.csv
files)
ICIO2016_XXXX.zip
for "icio2016"
(.csv
files)
WIOTS_in_R.zip
for "wiod2016"
(.RData
files)
WIOTS_in_EXCEL.zip
for "wiod2013"
(.xlsx
files). Requires
package openxlsx
.
lr_wiod_wiot_final_filled.csv
for "lrwiod2022"
. Requires
packages data.table
and reshape2
.
matrix_eu-ic-io_ind-by-ind_2Xed_XXXX.csv
for "figaro202Xi
and
matrix_eu-ic-io_prod-by-prod_2Xed_XXXX.csv
for "figaro202Xp
(.csv
files).
ADB-MRIO[XX]-XXXX_xxx2023.xlsx
for the "mrio62-202X"
, "mrio72-202X"
and ADB MRIO XXXX, at constant 2010 prices.xlsx
for the
"mrio62-202Xk"
tables (with some exceptions).
The input-output framework follows the traditional demand model of Leontief (1936), which makes assumptions about the stability of inputs (and therefore value-added) as a proportion of production. This allows production and value-added to be expressed as the result of variations in final demand.
Details about the content of the world input-output object (wio
)
produced by make_wio()
can be obtained with the command
summary(wio_object)
.
A list object of class wio
including input-output
matrices, dimensions, and names.
make_custom_wio()
wio <- make_wio("iciotest")
summary(wio)
## Not run:
# The following examples require the previous download of the source
# files in the working directory or in a directory specified by `src_dir`.
wio <- make_wio("icio2023", 2020)
wio <- make_wio("wiod2021", 2018)
wio <- make_wio("wiod2023", 2020, src_dir = "C:/Users/John/R/")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.