Build the table for log-rank test calculation.
logrank.table(survival, delta, trt)
Time to event or censoring.
Event indicator: 1 for observed cases, 0 for censored cases.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.