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

st: Pitfall with ctset (survival)

From   "Allan Reese (Cefas)" <[email protected]>
To   "'Statalist \(E-mail\)" <[email protected]>
Subject   st: Pitfall with ctset (survival)
Date   Mon, 17 Sep 2007 16:15:21 +0100

The following problem is confirmed by Tech Support and is still present in v10.

Using ctset (Survival manual v9, p10) you can provide variables of failed, censored and entered.  In my example, the KM plot (after ctset, cttost, sts graph) showed all groups ending at zero survival, which was wrong as failures+censored did not account for all entered.  After some head scratching, I noticed the warning on p14 "entering and exiting must balance".  But there was no error flag, and the analysis appears to proceed by assuming all unaccounted entities failed on the last recorded time.

When failed+censored is greater than entered, a red error message is generated, not when failed+censored<entered.

The solution was to add observations for the censored values at termination of the study.

The workround is to check manually that failed+censored=entered.  A code fix will be provided in v10, and should be editable into v9. 


This email and any attachments are intended for the named recipient only.  Its unauthorised use, distribution, disclosure, storage or copying is not permitted.  If you have received it in error, please destroy all copies and notify the sender.  In messages of a non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect those of the organisation from which it is sent.  All emails may be subject to monitoring.

*   For searches and help try:

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