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: RE: 5 year panels


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: 5 year panels
Date   Thu, 5 May 2011 10:54:48 +0100

You can get five year groups by e.g. 

gen quinquennium  = 5 * floor(year/5) 

Put extra constants in the expression for other starts. 

Nick 
[email protected] 

lreine ycenna

What's the command I should use to arrange my yearly data into 5 year panels?
(Stata 11.0)


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