Hello,
I apologize if this has been asked before. I tried to thoroughly look through the forum.
I have trade data from COW that is in dyad-year (non-directed dyad), however, due to the nature of my DV, these data have to be converted to directed-dyad year.
So,
A B .01 .02
.
.
B C .03 .04
.
.
has to be converted to
A B .01 .02
.
.
B A .02 .01
.
.
B C .03 .04
.
.
C B .04 .03
I have no idea how to begin to go about this.
The closest links I found in this site are:
http://www.statalist.org/forums/foru...ic?view=thread
and
http://www.statalist.org/forums/foru...ing-many-dyads
However it seems the unit of analyses are from country-year to directed-dyad year.
Many thanks in advanced,
MW
I apologize if this has been asked before. I tried to thoroughly look through the forum.
I have trade data from COW that is in dyad-year (non-directed dyad), however, due to the nature of my DV, these data have to be converted to directed-dyad year.
So,
| importer1 | importer2 | flow1 | flow2 |
.
.
B C .03 .04
.
.
has to be converted to
| importer1 | importer2 | flow1 | flow2 |
.
.
B A .02 .01
.
.
B C .03 .04
.
.
C B .04 .03
I have no idea how to begin to go about this.
The closest links I found in this site are:
http://www.statalist.org/forums/foru...ic?view=thread
and
http://www.statalist.org/forums/foru...ing-many-dyads
However it seems the unit of analyses are from country-year to directed-dyad year.
Many thanks in advanced,
MW

), and have not made modifications to it, I can only say that it is common for publicly released data sets to have errors. If you have curated this data set yourself, there may be errors in the code you used to create it. Anyway, the first step at this point is to find out why there are some multiple records for the same year-dyad. And that begins with identifying them. So I would start with:
Comment