This package can be installed via `devtools::install_github("cathyzzzhang/jointCompRisk")`
Meanwhile, there is also a dashboard version: https://ihpte0-wenqing-zhang.shinyapps.io/jointcompriskdash/

This package estimates the chance of each outcome over time (cumulative incidence functions) and performs joint inference so you can compare and combine outcomes instead of picking just one. It summarizes treatment benefit as restricted mean time gained for recovery (RMLT1) and restricted mean time lost to mortality (RMLT2), and also supports severity/quality-of-life weighted extensions (WRMLT1/WRMLT2). Results come with uncertainty intervals, plots, and reproducible examples (including COVID-19 trials)

Original work by Jiyang et al. was published in Biometrics, Volume 79, Issue 3, September 2023, Pages 1635–1645. https://academic.oup.com/biometrics/article/79/3/1635/7513812?login=false
