nrca: New Revealed Comparative Advantage

nrcaR Documentation

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

# 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)


gvc documentation built on June 20, 2022, 1:05 a.m.