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).
Calculando o coeficiente de GiniBoa tarde pessoal, estou tentando calcular o índice de gini para alguns setores da economia, identif…
export spatial weight matrixHi, I'm exploiting district-level unbalanced panel data. I used the following command to generate a…
Reshape wide to long - datasetHello, I need to organize my data and convert it from wide to long. Since I have to many variables …
Event Study Graph: Do I need an indicator variable for each pre and post treatment period (except t-1)? Code: * Example generated by -dataex-. For more info, type help dataex clear input float(id monthl…
How to Count the Number of the Students Having Grade Retention in a Dataset in Stata Code?As the title suggested, I would like to count the number of the students who had grade retention in …
Subscribe to:
Post Comments (Atom)
0 Response to *egen pair_id = group(DIST).
Post a Comment