decompr (version 4.5.0)

wwz: Runs the Wang-Wei-Zhu decomposition

Description

This function runs the Wang-Wei-Zhu decomposition.

Usage

wwz(x, verbose = FALSE)

Arguments

x

an object of the class decompr

verbose

logical, should timings of the calculation be displayed? Default is FALSE

Value

the decomposed table

Details

Adapted from code by Fei Wang.

References

Wang, Zhi, Shang-Jin Wei, and Kunfu Zhu. Quantifying international production sharing at the bilateral and sector levels. No. w19677. National Bureau of Economic Research, 2013.

Examples

Run this code
# NOT RUN {
# load example data
data(leather)

# create intermediate object (class decompr)
decompr_object <- load_tables_vectors(inter,
                                      final,
                                      countries,
                                      industries,
                                      out        )

# run the WWZ decomposition on the decompr object
wwz(decompr_object)
# }

Run the code above in your browser using DataLab