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

st: Re: lag for panel data


From   "Gaetano Coletta" <[email protected]>
To   <[email protected]>
Subject   st: Re: lag for panel data
Date   Fri, 12 Aug 2005 14:42:49 +0200

If you mean that you want to create a lagged variable (for example: Y(t-1)), once you have "tsset" your panel data set, just type:
gen y_1=L.y

Gaetano Coletta

----- Original Message ----- From: "Manoranjan Pattanayak" <[email protected]>
To: <[email protected]>
Sent: Friday, August 12, 2005 7:00 AM
Subject: st: lag for panel data



Dear statauser,
I want to generate lag for my balanced and unbalanced data sets.
please let me know the commands.

regards,
Manoranjan

--
Manoranjan Pattanayak,
Research Scholar,
Jawaharlal Nehru University

*
* 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