No; in general this is _not_ the same
as _n, even if the argument of -group()- is the
whole varlist.
-group()- creates ids according to the sort order
defined by its argument. Also its result will
match any ties in the data.
Nick
[email protected]
Jose Valderrama
> Other way:
>
> egen id=group(x1 x2...)
Seok-Woo Kwon
> Is there a STATA command that automatically generates a case
> id for each record in a dataset?
>
*
* 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/