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

st: lag for panel data

From   Marcello Pagano <>
Subject   st: lag for panel data
Date   Fri, 12 Aug 2005 11:44:56 -0400

For Kit:

Begin forwarded message:

From: Kit Baum <>
Date: August 12, 2005 8:01:46 AM EDT
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

*   For searches and help try:

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