Hi,
I have created an id variable for a pair of countries(exporter importer) based on their distance (DIST):
egen pair_id = group(DIST).
However, in my base, the distance ISR-JOR is not exactly the same distance JOR-ISR considering all the decimals.
What can I do?
exporter importer pair_id year DIST
ISR JOR 2 1990 114.6373
ISR JOR 2 1998 114.6373
ISR JOR 2 1986 114.6373
ISR JOR 2 1994 114.6373
ISR JOR 2 2002 114.6373
ISR JOR 2 2006 114.6373
JOR ISR 3 2002 114.6373
JOR ISR 3 1998 114.6373
JOR ISR 3 2006 114.6373
JOR ISR 3 1990 114.6373
JOR ISR 3 1986 114.6373
Thanks!
Related Posts with *egen pair_id = group(DIST).
Joining datasets when a variable is in a different formatHi all, I currently have a data set that looks like this where each quarter is represented by a sep…
Local macro list and tuplesI am in need of two different tuples lists, so I would like to store one set as a local and call the…
Issues with Hausman-Wu testHi everyone, I am having issues with running a Hausman-Wu test. The output is as follows: "hausman…
Report estimates from Heckman AND margins commandDear all, I am using Stata 14 and have some questions regarding the commands -Heckman-, -margins- an…
Help on modelling- endogeneity-panel dataHello, I am running a model to find the effect of corurption on GDP in across Italian regions using…
Subscribe to:
Post Comments (Atom)
0 Response to *egen pair_id = group(DIST).
Post a Comment