Description Usage Arguments Value
Stratified weighted log-rank test
1 2 3 |
df |
A data frame. Assume standard structure for time-to-event data. |
trt_colname |
A character string. The name of the treatment column in |
time_colname |
A character string. The name of the column in |
event_colname |
A character string. The name of the column in |
strat_colname |
A character string. The name of the stratifying-variable column in |
wlr |
The type of weighted log-rank test. Either the default "lr" for a standard log-rank test, "mw" for a modestly-weighted log-rank test, or "fh" for the Fleming-Harrington rho-gamma family. |
s_star |
This is a parameter for the "mw"-test. Either |
t_star |
This is a parameter for the "mw"-test. Either |
rho |
Rho parameter in the "fh"-test. The weights are defined as w(t) = S(t-)^ |
gamma |
Gamma parameter in the "fh"-test. The weights are defined as w(t) = S(t-)^ |
A list containing the overall test result and a data frame with the outcome of the weighted log-rank test in each strata. There is a column o_minus_e_trt
to indicate which treatment the "obs - exp" refers to.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.