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/