At 09:46 PM 5/8/2005 -0400, you wrote:
Hi,
A few quick questions:
(1) How do I generate a new variable in a dataset that is equal to the
observations number? eg. suppose have data like:
gen id = _n
(3) also, can you refere me to a good site where i can get more
information on writing loops?
Here is one good FAQ:
http://www.stata.com/support/faqs/data/foreach.html
*
* 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/