Semi-Parametric Joint Modeling of Survival and Longitudinal Data: The R Package JSM

Cong Xu, Pantelis Z. Hadjipantelis, Jane-Ling WangJournal of Statistical Software 2020

Abstract

This paper introduces the R package JSM, which facilitates the joint statistical modeling of survival and longitudinal data. In biomedical studies, it is common to collect both baseline and longitudinal covariates alongside potentially censored survival times. Joint modeling approaches address biases inherent in separate analyses by linking these processes through shared latent effects. JSM extends traditional frameworks by offering a general class of transformation models for survival processes and a non-parametric multiplicative random effects model for longitudinal processes. We illustrate the package's utility through two real-world datasets: liver cirrhosis and Mayo Clinic primary biliary cirrhosis (PBC).

Introduction

In clinical research, the simultaneous collection of longitudinal measurements (e.g., repeated biomarker levels) and survival data (e.g., time to death) is standard practice. However, analyzing these data streams independently can lead to significant statistical bias. A primary concern is informative dropout, where a patient's survival event (such as death) terminates the collection of longitudinal data. Standard longitudinal models often fail to account for this, leading to "survivor bias" where the observed population appears healthier than the true population. Conversely, survival models that ignore the history of longitudinal changes lose valuable predictive information.

Thematic representation of the temporal dynamics in survival and longitudinal data.

The JSM package addresses these challenges by providing a flexible, semi-parametric framework that links longitudinal and survival processes through shared random effects, ensuring more robust and accurate inference.

Methodology

The JSM package introduces several technical advancements over existing joint modeling software:

Flexible Survival Transformation Models

Unlike many packages restricted to the Cox proportional hazards model, JSM supports a broad class of transformation models. By varying a parameter $\rho$, researchers can specify models ranging from proportional hazards ($\rho=0$) to proportional odds ($\rho=1$). This flexibility allows for a better fit to the underlying baseline hazard, which remains completely unspecified (semi-parametric).

Non-Parametric Longitudinal Modeling

In addition to standard linear mixed-effects models, JSM implements a non-parametric multiplicative random effects model. This approach uses B-splines to capture complex, non-linear population trends that simple linear models might miss.

Computational Efficiency and Robustness

To facilitate estimation in a semi-parametric setting, the package utilizes a mathematical "artificial random effect" trick within the Expectation-Maximization (EM) algorithm. This simplifies the survival component's complexity. Furthermore, JSM employs the PRES (Profile Fisher score with Richardson Extrapolation) method for standard error estimation, which is more computationally efficient and reliable than traditional bootstrapping. The core numerical integration (Adaptive Gauss-Hermite quadrature) is implemented in C++ via Rcpp to ensure high performance.

Empirical Applications

The package's capabilities are illustrated using two landmark datasets:

  1. Liver Cirrhosis Data: A study of 488 patients tracking the prothrombin index as a measure of liver function.
  2. Mayo Clinic PBC Data: A study of 312 patients monitoring serum bilirubin levels.

Key Results and Insights

Analysis using JSM yielded several critical insights:

  • Correction of Survivor Bias: In the liver cirrhosis study, naive longitudinal analysis suggested an improvement in prothrombin levels over time. JSM revealed that this was an artifact of high-risk patients dropping out; the true trend was significantly flatter.
  • Model Selection: Using the Akaike Information Criterion (AIC), the proportional odds model was found to provide a superior fit for the liver data compared to the standard Cox model, highlighting the importance of the package's flexible survival component.
  • Biomarker Significance: In both datasets, the longitudinal biomarkers (prothrombin and bilirubin) were found to be highly significant predictors of survival ($p < 2e-16$), demonstrating the strength of the association captured by the joint model.

Conclusion

The JSM package provides a powerful tool for researchers dealing with complex, interdependent biomedical data. By relaxing parametric assumptions and providing robust estimation methods, it offers a more nuanced understanding of patient trajectories and survival risks. Future developments for the package include support for multivariate longitudinal outcomes and categorical biomarkers.

Summary updated

BibTeX
@article{xu2020semi,
  author = {Cong Xu and Pantelis Z. Hadjipantelis and Jane-Ling Wang},
  title = {{Semi-Parametric Joint Modeling of Survival and Longitudinal Data: The <i>R</i> Package <b>JSM</b>}},
  journal = {Journal of Statistical Software},
  year = {2020},
  doi = {10.18637/jss.v093.i02},
}
Figure