Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: correlation-like table to dyadic pairs transformation
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: correlation-like table to dyadic pairs transformation
Date
Wed, 19 Jan 2011 15:57:09 +0000
I think we, or at least I, need details on exactly how you are holding these data in Stata before I want even to think about this question.
Nick
[email protected]
Sorin Krammer
I have a problem in transforming a table that looks like this:
ABW AFG AGO ALB
ANT
ABW 0 13074,04493 10155,77746 9108,047048 135,1991754
AFG 13074 0 7072,696531 4052,529947 13005,47268
AGO 10156 7072,69653 0 5958,121764 10020,59095
ALB 9108 4052,52995 5958,121764 0
9025,064452
ANT 135 13005,47268 10020,59095 9025,064452 0
This is distance data between two points.
What I need is basically a dyadic dataset:
ABW - AFG 13074,04493
ABW- AGO 10155,77746
ABW-ALB 9108,047048
..............
ALB-ANT 9025,064452
Any suggestions are welcomed. My programming is basic so I incline for
command-based solution , if possible.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/