Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: manipulating chains of data

From   Dalhia <>
To   "" <>
Subject   st: manipulating chains of data
Date   Mon, 14 Jan 2013 04:40:34 -0800 (PST)


I have network data in the following two columns:

column1 column2

FirmA person1
person1 FirmB
FirmB FirmC
person2 FirmB
FirmA person3

 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

 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.

*   For searches and help try:

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