[R] log-minus-log plot

C.H. chainsawtiney at gmail.com
Fri Feb 20 08:18:58 CET 2009


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


-- 
CH Chan
Research Assistant - KWH
http://www.macgrass.com




More information about the R-help mailing list