logrank.table: Basic function for standard log-rank test

Description Usage Arguments Value Author(s) See Also

View source: R/WLRT.R

Description

Build the table for log-rank test calculation.

Usage

1
logrank.table(survival, delta, trt)

Arguments

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.

Value

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.

Author(s)

Lili Wang

See Also

FH.test, I_t.2, WLR.test.cov,WLR.test.cor


lilywang1988/IAfrac documentation built on March 11, 2021, 11:53 a.m.