Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

RE: st: recognizing patterns within two columns of data


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: recognizing patterns within two columns of data
Date   Thu, 7 Jul 2011 11:17:14 +0100

I don't understand how you get from the first to the second. Why did "compC" disappear? 

Also, you didn't answer Austin's question. 

Nick 
n.j.cox@durham.ac.uk 

Dalhia

Hello, Thanks. But egen group won't work since the holders are not the same. CompA and B (which I want grouped together) are owned by holderA and by holderB. The link is that these two companies are owned by people who also own shares in the other company - holderA owns shares in compA and also compB; similarly holderB owns shares in compA and also in compB. I want to identify those companies that are linked by multiple common owners. 

Example:
compA holderA
compB holderA
compA holderB
compB holderB
compC holderB

What I want:
compA group1
compB group1

--- On Wed, 7/6/11, Nick Cox <n.j.cox@durham.ac.uk> wrote:

> From: Nick Cox <n.j.cox@durham.ac.uk>
> Subject: RE: st: recognizing patterns within two columns of data
> To: "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
> Date: Wednesday, July 6, 2011, 7:50 PM
> -egen, group()- ? 
> 
> Nick 
> n.j.cox@durham.ac.uk
> 
> 
> Austin Nichols
> 
> Do you want to make an identifier as in
> http://www.stata.com/statalist/archive/2011-07/msg00170.html
> ?
> 
> On Wed, Jul 6, 2011 at 10:12 AM, Dalhia <ggs_da@yahoo.com>
> wrote:
> >
> > I would like some advice on how to do the following.
> Here is how the data looks:
> >
> > compA holderA
> > compB holderA
> > compC holderL
> > compD holderH
> > compA holderB
> > compB holderB
> > compC holderB
> >
> > Above, there was more than one instance where compA
> and compB had the same holder. In a large database, how do I
> identify instances where a set of comps appear repeatedly
> with the same holders?
> 

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index