Statalist


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

st: RE: survival analysis


From   "Villa Lora, Juan Miguel" <[email protected]>
To   <[email protected]>
Subject   st: RE: survival analysis
Date   Mon, 24 Aug 2009 20:33:27 -0400

Hi Tina,
Your TimetoEvent variable must contain categorical observations or a dummies by default (you can tell Stata the failure values failure(failvar[==numlist])). For instance:

ID     TimetoEnvent     Followuptime
1      0                3 
2      1                5
3      1                4
4      0                6

You may run: stset FollowupTime , id(ID) failure(TimetoEvent==1)

If you are building Kaplan-Meier graph, everyone must figure on it as it is based on the proportion of the observations that remain "live" untill the end of the experiment. If you give us more datails of your graph it would be better. 
Juan.


-----Original Message-----
From: [email protected] on behalf of Tina Hernandez-Boussard
Sent: Mon 8/24/2009 7:56 PM
To: [email protected]
Subject: st: survival analysis
 

Hi All,

I am having problems viewing the graph I want using stset.

I have a dataset that contains 398 patients with 58 failures

I have the following variables:

followupTime TimetoEvent ID

I have set things up as such (1 row per patient):

stset followupTime , failure(TimetoEvent )

          failure _d:  TimetoEvent
    analysis time _t:  followupTime

I have tried to make TimetoEvent a dummy variable, with 0/1 instead  
of time of event.


However, when I get the graphs, I have everyone with an event.  I  
should only have 58 events.  Can someone please help on what I have  
done wrong with the setup?

Thanks!

Tina

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

<<winmail.dat>>




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