View source: R/productivity_levels.R
productivity_levels | R Documentation |
productivity_levels()
computes EXPY and PRODY measures.
productivity_levels(
data_exp,
data_gdp,
country = "country",
product = "product",
value = "value"
)
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 |
product |
(Type: character) the column with the products.
By default this is set to |
value |
(Type: character) the column with the metric for
country-product pairs.
By default this is set to |
The current implementation follows \insertCiteexportmatters2005economiccomplexity to obtain the productivity and income levels associated to exports.
A list of two named numeric vectors.
For more information on prody and its applications see:
\insertRefexportmatters2005economiccomplexity
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]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.