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).
Problem with Mundlak approachDear all, I am pretty new to Stata and just beginning my research journey. I am trying to estimate…
In space placebo error: variable does not existHi all, First of all, the best wishes for 2023! I am struggling with my last placebo test (in-sp…
Collinearity problem DiDHello, I have this data. I'm trying to run a placebo DiD. Pre-treatment =2018. Some of the drugs go…
Creating a new date variable and converting it to %td formatHi all, I have a hopefully simple formatting question for dates. Most resources I've found on dates…
Interpreting a time variant covariate in a linear mixed effects modelHello, I am looking for some help with interpreting the coefficients in a linear mixed effects mode…
Subscribe to:
Post Comments (Atom)
0 Response to *egen pair_id = group(DIST).
Post a Comment