[R] survival curve to compare two groups

From: Linda Lei <llei_at_bccrc.ca>
Date: Fri 12 May 2006 - 03:58:01 EST

Hi All,  

I want to get the OS and EFS curve to compare two groups by log-rank test. I can draw the two curves by "survfit" but I couldn't find "log-rank" test in the choices of argument. I also looked at the "survdiff" which does have "log-rank" test, but it seems like no plots can be drawn from it.

Could you please help me with it?  

The attached are the data and code.  

Thank you!  

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 Fri May 12 04:09:05 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 May 2006 - 06:10:09 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.