Skip to main content
QUICK REVIEW

[Paper Review] SemiCompRisks: An R Package for Independent and Cluster-Correlated Analyses of Semi-Competing Risks Data

Danilo Alvares, Sebastien Haneuse|arXiv (Cornell University)|Jan 10, 2018
Bayesian Methods and Mixture ModelsComputer Science25 references4 citations
TL;DR

This paper introduces the SemiCompRisks R package for analyzing semi-competing risks data using illness-death multi-state models, offering flexible Bayesian and frequentist estimation under accelerated failure time or proportional hazards frameworks. It supports independent and cluster-correlated data, parametric/nonparametric baseline hazards, random effects, and Markov/semi-Markov assumptions, with key contributions in model versatility and practical implementation for survival analysis in medical research.

ABSTRACT

Semi-competing risks refer to the setting where primary scientific interest lies in estimation and inference with respect to a non-terminal event, the occurrence of which is subject to a terminal event. In this paper, we present the R package SemiCompRisks that provides functions to perform the analysis of independent/clustered semi-competing risks data under the illness-death multi-state model. The package allows the user to choose the specification for model components from a range of options giving users substantial flexibility, including: accelerated failure time or proportional hazards regression models; parametric or non-parametric specifications for baseline survival functions; parametric or non-parametric specifications for random effects distributions when the data are cluster-correlated; and, a Markov or semi-Markov specification for terminal event following non-terminal event. While estimation is mainly performed within the Bayesian paradigm, the package also provides the maximum likelihood estimation for select parametric models. The package also includes functions for univariate survival analysis as complementary analysis tools.

Motivation & Objective

  • To address the limitations of univariate survival models in semi-competing risks settings, where terminal events (e.g., death) are incorrectly treated as independent censoring.
  • To provide a comprehensive, user-friendly R package that supports both independent and cluster-correlated semi-competing risks data under the illness-death multi-state model.
  • To offer flexible modeling options including accelerated failure time and proportional hazards regression, with parametric or nonparametric baseline survival functions and random effects distributions.
  • To integrate Bayesian estimation with maximum likelihood for select parametric models, enabling robust inference across diverse data structures.
  • To support practical application through illustrative analyses using real stem cell transplantation data and extensive documentation via vignettes.

Proposed method

  • The package implements the illness-death multi-state model to represent transitions from initial state to non-terminal event (e.g., disease diagnosis), followed by terminal event (e.g., death), with irreversible transitions.
  • It supports both Markov and semi-Markov assumptions for the terminal event following the non-terminal event, allowing modeling of dependence between event times.
  • Estimation is primarily conducted within the Bayesian framework using MCMC, with prior distributions specified for regression coefficients, baseline hazards, and frailty terms.
  • For selected parametric models, maximum likelihood estimation is also available, providing an alternative to Bayesian inference.
  • Users can specify baseline survival functions as parametric (e.g., log-normal) or nonparametric (via B-splines), and random effects distributions as parametric or nonparametric (via Dirichlet process mixtures).
  • The package includes functions for univariate survival analysis as complementary tools, enhancing its utility in exploratory and confirmatory analyses.

Experimental results

Research questions

  • RQ1How can semi-competing risks data be modeled to properly account for dependence between a non-terminal event and a terminal event, avoiding bias from independent censoring assumptions?
  • RQ2What are the most effective modeling strategies for semi-competing risks data when data are clustered (e.g., by center or family), and how can random effects capture within-cluster correlation?
  • RQ3How do different specifications—such as parametric vs. nonparametric baseline hazards, or Markov vs. semi-Markov assumptions—affect model fit and inference in semi-competing risks analysis?
  • RQ4To what extent does the Bayesian framework with MCMC provide reliable and efficient estimation in complex semi-competing risks models compared to maximum likelihood?
  • RQ5How can the R package SemiCompRisks be used to support reproducible and flexible analysis of semi-competing risks data in real-world biomedical studies?

Key findings

  • The SemiCompRisks package successfully implements a wide range of semi-competing risks models, including AFT and PH models with flexible baseline and random effects specifications.
  • Bayesian estimation via MCMC achieved convergence, as indicated by potential scale reduction factor (PSRF) values close to 1.0 for all parameters, including regression coefficients and frailty variances.
  • For the stem cell transplantation dataset, the AFT model with log-normal baseline hazards showed that patients with dTypeCML had a 47% lower hazard of non-terminal event (HR = 0.53, 95% CrI: 0.42–0.67) compared to dTypeALL.
  • The variance of frailties (theta) was estimated at 2.6 (95% CrI: 2.5–2.8), indicating meaningful unobserved heterogeneity across clusters.
  • Baseline log-normal parameters for the first transition (non-terminal event) were estimated as mu = 8.2 (95% CrI: 8.0–8.4) and sigmaSq = 7.1 (95% CrI: 6.4–8.0), reflecting high variability in event times.
  • The package’s implementation enables accurate estimation of survival probabilities and hazard ratios, with credible intervals that reflect uncertainty in complex, clustered semi-competing risks data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.