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" <frank@data2information.com>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of baum
Sent: Monday, August 12, 2002 9:21 AM
To: StataList
Cc: gcruces@worldbank.org
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" <vwiggins@stata.com>
To: baum@bc.edu
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
   vwiggins@stata.com

---------- 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index