Statalist The Stata Listserver


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

st: RE: Re: tscollap


From   "Nick Cox" <[email protected]>
To   <[email protected]>, "mmoore" <[email protected]>
Subject   st: RE: Re: tscollap
Date   Fri, 10 Feb 2006 14:40:19 -0000

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index