WLRtest {strata.MaxCombo}R Documentation

This function performs weighted log-rank test.

Description

This function performs weighted log-rank test.

Usage

WLRtest(time, event, group, rho = 0, gamma = 0)

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

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.

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 doi: 10.1002/pst.2062

See Also

SMCtest

Examples

data(sim_data)
##load survival data
time <- sim_data$event_time
event <- sim_data$event_status
group <- sim_data$group

##perform weighted log-rank test
WLRtest(time,event,group,rho=0,gamma=0)


[Package strata.MaxCombo version 0.0.1 Index]