Skip to content
Prev 171188 / 398506 Next

log-minus-log plot

on 02/20/2009 07:23 AM Frank E Harrell Jr wrote:
Just to throw out another possibility, using a Cox model on the data:

  library(survival)

  fit <- coxph(Surv(time, status) ~ x, data = aml)


  > cox.zph(fit)
                    rho   chisq     p
  xNonmaintained 0.0198 0.00691 0.934


  # create plot. default transform = "km"
  plot(cox.zph(fit, transform = "log"))


See ?coxph, ?cox.zph and ?plot.cox.zph in 'survival'.

HTH,

Marc Schwartz