*! version 17Mar2017

help for expy

Calculation of the EXPY-index as proposed by Hausmann et al. (2007)

expy
[if exp] [in range]
using filename ,
trade(varname)
id(varname)
prody(varlist)
product(varname)
[
label(string)
time(varname)
nameprody(string)
replace
]

Related

prody -- Calculation of factor intensity and sophistication indicators such as the PRODY index by Hausmann et al. (2007).

Description

expy calculates the EXPY-index as proposed by Hausmann et al (2007). Its calculation requires unilateral and disaggregated trade data and PRODY-values.
The result is stored in an external file which is specified by using filename.

Options

trade(varname) specifies the variable containing trade flows.

id(varname) specifies the variable that identifies countries.

prody(varlist) specifies PRODY variables to be used for calculating EXPY.
For every PRODY (provided by varlist) an EXPY is calculated; the variable name ends with the same suffix as the corresponding PRODY variable.

product(varname) specifies the variable that classifies trade.

label(string) overrides the default variable labels that correspond with variable labels of respective PRODY variables.

time(varname) if your dataset contains a time variable, it has to be specified.

nameprody(string) specifies the name of PRODY variables.
This option has to be used where more than one EXPY is calculated and if the PRODY variables do not start with "prody" or "PRODY".
For further clarification, please consider the following example:

Suppose that several versions of capital intensities have been calculated previously, and are called "string_v1", "string_v2", etc. When these intensities are intended to be used for calculating "expy_v1", "expy_v2", etc, it is essential to specify nameprody(string) in order to enable the program expy to match and parse variable names.

Examples

use http://www.uni-regensburg.de/wirtschaftswissenschaften/vwl-moeller/medien/prody/output_prody.dta, clear
*Please note: this are no real data

merge 1:m year indicator_desc using http://www.uni-regensburg.de/wirtschaftswissenschaften/vwl-moeller/medien/prody/data_prody, keep(match) nogen

expy using data_expy , trade(value) prody(prody*) id(country_desc) product(indicator_desc) time(year) replace

use data_expy, clear

References

Stephan Huber (2016): "Factor Intensities and Product Sophistication: Measurement Matters". Downloadable under:
http://dx.doi.org/10.2139/ssrn.2843713

Ricardo Hausmann, Jason Hwang and Rodrik Dani (2007). "What You Export Matters". Journal of Economic Growth 12(1), 1-25

Author

Stephan Huber
Email: stephan.huber@wiwi.uni-regensburg.de