Looks elegant but what was the question? :)
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of baum
Sent: Monday, August 12, 2002 9:21 AM
To: StataList
Cc: [email protected]
Subject: st: Re: maximum 'run' of observations in panel data
Those folks who do this for a living are really good at it!
---------- Forwarded Message ----------
Date: Monday, August 12, 2002 11:09 -0500
From: "Vince Wiggins, StataCorp" <[email protected]>
To: [email protected]
Subject: Re: tsfill / fillin?
Ahhh, do you mean something like,
. by id: gen run = cond(l.run==., 1, l.run+1)
. egen maxrun = max(run), by(id)
Cheers,
-- Vince
[email protected]
---------- End Forwarded Message ----------
*
* 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/
*
* 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/