Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: how to generate mean for a secquence of five year of a variable


From   prakash singh <[email protected]>
To   statalist <[email protected]>
Subject   st: how to generate mean for a secquence of five year of a variable
Date   Thu, 5 May 2011 17:45:21 +0530

Hello stata listers

I have a panel data with number of cuntries=15 and the time period of
the data set is 1980-81 to 2004-05. Now I want to generate a variable
say var2 from var1, where first observation in var2 is mean of the
var1 for year 1980-81 to 1984-85 then second observation is mean of
1986-90 and so on. I am working on stata10.

Suggest me how I can do it.

Kind Regards
Prakash
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index