Hi,

On 5/1/07, raymond chiruka <[EMAIL PROTECTED]> wrote:
>
> how do l programme the logrank test. l am trying to compare 2 survival
> curves


if you simply want to use the logrank test, have a look at the first example
of the function survdiff in the survival package. If you read the help page
there, it says that the default setting of rho=0 is the log rank test.
library(survival)
survdiff(Surv(futime, fustat) ~ rx,data=ovarian)
survdiff(Surv(futime, fustat) ~ rx,data=ovarian, rho=0)

I hope this helps?

Best,
Roland

        [[alternative HTML version deleted]]

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to