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

st: lag for panel data


From   Marcello Pagano <pagano@hsph.harvard.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: lag for panel data
Date   Fri, 12 Aug 2005 11:44:56 -0400

For Kit:

Begin forwarded message:

From: Kit Baum <baum@bc.edu>
Date: August 12, 2005 8:01:46 AM EDT
To: statalist@hsphsun2.harvard.edu
Subject: lag for panel data


webuse grunfeld
tsset company year
generate linvest = L.invest
generate dkstock = D.kstock

works whether you have balanced or unbalanced panels, or even missing periods for all panels.

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.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/



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