Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <prakashbhu@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index