survRM2adapt-package: Flexible and Coherent Test/Estimation Procedure Based on...

survRM2adapt-packageR Documentation

Flexible and Coherent Test/Estimation Procedure Based on Restricted Mean Survival Times

Description

Estimates the restricted mean survival time (RMST) with a time window [0, tau], where tau is selected during the procedure from among the time points provided by the user. It also estimates the RMST with a time window [tau1, tau2], where tau1 is selected during the procedure, same as above.

Author(s)

Miki Horiguchi, Lu Tian, Hajime Uno

Maintainer: Miki Horiguchi <horiguchimiki@gmail.com>

References

Horiguchi M, Cronin A, Takeuchi M, Uno H. A flexible and coherent test/estimation procedure based on restricted mean survival times for censored time-to-event data in randomized clinical trials. Statistics in Medicine 2018. DOI:10.1002/sim.7661.

Horiguchi M, Tian L, Uno H. On assessing survival benefit of immunotherapy using long-term restricted mean survival time. Statistics in Medicine 2023. DOI:10.1002/sim.9662.

See Also

survival survRM2

Examples

#--- Adaptive RMST test/estimation method by rmst2adapt() ---#
data    = rmst2adapt.sample.data()
nmethod = 100 #This is only for example use.
              #Recommended to specify at least 100000 (default) or larger.

a       = rmst2adapt(indata=data, tau_star=seq(6,12,2), method="perturbation",
               nmethod=nmethod, test="2_side", seed=123)
print(a)

#--- Adaptive long-term RMST test/estimation method by ltrmst2adapt() ---#
data    = cm214_pfs
b       = ltrmst2adapt(indata=data, tau1=c(0,1,2,3), tau2=10, 
               test="2_side", seed=123)
print(b)

survRM2adapt documentation built on March 31, 2023, 7:15 p.m.