Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Group identifiers within group


From   Alexis Penot <alexis.penot@ens-lyon.fr>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Group identifiers within group
Date   Fri, 7 Jun 2013 14:14:11 +0200

You can have more than on variable in a by statement :
By AnimalID Parity: gen var1= _n

Alexis

Le 7 juin 2013 à 14:02, <isabel.lechner@vetsuisse.unibe.ch> a écrit :

> by AnimalID:  gen GroupID = _n

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index