>
> Hello all,
> I am having trouble figuring out how to create a new variable
> based on the row numbers of my data. I just want to create a
> sequentially numbered variable (x, x+1, x+2 ect...) to
> uniquely identify each row of my data.
>
> There is probably a real quick and simple solution to this, I
> just haven't yet found it.
Indeed:
gen x = _n
Stefan Gawrich
Hesse Health State Office
Germany
*
* 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/