JMbayes: Joint Models for Longitudinal and Survival Data under the Bayesian Approach

Travis-CI Build Status CRAN status Download counter Research software impact DOI


This repository contains the source files for the R package JMbayes. This package fits joint models for longitudinal and time-to-event data under a Bayesian approach using MCMC. These models are applicable in mainly two settings. First, when focus is on the survival outcome and we wish to account for the effect of an endogenous (aka internal) time-dependent covariates measured with error. Second, when focus is on the longitudinal outcome and we wish to correct for nonrandom dropout.

The package contains two main joint-model-fitting functions, jointModelBayes() and mvJointModelBayes() with similar syntax but different capabilities.

Basic Features jointModelBayes()

Basic Features mvJointModelBayes()

Dynamic predictions


Vignettes are available in the doc directory: