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]]


