nrca | R Documentation |
New Revealed Comparative Advantage
nrca(x)
x |
A decomposed Inter-Country Input Output table as created by decompr |
# load the decompr package library(decompr) # load the example data set data(leather) attach(leather) # perform Leontief decomposition l <- decomp(x = inter, y = final, k = countries, i = industries, o = out, method = "leontief", post = "exports" ) # load gvc package library(gvc) # perform New Revealed Comparative Advantage nrca(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.