| dfdfva | R Documentation | 
Domestic Final Demand Foreign Value Added
dfdfva(x, aggregate = FALSE)
| x | A Leontief decomposed Inter-Country Input Output table as created by decompr, which should be post multiplied with final demand (using the parameter: post="final_demand") | 
| aggregate | should dfddva be aggregated along source industries to a national sum? | 
# load the decompr package
library(decompr)
# load the example data
data(leather)
attach(leather)
# create a leontief decomposed data set
l <- decomp(x = inter,
            y = final,
            k = countries,
            i = industries,
            o = out,
            method = "leontief",
            post = "final_demand")
 # apply dfdfva
 dfdfva( l )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.