The rmt package implements the restricted mean time in favor (RMT-IF) of treatment approach to hierarchical composite endpoints (Mao 2022). With user-specified restriction times, one can estimate and make inference on the over effect size as well as its components (Mao and Wang 2023) . Sample size calculation routines are also available (Mao 2023b, 2023a).
Installation
Install rmt from CRAN with:
install.packages("rmt")
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("lmaowisc/rmt")
References
Mao, Lu. 2022. “On Restricted Mean Time in Favor of Treatment.” Biometrics 79 (1): 61–72. https://doi.org/10.1111/biom.13570.
———. 2023a. “Study Design for Restricted Mean Time Analysis of Recurrent Events and Death.” Biometrics 79 (4): 3701–14. https://doi.org/10.1111/biom.13923.
———. 2023b. “Power and Sample Size Calculations for the Restricted Mean Time Analysis of Prioritized Composite Endpoints.” Statistics in Biopharmaceutical Research 15 (3): 540–48. https://doi.org/10.1080/19466315.2022.2110936.
Mao, Lu, and Tuo Wang. 2023. “Dissecting the Restricted Mean Time in Favor of Treatment.” Journal of Biopharmaceutical Statistics 34 (1): 111–26. https://doi.org/10.1080/10543406.2023.2210658.