decompr (version 4.5.0)

leontief: Leontief Decomposition

Description

Leontief Decomposition

Usage

leontief(x, post = c("exports", "output", "final_demand", "none"),
  long = TRUE)

Arguments

x

an object of class decompr

post

post-multiply the Leontief inverse with something, the default is exports

long

transform the output data into a long (tidy) data set or not, default it TRUE.

Value

a data frame containing the square matrix and labelled column and rows

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 Leontief decomposition on the decompr object
leontief(decompr_object )
# }

Run the code above in your browser using DataCamp Workspace