[R] computing logrank statistic/test

Marc Schwartz marc_schwartz at comcast.net
Mon May 7 23:13:28 CEST 2007


On Mon, 2007-05-07 at 14:02 -0700, raymond chiruka wrote:
> hie how do you compute the logrank test using R
>     what commands do you use my data looks something like just an example
>   
>     treatmentgrp strata censoringTime survivalTime censoring act.surv.time
>    [1,]             2      2       42.89005     1847.3358          1      42.89005
>    [2,]             1      1       74.40379      440.3467          1      74.40379
>    [3,]             2      2       35.17913      344.1113          1      35.17913
>    [4,]             2      2       55.79590      741.2375          1      55.79590
>    [5,]             2      1      384.73976      189.7997          0     189.79968
>    [6,]             1      2      112.76215      375.8227          1     112.76215
>    [7,]             2      2       20.82441      658.0410          1      20.82441
>    [8,]             2      2       30.58497     1537.5776          1      30.58497
>    [9,]             2      1      128.48140      306.9908          1     128.48140
>   
>   l would like to compare the result with SAS

Raymond,

You asked the same question back on May 1, with several answers by
myself, Peter Dalgaard and Roland Rau.

Did you not see the replies?

https://stat.ethz.ch/pipermail/r-help/2007-May/130956.html

HTH,

Marc Schwartz



More information about the R-help mailing list