Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Query re. stsplit and survival modelling

From   Steve Samuels <>
Subject   Re: st: Query re. stsplit and survival modelling
Date   Tue, 18 Dec 2012 23:09:10 -0500


The Statalist FAQ ask that you provide code that shows what you did. I don't understand what you mean by splitting "episodes".  

But to answer your question in general:

1) With time-dependent variables in -stcox-, you need split only "at(failures)"

2)  For a Weibull parametric model with time-dependent variables, you
need to split at the months that values change. 

There is no reason for either model to split any further.


On Dec 13, 2012, at 10:34 AM, Eleonora Paesen wrote:

I am using a dataset that includes monthly observations concerning
several variables.
I have used stsplit in order to include time-varying variables into
Cox proportional and Weibull hazard models. Before running the models
I have made sure that all time-varying variables has been opportunely
However I have not expanded the dataset in order to have person-month
observations by using the following command line:
stsplit time, at(1(1)n)
where 'n' corresponds to the 'last observed exit t' obtained after
stsetting the data.
Does anyone could explain the value of the expansion of the data on a
strictly monthly basis instead of 'splitted episodes' basis, whose
length could be more than one month?
How the coefficients obtained in the models runned on the two datasets
differ? Is there a practical reason for splitting the data on a
monthly basis?
Running times increase enormously and I am not sure there is any gain
by st-splitting the data in order to obtain person-months
Any help or suggestionson the matter would be greatly appreciated.
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index