Skip to content
Prev 173733 / 398503 Next

obtaining the values for the hazard function in a cox regression

It's not entirely clear from the help pages, but reading Thereau and  
Gramsch' "Modeling Survival Data" it appears to me that the basehaz  
function in the survival package returns the estimated baseline   
_cumulative_ hazard function H(t|mean covariates). Such a function  
will be monotonic upward. Search on "Nelson-Aalen estimator" for more  
detail on cumulative hazard functions. The literature on survival  
analysis seems ambiguous in that sometimes the cumulative hazard  
function is meant, and sometimes the instantaneous hazard function.

Clarify with your statistician what is needed. I found that a plot  
which reversed the default plotting  arrangement of the basehaz object  
was more helpful.

  with(basehaz.fit, plot(time, hazard, ylab = "Cumulative Hazard |  
Mean covariates") )