[R] computing logrank statistic/test

R. Villegas villegas.ro at gmail.com
Mon May 7 23:24:20 CEST 2007


2007/5/7, raymond chiruka <rtchiruka at yahoo.com>:
> 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
>
>
>
>
> ---------------------------------
> The fish are biting.
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

Please, check this page:
http://www.ats.ucla.edu/stat/R/examples/asa/asa_ch2_r.htm

Rod.



More information about the R-help mailing list