MyNixOS website logo
Description

A Unified Framework for Machine Learning Ensembles in Survival Analysis.

Implements a Super Learner framework for right-censored survival data. The package fits convex combinations of parametric, semiparametric, and machine learning survival learners by minimizing cross-validated risk using inverse probability of censoring weighting (IPCW). It provides tools for automated hyperparameter grid search, high-dimensional variable screening, and evaluation of prediction performance using metrics such as the Brier score, Uno's C-index, and time-dependent area under the curve (AUC). Additional utilities support model interpretation for survival ensembles, including Shapley additive explanations (SHAP), and estimation of covariate-adjusted restricted mean survival time (RMST) contrasts. The methodology is related to treatment-specific survival curve estimation using machine learning described by Westling et al. (2024) <doi:10.1080/01621459.2023.2205060>, and the unified ensemble framework described in Lyu et al. (2026) <doi:10.64898/2026.03.11.711010>.

SuperSurv: A Unified Framework for Machine Learning Ensembles in Survival Analysis

R-CMD-check Lifecycle: experimental

SuperSurv is an R package for building, evaluating, and interpreting ensemble models for right-censored survival data.

At its core, the package implements a Super Learner-style ensemble framework for continuous-time survival prediction under right censoring. Using inverse probability of censoring weighting (IPCW), it combines heterogeneous base learners by minimizing cross-validated prediction risk. The framework supports learners that return full survival curves as well as learners that return only risk scores, which are calibrated to a common survival-probability scale on a shared evaluation time grid.

Beyond ensemble fitting, SuperSurv provides tools for:

  • hyperparameter tuning
  • high-dimensional screening
  • time-dependent model benchmarking
  • SHAP-based interpretability
  • covariate-adjusted restricted mean survival time (RMST) contrasts

The package also provides a more user-friendly model interface through print(), summary(), coef(), and exported accessors such as event_weights(), censor_weights(), learner_names(), training_variables(), selected_variables(), and eval_times().


๐Ÿš€ Get Started

The best place to start is the installation and setup tutorial:

๐Ÿ‘‰ Tutorial 0: Installation & Setup

You can also browse the full documentation site here:

๐Ÿ‘‰ SuperSurv website


๐Ÿ“ฆ Installation

Install the CRAN release:

install.packages("SuperSurv")

Install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("yuelyu21/SuperSurv")

๐Ÿ“ฆ Dependency philosophy

To keep installation lightweight, several heavier machine-learning engines are listed in Suggests rather than imported as strict dependencies. This means users can install only the modeling backends they plan to use. If a requested learner is unavailable, SuperSurv will prompt the user to install the required package.


๐Ÿ“š Included learners and screeners

SuperSurv currently standardizes a broad set of prediction wrappers and screening methods within a unified interface.

Prediction learners

  • Machine learning: random forests, gradient boosting, XGBoost, support vector machines, BART, ranger
  • Penalized/high-dimensional: elastic net, ridge regression, CoxBoost
  • Tree-based: RPART
  • Classical/parametric: Cox proportional hazards, Weibull, exponential, log-logistic, log-normal, generic parametric models
  • Smoothing/splines: generalized additive models
  • Baseline models: Kaplanโ€“Meier

Screening methods

  • keep all features
  • marginal Cox screening
  • variance-based screening
  • elastic-net-based screening
  • random forest variable hunting

The framework is extensible, and users can add custom learners and screeners. See the extensibility vignette for details.


๐Ÿ“– Documentation

The package website includes tutorials covering:

  • 00. Installation & Setup
  • 01. The SuperSurv Ensemble
  • 02. Model Performance
  • 03. Selection vs. Ensemble
  • 04. Screening Methods
  • 05. Hyperparameter Tuning
  • 06. Random Forests
  • 07. Parametric Models
  • 08. SHAP Interpretability
  • 09. Causal Inference (RMST)
  • 10. Extending SuperSurv

๐Ÿ“– Citation

To cite the package, use:

citation("SuperSurv")

If you would also like to cite the accompanying preprint:

Lyu, Y., Lin, S. H., Huang, X., & Li, Z. (2026).
SuperSurv: A Unified Framework for Machine Learning Ensembles in Survival Analysis.
bioRxiv.
https://doi.org/10.64898/2026.03.11.711010

Related methodological work:

Westling, T., Luedtke, A., Gilbert, P. B., & Carone, M. (2024).
Inference for treatment-specific survival curves using machine learning.
Journal of the American Statistical Association.
https://doi.org/10.1080/01621459.2023.2205060

Metadata

Version

0.1.7

License

Unknown

Platformsย (79)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    wasip1
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasip1
  • wasm64-wasip1
  • x86_64-cygwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows