Description Usage Arguments Value Author(s)
Basic function to build the table for the calculation of the Fleming-Harrington family of weighted log-rank tests.
1 |
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^-))^γ. |
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.
Lili Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.