wlrt | R Documentation |
Weighted log-rank test
wlrt(df, trt_colname, time_colname, event_colname, wlr = "lr",
s_star = NULL, t_star = NULL, rho = NULL, gamma = NULL)
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 |
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 data frame. The outcome of the weighted log-rank test. 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.