WLRtest: This function performs weighted log-rank test.
Description
This function performs weighted log-rank test.
Usage
WLRtest(time, event, group, rho = 0, gamma = 0)
Value
A list with components:
z
z value of weighted log-rank test.
pvalue.two.sided
p-value for two-sided test.
pvalue.less
p-value for one-sided test (less).
pvalue.greater
p-value for one-sided test (greater).
D
a matrix containing components that can be used in stratified max-combo test.
Arguments
time
time a vector of event or censored times.
event
a vector with entries 0 or 1, indicating event occurrence (1) or time being censored (0).
group
a vector indicating treatment groups.
rho
a value of rho in Fleming-Harrington weight
gamma
a value of gamma in Fleming-Harrington weight
References
Ristl, R., Ballarini, N., Götte, H., Schüler, A., Posch, M. and König, F. (2021).
Delayed treatment effects, treatment switching and heterogeneous patient populations: How to design and analyze RCTs in oncology.
Pharmaceutical Statistics., 20:129-145 tools:::Rd_expr_doi("10.1002/pst.2062")