Some variation on
gen quin = floor(year/5)
might also help.
Nick
[email protected]
Kit Baum
> tscollap is not really well suited to this, but there is an easy way
> to do it.
>
> egen quinquen=fill(1 1 1 1 1 2 2 2 2 2)
> collapse (variables/statistics of interest), by(quinquen)
mmoore
> > I’m using a cross country panel data set for a pension/life
> > expectancy study. Stata has the procedures that I need.
> However, I
> > have annual data which I want to convert to five yearly data. Is
> > there any way, tscollap could be adapted to assist me?
*
* 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/