Skip to content
Prev 171133 / 398506 Next

log-minus-log plot

Dear experts,

I would like to know how to plot the log-minus-log plot for survival
analysis (to check the proportional assumption) in R.

Using the AML example.

fit <- survfit(Surv(time, status) ~ x, data=aml)
length(fit$surv) #20

as the length of fit$surv is shorter than aml$x and aml$time. I don't
know how to plot.

Thank you.

Regards,

CH