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]

RE: st: recognizing patterns within two columns of data


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: recognizing patterns within two columns of data
Date   Thu, 7 Jul 2011 11:28:27 +0100

By the way, I am now in a curious but not impossible position. 

1. I don't think that I understand Dalhia's problem. 

2. I am clear that Subrata's code offered as a solution to that problem is problematic. 

Nick 
[email protected] 

Nick Cox
Sent: 07 July 2011 11:17
To: '[email protected]'
Subject: RE: st: recognizing patterns within two columns of data

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 
[email protected] 

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 <[email protected]> wrote:

> From: Nick Cox <[email protected]>
> Subject: RE: st: recognizing patterns within two columns of data
> To: "'[email protected]'" <[email protected]>
> Date: Wednesday, July 6, 2011, 7:50 PM
> -egen, group()- ? 
> 
> Nick 
> [email protected]
> 
> 
> 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 <[email protected]>
> 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/

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index