Re: [R] logrank test

From: Marc Schwartz <marc_schwartz_at_comcast.net>
Date: Tue, 01 May 2007 11:01:47 -0500

On Tue, 2007-05-01 at 08:34 -0700, raymond chiruka wrote:
> how do l programme the logrank test. l am trying to compare 2 survival curves

See:

library(survival)
?survdiff

and take note of the 'rho' argument, which when set to 0 is the logrank test.

HTH, Marc Schwartz



R-help_at_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 and provide commented, minimal, self-contained, reproducible code. Received on Tue 01 May 2007 - 22:35:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 May 2007 - 23:31:48 GMT.

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