Rajiv Sinha wrote:
> > I have T months of data for N firms such that there are
> T rows for each of
> > the N firms. How do I set up a simple counter in Stata
> to reflect time and
> > that varies from 1 to 12 and repeats itself for each of
> the N records?
Ulrich Kohler
> . by N (T), sort: gen t = _n
Also, for future reference, check out
-egen, seq()- and -egen, fill()-
Nick
[email protected]
*
* 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/