Skip to content
Prev 171800 / 398502 Next

survival::survfit,plot.survfit

Jeff Xu wrote:
In advance: I?m a beginner in survival analysis, too. But I think I can 
help you with this.

plot(survfit(fit)) should plot the survival-function for x=0 or 
equivalently beta'=0. This curve is independent of any covariates.

If you want to see the impact of residual-status=2 you could add 
something like:

attach(ovarian)
ovarian_new <- data.frame(resid.ds=2, 
rx=(mean(rx)),ecog.ps=mean(ecog.ps))
detach()

plot(survfit(fit), newdata=ovarian_new)

This should give you the survival-function for an average patient with 
residual-status 2.

Regards

Bernhard