[R] question about plotting survfit object on log-log scale

From: singyee ling <singyee.ling_at_googlemail.com>
Date: Tue 14 Feb 2006 - 22:58:19 EST


Dear all,

I tried to plot cumulative hazard H(t) against t on a log-log sclale by putting the optional function "fun ='cloglog'" in the plot function.

However, I came across the following error message

> survcs20fit2<-survfit(Surv(start,end,status)~sx,data=ALLDPcs20)
>plot(survcs20fit2,fun="cloglog")

Error in rep.default (2, n2 - 1) : invalid number of copies in rep ( ) In addition : Warning message:
2 x values <= 0 omitted from logarithmic plot in : xy.coords ( x, y, xlabel, ylabel, log)

What does the error message :" Error in rep.default (2, n2 - 1) : invalid number of copies in rep ( )" actually means and what can I do to rectify it.

Thanks for any help given!

kind regards,
sing yee

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Feb 14 23:04:22 2006

This archive was generated by hypermail 2.1.8 : Wed 15 Feb 2006 - 13:39:04 EST