Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: how to use lag function to create sequential number


From   mzhang@nd.edu
To   statalist@hsphsun2.harvard.edu
Subject   st: how to use lag function to create sequential number
Date   Sun, 11 Sep 2005 13:09:34 -0500

for example, there are 17 people who have the same ethnicity. If I want to give
them a sequential number 1 2 3..........17, how can I use lag function to do
this?

Thanks

Min


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index