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

st: RE: Re: maximum 'run' of observations in panel data


From   "Frank de Libero" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: maximum 'run' of observations in panel data
Date   Mon, 12 Aug 2002 09:48:02 -0700

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index