Skip to content
Prev 170634 / 398506 Next

How do i compute predicted failure time from a cox model?

Eleni Rapsomaniki wrote:
Eleni,

You can't get the predicted mean from a Cox model unless the longest 
followed subject died.  You can get the mean restricted life:

library(Design)   # implies Hmisc and survival
f <- cph(..., surv=TRUE)
M <- Mean(f, tmax=3)  # area under S(t) from 0 to 3 time units
M( ) # evaluate the mean at a vector of linear predictor values
M(predict(f, data.frame( ))) # evaluate at user-chosen predictor values

The mean restricted life is the life expectency given failure before 
time tmax.  You have to use a parametric model to get the unrestricted 
mean lifetime estimate.

Also see the Quantile function in Design to derive a function to 
estimate various quantiles of survival time.  In Design, functions 
beginning with an upper case letter (like Mean, Quantile, Function, 
Hazard) are function generators.

Frank