[R] log-log plots

Thomas Lumley thomas at biostat.washington.edu
Wed May 3 17:15:59 CEST 2000


On Wed, 3 May 2000, Marco Togni wrote:

> Hi,
> I am conducting a survival analysis and I have been trying, with not success, to do a log-log survival plots.
> Does anyone know how to do it in R?
> 
> By the way I am using version 1.0.0 for windows.

plot.survfit has an option for this

Eg, expanding on example(plot.survfit)

data(aml)
leukemia.surv <- survfit(Surv(time, status) ~ x, data = aml)
plot(leukemia.surv, lty = 2:3,fun="cloglog")


A couple of days ago Rob Gentleman found that this doesn't work if the
first observation is censored.  I will be putting up a revised survival5
soon, but I can send you the modified file for plot.survfit if necessary.


	-thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list