Description Usage Arguments Value Author(s) See Also
Build the table for log-rank test calculation.
1 | logrank.table(survival, delta, trt)
|
survival |
Time to event or censoring. |
delta |
Event indicator: 1 for observed cases, 0 for censored cases. |
trt |
Treatment assignment indicator: 1 for treatment group, 0 for control group. |
Build a table for log-rank test which ouputs ordered survival as follow-up times, delta as event indicators,trt as treatment assignement (treated=1, control=0), Y as the at-risk numbers, P1 as the proportion of treated set, P0 as the proportion of the control set.
In addition, the output also include O1 as the observed events from the treatment arm, E1 as the expected events from the treatment arm, Cov as the estimated variance.
Lili Wang
FH.test, I_t.2, WLR.test.cov,WLR.test.cor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.