*! version 28 décembre 8, 2023 @ 13:05:39

tiva2023

tiva2023 -- Manipulate OECD TiVA database (version 2023)

Syntax

Do not forget to run tiva2023_compile for a first use after a "clear/clear mata/clear all" (see example).

tiva2023
main
,
path(string) indicator(string) [year(string)] [cou(string)] par(string) [ind(string)]

main
calc Calculates the indicator in indicator()

load Loads the TiVA2023 elements into mata format (see mata: mata describe after running the command)

options
path path of the .zip ICIO files

indicator Indicator that should be calculated

year For which year(s)?

cou For which countries?

par For which partners?

ind For which industries?

Description

tiva2023 tiva2023 imports OECD's TiVA database into mata objects and calculates indicators.

Indicator list

GOP Gross output.

GVA Gross value added.

Y Final demand.

Z Intermediate inputs matrix.

B Global Leontief matrix.

L Local Leontief matrix.

EXGR Gross exports.

EXGR_INT Gross exports.

EXGR_FNL Gross exports.

IMGR Gross imports.

IMGR_INT Gross imports.

IMGR_FNL Gross imports.

BACKWARD Foreign value added in exports.

FORWARD Domestic value added in foreign countries' exports.

Unit value indicators (unit: 1 USD)

UV_DOWNSTREAMNESS Downstreamness measure where UV stands for unit value (see Chor, Fally,... (2017)).

UV_UPSTREAMNESS Upstreamness measure where UV stands for unit value (see Chor, Fally,... (2017)).

UV_DOM_DOWNSTREAMNESS Domestic Downstreamness measure where UV stands for unit value (see Chor, Fally,... (2017)).

UV_DOM_UPSTREAMNESS Domestic Upstreamness measure (UV_DOWNSTREAMNESS for domestic inputs).

UV_FOR_DOWNSTREAMNESS Foreign Downstreamness measure (UV_DOWNSTREAMNESS for foreign inputs).

UV_FOR_UPSTREAMNESS Foreign Upstreamness measure (UV_DOWNSTREAMNESS for foreign inputs).

UV_PII Production import intensity (see Timmer et al. (2016)).

OECD_DFD_DVA Domestic value-added in domestic final demand.

OECD_FFD_DVA Domestic value-added in foreign final demand.

OECD_DFD_FVA Foreign value-added in domestic final demand.

OECD_FFD_FVA Foreign value-added in foreign final demand.

OECD_EXGR_DVA Domestic value-added in exports.

OECD_EXGR_FVA Foreign value-added in exports.

OECD_BACKWARD Backward indicator.

OECD_FORWARD Forward indicator as calculated in OECD.Stat.

wp_MY Export decomposition based on on MY (2020) -- world perspective.

cp_MY Export decomposition based on on MY (2020) -- country perspective.

bp_MY Export decomposition based on on MY (2020) -- bilateral perspective.

Remarks

tiva2023 creates .mmat files where ICIO elements of OECD's TiVA database are retrieved.
The major elements are the intermediate inputs and the final demand matrices as well as the
gross value added and gross output vectors. Also, it creates dimensions, descriptions (year, countries, industries), element-wise multiplication and transition matrices to facilitate the calculations.

When load is the option, those vectors are only loaded (see example).
Otherwise, the option must be calc to calculate the indicator in the indicator() option (see example).

Examples

. clear mata

. tiva2023_compile

Produces the tiva2023() mata class that stores all the necessary objects.

. tiva2023 calc, path(V:/Cadestin_C/BACKUP/raw/TiVA2023/RELEASE/) indicator(GVA) year(2015) cou(FRA) ind(D01T03) clear

Imports the data, calculates "GVA" for 2015, FRA, D01T03 and stores in as a database.

. tiva2023 load, path(V:/Cadestin_C/BACKUP/raw/TiVA2023/RELEASE/)

mata:

mata describe

data = tiva2023()

data.importMatrices("V:/Cadestin_C/BACKUP/raw/TiVA2023/RELEASE/")

data.GVA(2015)[1..5]

end

First five observations of the gross value added vector.

Author

charles.cadestin@oecd.org

References

TiVA ICIO webpage.

TiVA geographical coverage.

TiVA industry coverage.