gvc (version 0.5.2)

nrca: New Revealed Comparative Advantage

Description

New Revealed Comparative Advantage

Usage

nrca(x)

Arguments

x
A decomposed Inter-Country Input Output table as created by decompr

Examples

Run this code
# load the decompr package
library(decompr)
           
# load the example data set
data(leather)

# perform Leontief decomposition
l <- decomp(inter,
            final,
            countries,
            industries,
            out,
            method = "leontief",
            post = "exports"    )

# load gvc package
library(gvc)

# perform New Revealed Comparative Advantage
nrca(l)

Run the code above in your browser using DataLab