Re: [R] Strang line while plotting failure curves

2008-11-06 Thread Frank E Harrell Jr
Lu, Jiang wrote: Thank you very much, Frank. I installed Design package and tried survplot(). #R code survplot(testfit,time.inc=365.25,xaxt='n',xlim=c(0,1826.25),ylim=c(0,1),conf='none', fun=function(y)1-y,label.curves=list(keys=c('Med','Rev')), abbrev.label=TRUE,n.risk=T

Re: [R] Strang line while plotting failure curves

2008-11-06 Thread Lu, Jiang
Thank you very much, Frank. I installed Design package and tried survplot(). #R code survplot(testfit,time.inc=365.25,xaxt='n',xlim=c(0,1826.25),ylim=c(0,1),conf='none', fun=function(y)1-y,label.curves=list(keys=c('Med','Rev')), abbrev.label=TRUE,n.risk=TRUE) # End of R code

Re: [R] Strang line while plotting failure curves

2008-11-06 Thread Frank E Harrell Jr
Lu, Jiang wrote: Dear R helper, I encountered a problem when I tried to plot the cumulative failure rate (i.e. 1 - survival probability). I have used the following code to plot. The scenario is that patients are randomized to different treatment arm (rev in the code), the PCI revascularization w

[R] Strang line while plotting failure curves

2008-11-06 Thread Lu, Jiang
Dear R helper, I encountered a problem when I tried to plot the cumulative failure rate (i.e. 1 - survival probability). I have used the following code to plot. The scenario is that patients are randomized to different treatment arm (rev in the code), the PCI revascularization was monitored over 5