[R] survival curve to compare two groups

Linda Lei llei at bccrc.ca
Thu May 11 19:58:01 CEST 2006


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!

 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: data.txt
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060511/635b8a98/attachment-0006.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: code.txt
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060511/635b8a98/attachment-0007.txt 


More information about the R-help mailing list