[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

Hope this helps,

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

Support the World Aids Awareness campaign this month with Yahoo! For Good
*   For searches and help try:

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