Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: do group identifiers identify the same groups?


From   "C�lio J�nior" <[email protected]>
To   [email protected]
Subject   Re: st: do group identifiers identify the same groups?
Date   Wed, 9 Jul 2008 11:07:31 -0300

Say those variables are g1 and g2. Then type
bys g1: assert g2[_n]==g2[1]
bys g2: assert g1[_n]==g1[1]

On Wed, Jul 9, 2008 at 10:21 AM, Jeph Herrin <[email protected]> wrote:
>
> Seems this should be easy, but the only solutions I
> can think of are tedious.
>
> I have two group identifiers in my data of 108k
> observations. I would like to verify that that
> they identify the same groups - there are about
> 800 groups, which rules out the simple inspection
> routes.
>
> Thanks in advance for any tips.
>
> cheers,
> Jeph
>
>
>
> *
> *   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