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)
A list object of class wio
including input-output
matrices, dimensions, and names.
String specifying the name and edition of the
input-output tables to be used:
* "icio2023"
for the 2023 edition of the OECD ICIO tables
(1995-2020) and "icio2023s"
for the small format of the same edition.
The deprecated editions "icio2021"
(1995-2018),
"icio2018"
(1995-2011) and "icio2016"
(2005-2015) remain
available for literature replication purposes.
* "wiod2016"
for the 2016 edition of the WIOD tables
(2000-2014). The deprecated edition "wiod2013"
(1995-2011)
remains available for literature replication purposes.
* "lrwiod2022"
for the 2022 edition of the long-run WIOD
(1965-2000), useful for historical analysis.
* "figaro2024i"
for the 2024 edition of the FIGARO EU Input-Output
Tables (EU IC-SUIOTs), industry-by-industry (2010-2021), and
"figaro2024p"
for the product-by-product version of the same
database.The deprecated editions of 2023 and 2022
remain available for literature replication purposes.
* "mrio2024"
for the 2024 edition of the 62-country ADB MRIO tables.
"mrio2023"
for the 2023 edition of the 62-country ADB MRIO tables,
"mrio2023k"
for the 2023 edition in constant prices
"mrio2024x"
for the 72-country edition (years up to 2023).
"mrio2023x"
for the 72-country edition (years up to 2022).
* "iciotest"
for an example of an ICIO-type international
input-output table (disaggregated for MEX
into MX1
and MX2
and
for CHN
into CN1
and CN2
) and "wiodtest"
for an example of a
WIOD-type international input-output table (not disaggregated). Data
for these tables is not real, but these small input-output tables
are useful for didactic purposes and to check the functionality of
the program.
Integer specifying reference year. If NULL
(default),
the last available year of the specified database will be used.
String specifying the source directory where the source file
of the international input-output tables is saved, normally as a zip file
(containing .csv
files, .RData
or .xlsx
files, see Details). In
order for make_wio()
to work, these zip files should not be renamed.
If src_dir
is not specified, make_wio()
will look in the
working directory.
Boolean, if TRUE
suppress all status messages. Default
is FALSE
, i.e., messages are shown.
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)
.
make_custom_wio()
wio <- make_wio("iciotest")
summary(wio)
if (FALSE) {
# 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/")
}
Run the code above in your browser using DataLab