Compute the PRODY and EXPY hausmann2007youpecan based on export and gross domestic product (GDP) data.
productivity(
expData,
gdpData,
measure = c("prody", "expy"),
econ = "economy",
prod = "product",
exp = "export",
gdp = "GDP"
)A numeric vector with the measured values.
A data frame or matrix containing the export data.
If a data frame, it should have columns representing economies, products, and export values.
If a matrix, it should be an economy-by-product matrix with export values.
A data frame containing the GDP data.
A character string specifying the measure to compute:
"prody": the income/productivity level.
"expy": the income/productivity level of a country's export basket.
A character string (default = "economy") specifying the column
name for economies when expData is a data frame.
A character string (default = "product") specifying the column
name for products when expData is a data frame.
A character string (default = "export") specifying the column name
for export values when expData is a data frame.
A character string (default = "GDP") specifying the column name
for GDP values when gdpData is a data frame.