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).
Twoway subtitle options using -by-How to adjust text options for subtitles in a simple twoway plot using -by- ? Code: sysuse auto, c…
Stata not showing results/command/log window?Hi Everyone, I'm running into a weird issue with Stata - the main results/command/log window is ~in…
merging data with different time frequenciesHello, I have looked for guidance from other posts but could not solve this: I have two datasets- 'D…
Is there a way to format variable?Hello friends, I am currently using data that has one variable that shows the value of the date, fo…
Difficulty in accessing my results tables via LaTexHello, I am practicing how to create customised LaTex regression results tables in STATA. However, …
Subscribe to:
Post Comments (Atom)
0 Response to *egen pair_id = group(DIST).
Post a Comment