#====================================================================
# cm214_pfs: The sample reconstructed data of the CheckMate214 study.
#====================================================================
# The code below reproduces the results reported by
# Uno H and Horiguchi M (StatMed; 2023) in Table 6.
D = cm214_pfs
time = D$time
status = D$status
arm = D$arm
tau = 21
a = ah2(time=time, status=status, arm=arm, tau=tau, conf.int=0.95, eta=0)
print(a, digits=3)
# The code below reproduces the results reported by
# Horiguchi M, Tian L, Kehl K.L, Uno H (arXiv; 2024) in Table 3.
b = ah2(time=time, status=status, arm=arm, tau=21, conf.int=0.95, eta=7)
print(b, digits=3)
#====================================================================
# Stratified analysis example
#====================================================================
D = myeloid
time = D$futime/365.25
status = D$death
arm = as.numeric(D$trt=="A")
tau = 3
strata = as.numeric(D$flt3)
b = ah2(time=time, status=status, arm=arm, strata=strata, tau=tau)
print(b, digits=3)
Run the code above in your browser using DataLab