Re: [R] predict.coxph fitted values for failure times

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Thu 23 Jun 2005 - 00:27:45 EST

On Wed, 22 Jun 2005, Dan Bebber wrote:

> I would like to extract predicted failure times from a
> coxph model in library(survival). However, none of the
> prediction options ("lp", "risk", "expected", "terms")
> seem to bear any relationship to failure time.
>
> Perhaps I am asking the wrong question, but can coxph
> provide predicted failure times?
>

It's tricky, because it depends what you mean by "predicted". It's typically impossible to estimate the mean survival time for given covariates when there is censoring. You can use survfit() on your Cox model to get predicted survival curves.

         -thomas



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 23 00:31:27 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:56 EST