Hi,

On 5/1/07, raymond chiruka <rtchiruka@yahoo.com> 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]]

