Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st:how to create yearly lag in monthly data?


From   Badri <[email protected]>
To   [email protected]
Subject   st:how to create yearly lag in monthly data?
Date   Tue, 2 May 2006 23:54:32 +0530

Dear Stata users and experts,
I'm dealing with a monthly data for a few years.
Let me denote month no., by m and year no., by y.  What I need to do
is to generate a variable B{m,y}=A{m,y-1}. A is a variable that is
already in the dataset.

This sounded quite simple to me till I tried a lot in vain.

Could anyone give a solution for this simple problem?

Regards
Badri Narayanan

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