FH.table: Basic function for Fleming-Harrington family weighted...

Description Usage Arguments Value Author(s)

View source: R/WLRT.R

Description

Basic function to build the table for the calculation of the Fleming-Harrington family of weighted log-rank tests.

Usage

1
FH.table(survival, delta, trt, rho, gamma)

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.

rho, gamma

Parameters for Fleming-Harrington family with W(t)=S^ρ(t^-)(1-S(t^-))^γ.

Value

Build a table for Fleming-Harrington log-rank test which ouputs ordered survival as follow-up times, Surv as predictable survival functions S(t^-), Surv.exact as exact survival functions S(t), delta as event indicators, trt as treatment assignement (treated=1, control=0), weight as weight functon calcualted from the predictable survival functions Surv.

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 without considering the weights.

Author(s)

Lili Wang


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