Statalist


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

Re: st: Stsplit for a pattern of spells


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Stsplit for a pattern of spells
Date   Mon, 28 Jan 2008 13:34:14 +0000 (GMT)

--- Serguei Kaniovski <[email protected]> wrote:
> I would like to "stsplit" survival data at irregular intervals. I
> have monthly observations, so
> 
> stsplit age, at(0(5)360)
> 
> would split the data in 5-months spells.
> 
> I would like to split the data in 1-month spells for the first
> 60-month (5 years), in 5 months spells for the following 60-month (5
> to 10 years), and in 10-month spells thereafter. Now, I know I could
> use a very long "at()" statement. But is there a more economical way
> of achieving this?

-help numlist- gives you a full inventory of tips and tricks in this
area.

Hope this helps,
Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
*
*   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