Re: [R] survival::survfit,plot.survfit

2009-03-03 Thread Bernhard Reinhardt
You are right. In my case it doesn´t make much difference since the mean of my covariates is about 0. I made some more plots and again I´m confused. I thought when forcing all covariates via the newdata argument to be zero I would get the baseline function since the linear predictor is then

Re: [R] survival::survfit,plot.survfit

2009-02-27 Thread Heinz Tuechler
At 15:28 26.02.2009, Terry Therneau wrote: plot(survfit(fit)) should plot the survival-function for x=0 or equivalently beta'=0. This curve is independent of any covariates. This is not correct. It plots the curve for a hypothetical subject with x= mean of each covariate. Does this

Re: [R] survival::survfit,plot.survfit

2009-02-26 Thread Bernhard Reinhardt
Jeff Xu wrote: I am confused when trying the function survfit. my question is: what does the survival curve given by plot.survfit mean? is it the survival curve with different covariates at different points? or just the baseline survival curve? for example, I run the following code and get the

Re: [R] survival::survfit,plot.survfit

2009-02-26 Thread Terry Therneau
plot(survfit(fit)) should plot the survival-function for x=0 or equivalently beta'=0. This curve is independent of any covariates. This is not correct. It plots the curve for a hypothetical subject with x= mean of each covariate. This is NOT the average survival of the data set.

Re: [R] survival::survfit,plot.survfit

2009-02-26 Thread Jeff Xu
Thanks very much, Bernhard and Terry. It clarify my confusion and really helps a lot. Regards Jeff Xu Terry Therneau wrote: plot(survfit(fit)) should plot the survival-function for x=0 or equivalently beta'=0. This curve is independent of any covariates. This is not correct. It plots

[R] survival::survfit,plot.survfit

2009-02-25 Thread Jeff Xu
I am confused when trying the function survfit. my question is: what does the survival curve given by plot.survfit mean? is it the survival curve with different covariates at different points? or just the baseline survival curve? for example, I run the following code and get the survival curve