Statalist


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

st: Stsplit for a pattern of spells


From   Serguei Kaniovski <[email protected]>
To   [email protected]
Subject   st: Stsplit for a pattern of spells
Date   Mon, 28 Jan 2008 11:26:32 +0100

Dear List,

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?

Thank you for your help,
Serguei Kaniovski


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