Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Don Ruby <goofnmick@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: EGEN GROUP where order doesn't matter? |
Date | Fri, 11 Feb 2011 15:58:21 -0500 |
Note, I have 4-tuple identifiers, not just a pair. On Fri, Feb 11, 2011 at 3:11 PM, Don Ruby <goofnmick@gmail.com> wrote: > Hi all, > > I understand that egen id=group(id1 id2) will create a list such that > the pair (id1.1 id2.1)=1, (id1.2 id2.2)=2 etc. But, the order of the > pair (id1 id2) matters so that the pair (id1.1 id2.1) will not yield > the same value as (id2.1 id1.1). > > How can i make it so that the same value is generated, regardless of > the varlist order? > > Thanks, > > Brandon > * > * 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/