Statalist


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

Re: st: Adjusted Kaplan-Meier curves


From   Ricardo Ovaldia <ovaldia@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Adjusted Kaplan-Meier curves
Date   Mon, 8 Jun 2009 16:32:49 -0700 (PDT)

Thank you Maarten.

That is what exactly what I did, except that I used the -at()- option to plot one curve for each drug. I used the dummies to do that such that for example for drug=1 it would be -at(_Idrug_2=0 _Idrug_3=0)- and so on. However the curves are parallel, with jumps at every death and do not look like the unadjusted curves.

Ricardo.
 
Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK


--- On Mon, 6/8/09, Maarten buis <maartenbuis@yahoo.co.uk> wrote:

> From: Maarten buis <maartenbuis@yahoo.co.uk>
> Subject: Re: st: Adjusted Kaplan-Meier curves
> To: statalist@hsphsun2.harvard.edu
> Date: Monday, June 8, 2009, 11:12 AM
> 
> --- On Mon, 8/6/09, Ricardo Ovaldia wrote:
> > I have been asked to plot Kaplan-Meier curves adjusted
> for
> > covariates, such as age, gender, race. 
> > My thought was to use -stcox- to adjust and then plot
> the
> > adjusted survival using -stcurve-. 
> > But I am not sure I am doing this correctly. The KM
> curves
> > plotted with -sts graph,by()- crossover, but those
> plotted
> > with -stcurve- do not and also they have a lot more
> steps
> > than the original curves. Any ideas?
> 
> Sounds like a reasonable strategy to me. I don't have any
> concrete ideas, except that I added the example below of
> how I would do this. Maybe you can see something in my 
> example that is different from what you did (no guarantees
> that what did is better than what you did though).
> 
> *--------- begin example --------
> sysuse cancer, clear
> stset studytime, failure(died)
> xi: stcox i.drug age, basesurv(S)
> stcurve, survival
> *--------- end example ----------
> 
> Hope this helps,
> Maarten
> 
> -----------------------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
> 
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
> 
> 
>       
> 
> *
> *   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/
> 


      

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



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