productivity_levels: Productivity Levels

Description Usage Arguments Details Value References Examples

View source: R/productivity_levels.R

Description

productivity_levels() computes EXPY and PRODY measures.

Usage

1
2
3
4
5
6
7
productivity_levels(
  data_exp,
  data_gdp,
  country = "country",
  product = "product",
  value = "value"
)

Arguments

data_exp

(Type: data.frame, matrix or dgCMatrix) a dataset containing countries, products and exported values.

data_gdp

(Type: data.frame, matrix or dgCMatrix) a dataset containing countries and per-capita GDP values.

country

(Type: character) the column with the countries. By default this is set to "country". Used only if the input is a data.frame.

product

(Type: character) the column with the products. By default this is set to "product". Used only if the input is a data.frame.

value

(Type: character) the column with the metric for country-product pairs. By default this is set to "value". Used only if the input is a data.frame.

Details

The current implementation follows \insertCiteexportmatters2005economiccomplexity to obtain the productivity and income levels associated to exports.

Value

A list of two named numeric vectors.

References

For more information on prody and its applications see:

\insertRef

exportmatters2005economiccomplexity

Examples

1
2
3
4
5
6
7
8
pl <- productivity_levels(
 world_trade_avg_1998_to_2000,
 world_gdp_avg_1998_to_2000
)

# partial view of productivity levels
pl$productivity_level_country[1:5]
pl$productivity_level_product[1:5]

economiccomplexity documentation built on Jan. 13, 2021, 5:41 p.m.