wwz2kww | R Documentation |
This function by default returns a disaggregated version of the the Koopman-Wang-Wei (KWW) decomposition breaking up sector-level gross exports into 9 value added terms, from an already computed and more detailed (16 term) Wang-Wei-Zhu decomposition of sector-level gross exports. An aggregation option also allows obtaining the aggregate KWW decomposition.
wwz2kww(x, aggregate = FALSE)
x |
a data frame with the WWZ decomposition obtained from |
aggregate |
logical. |
The mapping of the 16 terms in the WWZ decomposition to the 9 terms in the KWW decomposition is provided in table E2 in the appendix of the WWZ (2013) paper. The table is reproduced here using the term naming conventions followed in this package.
WWZ Terms | KWW Term | Description | ||||
DVA_FIN | DVA_FIN | Domestic VA in final goods exports. | ||||
DVA_INT, DVA_INTrexI1 | DVA_INT | Domestic VA in intermediate exports absorbed by direct importers. WWZ separates VA in final goods produced and consumed by direct importer from VA used by direct importer to produce intermediate exports for production of domestically consumed final goods in third countries (i.e. the VA is absorbed by the direct importer, but it may be exported to third countries as intermediates first before returning to direct importer as final goods). | ||||
DVA_INTrexF, DVA_INTrexI2 | DVA_INTrex | Domestic VA in intermediate exports reexported to third countries and absorbed there. WWZ separates VA in final goods exports of direct importer to third countries from VA in intermediate exports from direct importers to third countries (that is ultimately absorbed in third countries). | ||||
RDV_FIN, RDV_FIN2 | RDV_FIN | Domestic VA in intermediate exports that returns home via final imports. WWZ separates final imports from the direct importer and third countries. | ||||
RDV_INT | RDV_INT | Domestic VA in intermediate exports that returns via intermediate imports (i.e. is used to produce a locally consumed final good). | ||||
DDC_FIN, DDC_INT | DDC | Double counted Domestic Value Added in gross exports. WWZ separates double counting due to final and intermediate exports production. | ||||
MVA_FIN, OVA_FIN | FVA_FIN | Foreign VA in final goods exports. WWZ separates FVA from direct importer and from third countries. | ||||
MVA_INT, OVA_INT | FVA_INT | Foreign VA in intermediate exports. WWZ separates FVA from direct importer and from third countries. | ||||
MDC, ODC | FDC | Double counted Foreign Value Added in gross exports. WWZ separates FDC from direct importer and from third countries. | ||||
A data frame with exports decomposed into 9 components (columns), see the table above and kww
for a shorter description of the 9 terms.
If both WWZ and KWW decompositions are required, it is computationally more efficient to call wwz2kww(x, aggregate = TRUE)
on an already computed WWZ decomposition, than to call kww
on a 'decompr' object.
Sebastian Krantz
Koopman, R., Wang, Z., & Wei, S. J. (2014). Tracing value-added and double counting in gross exports. American Economic Review, 104(2), 459-94.
Wang, Zhi, Shang-Jin Wei, and Kunfu Zhu (2013). Quantifying international production sharing at the bilateral and sector levels (No. w19677). National Bureau of Economic Research.
wwz
, kww
, decompr-package
# Load example data data(leather) # Create intermediate object (class 'decompr') decompr_object <- load_tables_vectors(leather) # Perform the WWZ decomposition WWZ <- wwz(decompr_object) # Obtain a disaggregated KWW decomposition KWW <- wwz2kww(WWZ) # Aggregate KWW wwz2kww(WWZ, aggregate = TRUE) # Same as running KWW directly, but the former is more efficient # if we already have the WWZ kww(decompr_object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.