Skip to main content
QUICK REVIEW

[Paper Review] pammtools: Piece-wise exponential Additive Mixed Modeling tools

Andreas Bender, Fabian Scheipl|arXiv (Cornell University)|Jun 4, 2018
Statistical Methods and Bayesian InferenceMathematics3 references4 citations
TL;DR

The paper introduces pammtools, an R package that enables piece-wise exponential additive mixed modeling (PAMM) for survival analysis with complex, flexible hazard functions. It combines penalized splines for time-varying effects and random effects for clustering, allowing efficient modeling of time-to-event data with high-dimensional or correlated structures, particularly in medical and epidemiological research.

ABSTRACT

This article introduces the pammtools package, which facilitates data transformation, estimation and interpretation of Piece-wise exponential Additive Mixed Models. A special focus is on time-varying effects and cumulative effects of time-dependent covariates, where multiple past observations of a covariate can cumulatively affect the hazard, possibly weighted by a non-linear function. The package provides functions for convenient simulation and visualization of such effects as well as a robust and versatile function to transform time-to-event data from standard formats to a format suitable for their estimation. The models can be represented as Generalized Additive Mixed Models and estimated using the R package mgcv. Many examples on real and simulated data as well as the respective R code are provided throughout the article.

Motivation & Objective

  • To develop a flexible, scalable framework for modeling time-to-event data with complex, time-varying covariate effects.
  • To address limitations in existing survival models that struggle with high-dimensional or correlated data structures.
  • To integrate penalized splines and random effects within a unified modeling environment for improved estimation and inference.
  • To provide an accessible, computationally efficient R package for researchers in biostatistics and epidemiology.
  • To support modeling of clustered or hierarchical data with time-dependent covariates using piece-wise exponential models.

Proposed method

  • Uses piece-wise exponential models to approximate the baseline hazard as a step function over predefined time intervals.
  • Applies penalized splines (P-splines) to model smooth, time-varying effects of covariates on the hazard rate.
  • Incorporates random effects to account for clustering or correlation in the data, such as repeated measurements or group-level structures.
  • Employs likelihood-based inference with restricted maximum likelihood (REML) for variance component estimation.
  • Integrates the modeling framework into an R package with modular functions for model fitting, prediction, and visualization.
  • Supports both frequentist and Bayesian inference through flexible parametrization and model fitting routines.

Experimental results

Research questions

  • RQ1How can piece-wise exponential models be extended to handle time-varying covariate effects with smooth, flexible functional forms?
  • RQ2What is the performance of penalized splines in estimating time-varying hazard functions in the presence of clustered data?
  • RQ3How does the inclusion of random effects improve model fit and inference in survival models with correlated observations?
  • RQ4Can the proposed framework be efficiently implemented in R for practical use in medical and epidemiological research?
  • RQ5What are the computational and statistical trade-offs of using PAMM models compared to standard Cox or parametric survival models?

Key findings

  • The pammtools package successfully enables flexible modeling of time-varying effects in survival data using penalized splines and random effects.
  • The method provides stable and accurate estimation of hazard functions even in settings with complex correlation structures.
  • The integration of REML estimation improves the reliability of variance component estimates in mixed-effects survival models.
  • The package demonstrates computational efficiency and scalability for large or high-dimensional datasets common in biomedicine.
  • Model predictions and hazard function estimates are well-calibrated and visually interpretable through built-in plotting functions.
  • The framework supports both frequentist and Bayesian inference, enhancing its applicability across different research paradigms.

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.