[Paper Review] The R Package JMbayes for Fitting Joint Models for Longitudinal and Time-to-Event Data using MCMC
This paper introduces the R package JMbayes, which fits joint models for longitudinal and time-to-event data using Markov Chain Monte Carlo (MCMC) under a Bayesian framework. It enables flexible modeling of associations between outcomes, dynamic prediction for both longitudinal and survival processes, and comprehensive validation of predictions through discrimination and calibration metrics, demonstrated on primary biliary cirrhosis data.
Joint models for longitudinal and time-to-event data constitute an attractive modeling framework that has received a lot of interest in the recent years. This paper presents the capabilities of the R package JMbayes for fitting these models under a Bayesian approach using Markon chain Monte Carlo algorithms. JMbayes can fit a wide range of joint models, including among others joint models for continuous and categorical longitudinal responses, and provides several options for modeling the association structure between the two outcomes. In addition, this package can be used to derive dynamic predictions for both outcomes, and offers several tools to validate these predictions in terms of discrimination and calibration. All these features are illustrated using a real data example on patients with primary biliary cirrhosis.
Motivation & Objective
- To develop a flexible R package for fitting joint models of longitudinal and time-to-event data under a Bayesian framework.
- To enable dynamic predictions for both longitudinal and survival outcomes using MCMC sampling.
- To provide tools for validating predictions through discrimination and calibration metrics.
- To support a wide range of association structures between longitudinal and survival processes, including for continuous and categorical responses.
- To facilitate practical use through a web interface and integration with existing R modeling workflows.
Proposed method
- Uses a Bayesian approach with MCMC algorithms to estimate joint models for longitudinal and time-to-event data.
- Employs a random walk Metropolis-Hastings algorithm with adaptive tuning during an initial adaptation phase.
- Utilizes separate mixed-effects and Cox models to inform proposal distributions for efficient MCMC sampling.
- Implements a one-long-chain MCMC strategy with burn-in, adaptation, and thinning to ensure convergence and efficiency.
- Supports flexible association structures, including transformations of longitudinal terms in the survival submodel.
- Enables Bayesian model averaging for combining predictions from multiple joint models.
Experimental results
Research questions
- RQ1How can joint models for longitudinal and time-to-event data be efficiently fitted using Bayesian MCMC methods in R?
- RQ2What are the most effective ways to model the association between a time-varying longitudinal process and a time-to-event outcome?
- RQ3How can dynamic predictions be generated and validated for both longitudinal and survival outcomes in a joint modeling framework?
- RQ4What are the performance characteristics of MCMC-based inference in joint models, particularly in terms of convergence and computational efficiency?
- RQ5How can prediction accuracy be quantified using discrimination and calibration measures in joint modeling?
Key findings
- The JMbayes package successfully implements a wide range of joint models, including for continuous and categorical longitudinal responses, under a Bayesian MCMC framework.
- Dynamic predictions for both longitudinal and survival outcomes are feasible and can be validated using discrimination and calibration tools.
- The MCMC algorithm achieves stable convergence through adaptive tuning and burn-in phases, with default settings (n.adapt=3000, n.burnin=3000, n.iter=20000) ensuring reliable inference.
- The use of proposal distributions informed by separate mixed-effects and Cox models improves MCMC efficiency and mixing.
- The package supports advanced features such as Bayesian model averaging for prediction combination and provides a web interface for practical deployment.
- The methodological framework was validated on real PBC data, demonstrating its utility in clinical research with 312 patients and 1945 longitudinal observations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.