Bookmark and Share

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: manipulating chains of data


From   Dalhia <ggs_da@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: manipulating chains of data
Date   Mon, 14 Jan 2013 04:40:34 -0800 (PST)

Hello, 


I have network data in the following two columns:


column1 column2

FirmA person1
person1 FirmB
FirmB FirmC
person2 FirmB
FirmA person3


I
 need to find a way to convert this data so that only firms remain in 
the data. Basically, in cases where a person is the link between two 
firms, I want the firms to get directly linked. So I want to somehow 
convert the data to this form:

column1 column2
FirmA FirmB
FirmB FirmC


Is
 there a way that Stata can do this automatically? I have 58000 rows and
 there is no way to do this manually. Any help will be much appreciated.

Thanks
Dalhia
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index