Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Re: RE: Finding and tagging overlapping groups


From   Fredrik Wallenberg <[email protected]>
To   [email protected]
Subject   Re: st: RE: Re: RE: Finding and tagging overlapping groups
Date   Fri, 29 Jul 2005 22:32:52 -0700

Sorry for the confused question... it is the result of a confused
mind. I have many thousands of observations (zip codes and telephone
exchanges to be precise) and there are a lot more groups than 2 (in my
example there was one unique combo and everything else being groups).
I don't know how many "legs" the biggest group has but will look at
Michael's code to see if I can get it to work.

Thanks Scott and Mikael for your responses!

Fredrik

On 7/29/05, Scott Merryman <[email protected]> wrote:
> I didn't think it was so simple, but I did not find the question very clear.
> Are the linked observations defined when zdup and edup are greater than zero
> or on some other criteria?  Do the linked observations comprise one group
> and the unlinked observations a second group?  Or does each of the unlinked
> observation comprise a separate group?....Anyway, I think your
> interpretation is correct and I am glad you had a solution.
> 
> Scott
> 
> 
> > -----Original Message-----
> > From: [email protected] [mailto:owner-
> > [email protected]] On Behalf Of Michael Blasnik
> > Sent: Friday, July 29, 2005 6:52 PM
> > To: [email protected]
> > Subject: st: Re: RE: Finding and tagging overlapping groups
> >
> > I don't believe this response answers the (admittedly somewhat confusing)
> > request at all, it just happens to work for the sample observations given.
> > It only works if one observation is completely unique on the 2 vars and
> > all
> > others form one group with overlap.  I think the post was looking for a
> > way
> > of classifying cases into groups (most likely more than 2) if they match
> > on
> > either of two variables anywhere in the dataset.
> >
> > Michael Blasnik
> > [email protected]
> >
> > ----- Original Message -----
> > From: "Scott Merryman" <[email protected]>
> > To: <[email protected]>
> > Sent: Friday, July 29, 2005 7:41 PM
> > Subject: st: RE: Finding and tagging overlapping groups
> >
> >
> > > gen group = cond(zd>0 | ed>0, 1, 2)
> > >
> > > Scott
> >
> >
> > *
> > *   For searches and help try:
> > *   http://www.stata.com/support/faqs/res/findit.html
> > *   http://www.stata.com/support/statalist/faq
> > *   http://www.ats.ucla.edu/stat/stata/
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index