Skip to main content
Springer logoLink to Springer
. 2026 Aug 3;32(3):46. doi: 10.1007/s10985-026-09725-x

Backward joint model for the joint dynamic prediction of time-to-event and longitudinal data: basic formulation and new developments

Wenhao Li 1, Shikun Wang 2, Zhe Yin 1, Brad C Astor 3, Wei Yang 4, Tom H Greene 5, Liang Li 1,✉
PMCID: PMC13433653  PMID: 42545639

Abstract

Dynamic prediction of future clinical outcomes based on longitudinally measured predictors plays a crucial role in disease management and patient counseling, particularly when conventional static models are inadequate. Joint modeling of longitudinal and time-to-event data provides a useful framework for addressing this challenge. In this paper, we present a comprehensive development of the recently proposed backward joint model (BJM; Shen and Li, 2021), which factorizes the likelihood into the distribution of time-to-event data and the conditional distribution of longitudinal data given the event time. This structure facilitates computation and is well-suited for multivariate longitudinal data. We introduce several novel developments to the BJM, including the extrapolation and two-part specifications, as well as the incorporation of competing risks. We also address an important yet underexplored problem in the literature: predicting future longitudinal trajectories conditional on predicted event times. Additionally, we explore the connection between BJM and existing joint modeling approaches. All these extensions preserve the computational advantages of the basic BJM formulation, including one-dimensional numerical integration, convex optimization via the EM algorithm, and a quick procedure for consistent estimation using standard software. We evaluate the method’s performance through simulation studies and illustrate its utility in a chronic kidney disease application.

Supplementary Information

The online version contains supplementary material available at https://doi.org/10.1007/s10985-026-09725-x.

Keywords: Competing risks, Dynamic prediction, Joint model, Multivariate longitudinal data, Survival analysis

Introduction

Motivating applications

Chronic kidney disease (CKD) is a major public health burden. It is characterized by a gradual and often irreversible deterioration of kidney function over years, and is progressively associated with many comorbidities and adverse outcomes, including diabetes, hypertension, and cardiovascular disease (Appel et al. 2023). The stages of CKD are defined based on the kidney function biomarker, glomerular filtration rate (GFR, in mL/min/1.73 mInline graphic). Stages 1, 2, 3A, 3B, 4 and 5 correspond to GFR in ⩾ 90, 60-89, 45-59, 30-44, 15-29, and < 15 mL/min/1.73 mInline graphic, respectively. At the low end of stage 4 or stage 5, patients need to be prepared for entering End-Stage Renal Disease (ESRD), when either dialysis or kidney transplant is required. Once a CKD patient enters ESRD, the GFR is not applicable. Hence, we call the ESRD a “terminal” event. Death is another terminal event.

Predicting ESRD is crucial for research, clinical management, and patient counseling. An effective prediction model should address several key statistical challenges. First, it must adapt to a dynamic at-risk population and time-varying associations between predictors and outcomes (Li et al. 2016). Changes in the at-risk population arise from aging and systematic differences between early and late progressors, while predictor relevance may shift over the disease course. Second, the model should incorporate patients’ clinical history, not just their current health status. Third, patients differ in their concerns: those in early disease stages may care more about long-term GFR trajectories assuming survival, rather than immediate ESRD risk. Finally, the model must account for the competing risk of death to avoid bias and ensure valid interpretation (Li et al. 2019).

Overview of dynamic prediction (DP)

The statistical challenges above can be addressed within the framework of dynamic prediction (Taylor et al. 2005; Yu et al. 2008; Rizopoulos 2011), which can be formulated mathematically as follows. Suppose the training dataset includes n subjects indexed by i = 1, 2, … , n. Let Inline graphic be the time to a terminal event and Inline graphic the censoring time. The observed time is Inline graphic, with censoring indicator Inline graphic. Let Inline graphic denote the vector of baseline covariates. Assume M continuous biomarkers are measured longitudinally, indexed by m = 1, 2, … , M. For subject i, let Inline graphic be the repeated measurements of the m-th biomarker, observed at the follow-up visit times Inline graphic, with Inline graphic measurements. Measurement times may be irregular and differ across biomarkers and subjects. Let Inline graphic and Inline graphic denote the stacked vectors of all longitudinal biomarker values and their corresponding times. We use two conventional assumptions in the joint modeling literature: non-informative observation times, which requires the distribution of Inline graphic in Inline graphic to be independent of the rest of the data, and independent censoring, which requires Inline graphic.

We use the subscript o to index a generic subject from the validation data, with a distribution identical to that of the training data, for whom the prediction will be made at time s. Let Inline graphic represent the longitudinal biomarker history prior to s (i.e., all the biomarker measurements before s). Δ denotes a pre-specified prediction horizon. The DP literature usually studies the following estimand, which pertains to the risk of a future clinical event:

graphic file with name d33e411.gif 1

We refer to this equation as the dynamic prediction formula. The left-hand side is the probability of the event in the next Δ years (or other time units), given that the subject is still at-risk at the prediction time s (Inline graphic) and given the observed history (Inline graphic, Inline graphic). This estimand addresses the first two statistical challenges in Sect. 1.1. The Inline graphic on the left hand side is eliminated on the right-hand side due to the independent censoring assumption.

The left of (1) suggests the landmark modeling approach to DP, i.e., fitting a regression model of residual lifetime Inline graphic given the covariates from Inline graphic and Inline graphic, among the at-risk subjects with Inline graphic (Zheng and Heagerty 2005; van Houwelingen and Putter 2011; Li et al. 2016; Wu et al. 2020). The right hand suggests the joint modeling approach because the prediction can be calculated from Inline graphic, a model for the joint distribution of longitudinal and survival data (Rizopoulos 2012; Elashoff et al. 2016; Andrinopoulou et al. 2021). Any appropriate joint model of longitudinal and survival data can be used here. See a review of related literature in Section 2.3. This formula encapsulates the two mainstream approaches to DP in a single equation.

In a longitudinal setting such as Sect. 1.1, the DP model is, in theory, more accurate than the commonly used static prediction model (SPM) because it is adaptive to the time-varying at-risk population and longitudinal history. The SPM is trained by regressing the survival outcome on baseline predictors (including baseline Inline graphic as part of Inline graphic), then applied at the time s using predictor values observed at that time (Parast et al. 2019; Yao et al. 2023). Formally, let Inline graphic denote the event time and Inline graphic denote the history of all predictors up to Inline graphic. The conditional distribution of survival data given the baseline predictor is Inline graphic with parameter Inline graphic. The joint distribution of longitudinal and survival data is Inline graphic with parameter Inline graphic. For an at-risk subject at time s, the static prediction is

graphic file with name d33e551.gif

The dynamic prediction is

graphic file with name d33e555.gif

Then, among subjects in the risk set Inline graphic, the DP model has equal or better prediction accuracy than the SPM in terms of the Brier score, i.e.,

graphic file with name d33e565.gif 2

where Inline graphic is the squared error loss for predicted probability P at prediction time s. The proof is in the Online Appendix. In practice, the relative performance of SPM and DP may be influenced by model misspecification, finite-sample variability, and how effectively clinical history is incorporated. Nonetheless, this theoretical result provides support for the use of DP. Li et al. (2023) showed that both landmark and joint modeling approaches are valuable and merit further investigation.

Dynamic prediction of future longitudinal data

We now address the third statistical challenge in Sect. 1.1. Let P(.) denote probability or probability density, when there is no ambiguity. We are interested in predicting the distribution of Inline graphic, the generic subject’s longitudinal biomarker at a future time t > s:

graphic file with name d33e601.gif 3

This is the probability density function of longitudinal biomarkers at a future time t, conditional on the subject being at risk (Inline graphic), with observed history Inline graphic and the absence of the future terminal event by t. The equality is derived from Bayes theorem and the independent censoring assumption. A key innovation of this formulation is that future biomarker values are only defined if the terminal event has not occurred. This predictive estimand has not been studied in the literature previously. Once the density in (3) is estimated, summary features — such as predicted mean, mode, and quantiles — can all be calculated, as demonstrated in our analysis. The future time t may vary to yield a subject-specific predicted trajectory. However, this trajectory should not be viewed as a simple extrapolation from past biomarker trends, since it incorporates the risk of the terminal event, which varies with t.

Unlike the dynamic prediction formula (1), the left-hand side of (3) does not suggest a straightforward landmark modeling approach for Inline graphic because of the conditioning on Inline graphic. Nonetheless, the right-hand side can still be calculated from joint modeling, as illustrated later.

Outline of this paper

We refer to the computation of both (1) and (3) for a generic subject in the validation data as a joint dynamic prediction problem. This is the primary analytical goal of this paper. Since both estimands are functions of the conditional joint distribution Inline graphic, we concentrate on estimating this distribution using the training data. While various models can be employed, such as the widely used shared random effects joint model (Rizopoulos 2012; Elashoff et al. 2016), this paper focuses on the backward joint model (BJM), initially proposed by Shen and Li (2021) for the dynamic prediction in (1). The BJM offers advantages in computational speed and stability, flexible specification, straightforward diagnostics, and easy implementation using standard software. We extend the BJM into a comprehensive framework for joint dynamic prediction, incorporating several new developments: a dual formulation (extrapolation and two-part models; Sect. 2.1), flexible submodel choices (Sects. 2.2), links to other joint models (Sects. 2.3 and 2.4), modeling assumptions assessment (Sect. 2.5), and an extension to competing risk outcomes (Sect. 3). Because right-censored time-to-event data are a special case of competing risks, estimation (Sect. 4), data analysis (Sect. 5), and simulation (Sect. 6) are all presented within this broader context. Summary and discussions are in Sect. 7. Additional supporting materials are provided in the Online Appendix.

The backward joint model (BJM): basic formulation

The likelihood factorization

The BJM factorizes the joint distribution of interest into two conditionals,

graphic file with name d33e715.gif 4

with each conditional distribution estimated by a sub-model separately (Sect. 2.2). Since Inline graphic precedes Inline graphic, this is referred to as the “backward” joint model, a term introduced by van Houwelingen and Putter (2011). Related methods and literature are discussed in Sect. 2.4.

Estimands (1) and (3) both involve this joint distribution in the denominator:

graphic file with name d33e745.gif

In typical biomedical studies, both Inline graphic and Inline graphic have finite support. We consider two study designs. In the first, there exists a time Inline graphic such that Inline graphic and Inline graphic. Under this setting, both conditional distributions in (4) are identifiable for all u in the support of Inline graphic, and a sub-model is required for each. This corresponds to a design where follow-up typically exceeds the survival time of study participants.

In the second scenario, there exists a time Inline graphic such that Inline graphic and Inline graphic for at least some subjects. In this case, the conditional distributions Inline graphic and Inline graphic are not identifiable from the data when Inline graphic, as follow-up is insufficient to estimate them over their entire support. To address this, we rewrite

graphic file with name d33e808.gif 5

A survival sub-model can identify Inline graphic for Inline graphic and Inline graphic. For the longitudinal component, two sub-models are needed: one for Inline graphic with Inline graphic, and another for Inline graphic, the latter corresponding to long-term survivors (LTS; Wang et al. 2020), i.e., those with Inline graphic.

In practice, we can use the estimated marginal distribution of Inline graphic to guide whether a separate longitudinal sub-model for the LTS is needed. If the Kaplan–Meier curve for Inline graphic drops near zero, the LTS group is likely negligible, and a single sub-model suffices; the extrapolation error is expected to be small. We refer to it as the BJM with extrapolation (BJM-EX), where Inline graphic and Inline graphic as functions of s are extrapolated beyond the observed data range. If the LTS group is non-negligible, a second longitudinal sub-model is required, resulting in the two-part BJM (BJM-TP). For BJM-TP, predictions are limited to times Inline graphic, since no terminal events are observed beyond Inline graphic, and no extrapolation is performed. In contrast, BJM-EX allows prediction beyond Inline graphic by relying on the extrapolation.

Remark 2.1

(Stacked building blocks for the joint distribution). Traditional regression model building begins with specifying a data-generating mechanism, formulating a compatible model, and deriving the likelihood for estimation and inference. Our approach takes the reverse route: we start with the likelihood and decompose it into components, each amenable to standard statistical methods available in typical software. This modular construction enables the joint model to be built by “stacking” basic building blocks, allowing for stable and efficient computation, scalability to multivariate longitudinal data, and direct implementation by existing software (Sect. 4).

Remark 2.2

(Reversing the conditional relationship). The shared random effects model (SJM) was originally developed to explain the association between longitudinal and survival data or to adjust for informative dropout (Albert 2018). It uses the likelihood factorization

graphic file with name d33e900.gif 6

where Inline graphic denotes shared random effects. The SJM was later adapted for the dynamic prediction problem in (1) (Taylor et al. 2005; Yu et al. 2008; Rizopoulos 2011). While real-world data generation is more complex than any model can fully capture, parsimonious models aligned with plausible causal mechanisms (e.g., modeling outcomes conditional on past covariates) offer interpretability and have contributed to the widespread adoption of the SJM. In contrast, the BJM was designed primarily as a prediction tool; hence, it does not reflect the data-generating mechanism. In predictive modeling, reversing the temporal order of the outcome and predictor in conditional distributions is common, since association — rather than causal implication —is all that’s needed for accurate prediction. For example, the Naive Bayes classifier models the covariate distribution given the outcome, then applies Bayes rule to predict the outcome. The BJM adopts a similar principle. Such reverse modeling is also prevalent in various other statistical applications (Sect. 2.3). A recent comprehensive discussion of modeling longitudinal data with reversed time scale can be found in Dempsey and McCullagh (2018), who called such models a revival model. The parameters in the BJM can be interpreted as quantifying the association between survival and longitudinal trend (Remark 3.1 in Sect. 3). Despite their apparent differences, the SJM and BJM are equivalent in certain situations and are expected to produce the same prediction (Sect. 2.4).

Sub-models for the components of the factorized likelihood

The likelihood component Inline graphic can be modeled using any appropriate survival regression with time-invariant covariates, such as the Cox model, the Weibull model, the accelerated failure time model, etc. Under the independent censoring assumption, the model can be estimated from the training data Inline graphic using standard survival analysis software, and the longitudinal data are not involved in this step. Model diagnosis procedures for these models are well-developed to mitigate model misspecification. The survival sub-model for Inline graphic also produce an estimate of Inline graphic for use in the BJM-TP.

The likelihood component Inline graphic for Inline graphic (BJM-EX) or Inline graphic (BJM-TP) can be modeled using any appropriate multivariate linear mixed model with the time-invariant covariates Inline graphic and Inline graphic (the measurement times, Inline graphic, are also included). Throughout this paper, we focus on continuous biomarkers in Inline graphic. The extension to a mixture of continuous and categorical biomarker variables is discussed in Sect. 7.

The likelihood component Inline graphic in BJM-TP needs to be estimated with a second longitudinal sub-model, defined on the LTS subjects (Inline graphic). The multivariate linear mixed model is a natural choice. The covariates in this model do not include Inline graphic because this model describes the overall distribution of the longitudinal data from LTS subjects, which comprise those with various Inline graphic values. In other words, the model conditions on Inline graphic, but not any specific Inline graphic; this is different from the longitudinal sub-model for the non-LTS. Specifically, the second term in (5) equals to

graphic file with name d33e1024.gif 7

It is determined by two functions, Inline graphic and Inline graphic, for Inline graphic. Unless an extrapolation is used, their values on Inline graphic, which are identifiable and part of the first term in (5), do not inform (7). Therefore, a separate sub-model for the LTS with its own parameters is needed in BJM-TP.

In the exhibition above, we discussed model formulation for BJM and also the estimation of the survival sub-model. The estimation of longitudinal sub-models requires accounting for censoring. The determination of whether a subject belongs to the LTS also requires consideration for censoring because subjects censored before Inline graphic may still belong to the LTS. Section 3 discusses the necessary censoring adjustment in model estimation.

Related literature

The basic ideas of the BJM were introduced by Shen and Li (2021), who focused on the estimand (1) and a two-part BJM formulation. This paper extends that work with a more comprehensive discussion and several new developments. Chapter 8.1 of van Houwelingen and Putter (2011) proposed that any joint distribution of Inline graphic and Inline graphic could be used for prognostic prediction. They also introduced the term “backward modeling,” though the discussion was limited to using uncensored data. We further speculate that the selection model (e.g., Chapter 18 of Fitzmaurice et al. (2009)), another joint modeling approach for missing data, may be applicable in this context. However, the SJM and its variants are well-established and widely used, and for an alternative joint model to be useful, it must offer advantages the SJM lacks. In our view, the BJM stands out due to its computational simplicity and ease of implementation. In addition, Putter and Van Houwelingen (2022) proposed some similar ideas as the BJM to build a revival model, such as reversing the time scale (Remark 2.2) and using the long-term survivors. However, their revival model is used to estimate a predictable time-dependent covariate process, which is then used in a landmark modeling-based dynamic prediction method.

The “backward” factorization has also been employed in other areas beyond prediction, such as pattern mixture models for missing data (Little 1993; Hogan et al. 2004), conditional linear models for informative dropout (Wu and Bailey 1989), longitudinal quality-of-life modeling near terminal events (Li et al. 2012, 2017; Wu et al. 2023), and describing individual trajectory patterns stratified by death (Kurland et al. 2009; Li et al. 2018; Kong et al. 2017; Wang et al. 2023, 2020, 2023, 2024). In all these cases, reversing the conditional relationship (Remark 2.2) led to interpretable model parameters. We illustrate the interpretation of the BJM in Sects. 3.2.

Connection with other joint models

While the SJM and BJM are different models, they have overlap, i.e., some SJMs can be written as BJMs. In such situations, the SJM and BJM are equivalent and expected to produce the same result. The likelihood of an SJM in (6) always implies that a backward conditional distribution exists:

graphic file with name d33e1148.gif 8

However, we refer to it in this paper as a BJM only when this conditional distribution takes the form of a multivariate linear mixed model, because this is the formulation discussed here. Of note, this formulation still allows the mean of Inline graphic to be linearly associated with nonlinear transformations of Inline graphic and Inline graphic. Consider the following SJM:

graphic file with name d33e1166.gif 9

The first equation defines the longitudinal sub-model, a multivariate linear mixed model. Here, Inline graphic and Inline graphic are design matrices for the fixed and random effects, respectively, both known functions of Inline graphic and Inline graphic. The random effects Inline graphic, and the residual errors Inline graphic, are mutually independent. The second equation specifies the survival sub-model, with H(· ) denoting a monotone increasing transformation, Inline graphic is a known design matrix, and Inline graphic is an independent residual term. The random vectors Inline graphic, Inline graphic, and Inline graphic are assumed to be independent. Several well-known joint models are special cases of (9). For instance, Liu and Ying (2007) assumes an unknown H(· ) with Inline graphic; Schluchter (1992) uses a logarithmic H(· ) with an unknown Inline graphic. Under (9), the joint distribution Inline graphic is multivariate normal, implying that Inline graphic admits a BJM representation: Inline graphic follows a multivariate linear mixed model, and Inline graphic follows a linear transformation model for survival (Cheng et al. 1995).

In an SJM where the hazard of the terminal event is proportional to Inline graphic and Inline graphic (e.g., Liu and Huang 2008), Inline graphic follows a Cox proportional hazards model with time-independent covariates, implying that Inline graphic follows a standard extreme value distribution with CDF Inline graphic. Suppose this distribution is approximated by a finite mixture of K known normal distributions with mixing probabilities Inline graphic: specifically, Inline graphic, where Inline graphic and Inline graphic are independent. Then, Inline graphic still follows a linear transformation model, and Inline graphic each follows a multivariate linear mixed model. Marginalizing over Inline graphic, Inline graphic becomes a multivariate linear mixed model with non-Gaussian random effects and residuals. Despite this added complexity, the joint distribution Inline graphic retains a BJM structure.

When the hazard of the terminal event is non-proportional to Inline graphic and Inline graphic, the SJM may not be representable as a BJM. For instance, the survival sub-model in an SJM is a Cox model with hazard Inline graphic (e.g., Andrinopoulou et al. 2021), where Inline graphic denotes subject i’s true biomarker trajectory at time t and the observed data follow Inline graphic. However, Albert and Shih (2010) argued that the conditional distribution Inline graphic can be approximated by a normal distribution so that Inline graphic is modeled by a linear mixed model. In the framework of this section, the SJM has an approximate BJM representation. That argument was made when the longitudinal sub-model is a random intercept and slope model: Inline graphic, and the measurement times Inline graphic are on a discrete scale.

The SJM does not require a sub-model for the LTS, whereas the BJM sometimes does. This is because the SJM specifies a hazard model for Inline graphic in (6), leveraging the deterministic link between hazard and survival functions to simplify likelihood computation under censoring. However, the inclusion of random effects Inline graphic in the hazard leads to intractable numerical integration. In contrast, the BJM models the joint distribution of Inline graphic, Inline graphic, and Inline graphic directly, avoiding the hazard function. Its random effects capture individual biomarker trajectories and can often be integrated out analytically — though this may require an additional sub-model for the LTS to be valid.

Non-informative observational times and independent censoring

The proposed BJM shares two standard assumptions with most existing joint models: non-informative observation times and independent censoring (Sect. 1.2). To our knowledge, no dynamic prediction methods currently utilize informative observation times Inline graphic to improve prediction, though in principle, this could be addressed through a joint model of Inline graphic, Inline graphic, and Inline graphic given Inline graphic. Compared to standard joint models of longitudinal (Inline graphic) and survival (Inline graphic) data, this would require modeling longitudinal, survival, and recurrent event data (Inline graphic) jointly (Liu and Huang 2008).

Most published SJMs assume independent censoring (Wulfsohn and Tsiatis 1997; Tsiatis and Davidian 2004; Diggle et al. 2009). For example, in longitudinal cohort studies with informative censoring — the original motivation for SJMs (Albert 2018) — the informative censoring event plays the role of Inline graphic in the BJM, while the non-informative censoring event corresponds to Inline graphic (Schluchter 1992; Liu and Ying 2007). Diggle et al. (2009) suggested extending the SJM framework by introducing a third sub-model for the dependent-censoring process, leading to a three-component structure: Inline graphic (repeated-measurement sub-model), Inline graphic (hazard-of-death sub-model), and Inline graphic (hazard-of-censoring sub-model), and these components are conditionally independent given the shared random effects Inline graphic. Marginalizing over Inline graphic induces dependence among Inline graphic, Inline graphic, and Inline graphic given Inline graphic. With a similar idea but different context, Wu et al. (2023) studied a joint model that accommodates correlation among death, an informative censoring event, and a longitudinal variable by using a shared random effect in three sub-models. Despite its conceptual appeal, the hazard-of-censoring sub-model has seen limited adoption in both methodological and applied SJM literature. Notably, if Inline graphic and Inline graphic are dependent, the primary analysis of the longitudinal cohort study (e.g., comparing treatment effects on survival) becomes statistically unidentifiable using standard survival methods. Consequently, joint modeling, typically reserved for secondary analysis, cannot substitute for a valid primary analysis when independent censoring is violated.

The BJM can, in principle, be extended to relax the assumptions on non-informative observational times and independent censoring. For example, Wu et al. (2023) employed a reverse time scale (Remark 2.2), and this approach may be modified for use in the BJM problems. However, such developments are beyond the scope of this paper and are left for future development of the BJM.

The extension to competing risk

We now address the fourth statistical challenge in Sect. 1.1, the BJM for competing risk outcomes (crBJM). The notation, model formulation and estimation procedure for the competing risk context are similar to the non-competing risk case and include the latter as a special case. Since Sects. 1 and 2 already covered much content for the non-competing risk case, this section will focus only on the differences.

Suppose that the terminal event can be one of J event types, denoted by Inline graphic. J=1 corresponds to the non-competing risk setting. In our motivating data application, J=2, and the terminal event is either ESRD (j=1) or death (j=2). The notations for the true and observed terminal event times, censoring time and indicator are the same. The observed event type is Inline graphic, where Inline graphic is the censoring indicator defined in Sect. 1.2.

The dynamic prediction formula (1) can be modified for predicting the probability of having the terminal event of type j in the next Δ years (or other time unit), given the subject is at-risk by time s and the observed history,

graphic file with name d33e1611.gif 10

The dynamic prediction for future longitudinal data remains the same as (3) because the longitudinal data exist as long as the terminal event does not occur, regardless of the event type.

Analogous to (4), the likelihood factorization of the crBJM is

graphic file with name d33e1625.gif 11

The crBJM comprises of a sub-model for Inline graphic and sub-models for Inline graphic. Since the denominators of both estimands (10) and (3) involve only Inline graphic (t ⩾ s), and not the event type (Inline graphic), the same derivation as in Sect. 2.1 applies and justifies the use of an extrapolation-based longitudinal sub-model (crBJM-EX) or a two-part sub-model (crBJM-TP). The model formulation is similar between crBJM-EX and the longitudinal sub-model for the non-LTS subjects in crBJM-TP. For the LTS, a separate longitudinal sub-model is needed and that model does not involve the event type and event time. See the discussion surrounding equation (7).

The sub-model for the competing risk outcomes

Any competing risk regression model with time-invariant covariates can be used to fit Inline graphic and estimate Inline graphic in (11). Common choices include the cause-specific hazard models, the Fine-Gray sub-distribution hazard model, or the vertical modeling (Nicolaie et al. 2010), among others. We used vertical modeling in the numerical studies because it directly models Inline graphic, which is convenient for predicting longitudinal data in (3). We compared the crBJMs with vertical modeling and with cause-specific hazard models, and the predictive performances were similar in our data application.

The likelihood of a vertical model for Inline graphic is factorized as the likelihood product of Inline graphic and Inline graphic. The former can be formulated as a semi-parametric Cox model, a parametric Weibull model, or any other survival regression model that fits the data well. The latter is a multinomial regression model according to Nicolaie et al. (2010). Specifically, Inline graphic. The Inline graphic is a vector of pre-specified regression spline basis to accommodate the nonlinear effect of Inline graphic on the event types. When J=2, this is a logistic regression with partially linear specification for the covariates Inline graphic and Inline graphic. The likelihood-based estimation of vertical modeling follows (Nicolaie et al. 2010) and is omitted here.

The competing risks component is fully embedded in the overall likelihood through the factorization in equation (11). Here, the term Inline graphic corresponds to the competing risks sub-model, which is estimated separately. Dynamic prediction is then obtained by conditioning on this overall likelihood, ensuring that the likelihood contribution from the competing risks model is fully incorporated.

The sub-model for longitudinal data given competing risk outcomes

For the crBJM-EX, Inline graphic is estimated by a multivariate linear mixed model, with Inline graphic, Inline graphic, Inline graphic, Inline graphic and their interactions as fixed-effect covariates and with random effects (e.g., intercept and slope) to account for the longitudinal correlation and the correlation among different biomarkers. The sub-model of the m-th longitudinal biomarker (m=1, 2,..., M) can be formulated in the following general form:

graphic file with name d33e1772.gif 12

Inline graphic is subject i’s m-th biomarker, measured at time t. In the training data, Inline graphic. The first term describes the conditional mean trajectory (CMT) given the time-invariant variables Inline graphic, Inline graphic and Inline graphic. The pre-specified transformation ϕ (.), e.g. łog , may be used to reduce the skewness of the time variable Inline graphic. The conditioning on Inline graphic renders the CMT an interpretation as the mean trajectory among subjects with the same trajectory lengths. It does not lead to proper interpretation to average the longitudinal biomarker trajectories of different lengths when the follow-up duration is correlated with longitudinal data, a defining feature of joint modeling problems that is sometimes called informative dropout. The Inline graphic are basis functions that characterize the longitudinal shape of the CMT, with Inline graphic being the regression coefficient of the basis, expressed in a varying-coefficient model form as a function of Inline graphic, Inline graphic and Inline graphic.

The second term includes random effects that describe the subject-specific, mean-zero deviation from the CMT. The random intercept (Inline graphic), random intercept plus slope (Inline graphic), or other nonlinear random effect terms can be used. The random effects from all M biomarkers Inline graphic follows a multivariate normal distribution with mean zero and covariance matrix Inline graphic. When model (12) has random intercept and slope, Inline graphic is a 2M × 2M matrix that is not restricted to be block diagonal, allowing the biomarkers to be correlated. We can impose further assumptions on this correlation matrix to reduce the number of unknown parameters in the model. The residuals Inline graphic are independent noises with mean zero and variance Inline graphic. Extensions to residuals with auto-correlation are straightforward.

The crBJM-TP has an extra longitudinal sub-model for the LTS:

graphic file with name d33e1887.gif 13

The superscript e symbolizes quantities in the “extra” LTS model. The model formulation and interpretation are similar to (12) but with a few differences. First, model (13) does not involve Inline graphic and Inline graphic in the covariates because the LTS includes all subjects who survive beyond Inline graphic regardless of their actual Inline graphic and Inline graphic. Second, since the LTS is a heterogeneous group, models (13) and (12) cannot have the same random effect variance or residual variance. Presumably, the variances are larger in model (13). The sub-model for the non-LTS does not inform the sub-model for LTS, which justifies the latter to have independent parameters of its own. See equation (7) and discussions therein.

Model (12) is mathematically defined for subjects with Inline graphic. Under the extrapolation specification (crBJM-EX), Inline graphic is effectively infinite because the model extrapolates beyond the observed support; therefore Model (12) applies to all subjects. In contrast, under the two-part specification (crBJM-TP), Inline graphic is finite, and Model (12) applies only to subjects with Inline graphic, while subjects with Inline graphic are modeled through Model (13).

In our real-data application, Inline graphic is set to the administrative end of follow-up (12 years), and no longitudinal measurements are observed beyond this time. Consequently, the two-part crBJM uses a separate longitudinal sub-model for subjects who survive past Inline graphic. In general, for prospective studies with a fixed operational period, Inline graphic corresponds to the maximum possible follow-up determined by the study calendar; similarly, for retrospective EHR-based studies, Inline graphic is determined by the data extraction window length.

Remark 3.1

(Interpretation). The parameters in the longitudinal sub-model of a BJM characterize how the shape of longitudinal trajectories varies across subjects in different survival strata. For example, consider model (12) with a linear CMT: L=1, Inline graphic, and Inline graphic. The coefficients Inline graphic for l=0,1 represent the mean intercept and slope for subjects sharing the same Inline graphic, Inline graphic, and Inline graphic. Suppose they are modeled as:

graphic file with name d33e2021.gif

These expressions describe how the average trajectory changes with covariates, event time, and event type. For instance, Inline graphic captures a vertical shift in mean trajectories between event types for subjects with a fixed Inline graphic, while a non-zero Inline graphic indicates that the amount of shift depends on Inline graphic. Similar interpretations of BJM parameters have been used in other applications, such as modeling medical costs or terminal decline in quality of life (see Sect. 2.3).

Remark 3.2

(Extrapolation error). When both the longitudinal sub-model and survival sub-model are parametric, there is no extra extrapolation step in BJM-EX. When the survival sub-model is semi-parametric, such as a Cox model, the tail distribution of Inline graphic is unidentified. In such a situation, any reasonable extension of the estimated part of the survival distribution can be used. We have used a linear extension of the log baseline hazard, which is equivalent to appending an exponential distribution at the tail.

Remark 3.3

(Semi-competing risk vs. competing risk). This paper focuses on competing risks, characterized by the time to the composite event (Inline graphic) and the event type (Inline graphic). Semi-competing risks, where one event precludes observation of the other but not vice versa, require different methods and are beyond the scope of this paper (Peng and Fine 2007). In our motivating application, the outcomes are death and ESRD. Although death can occur after ESRD, ESRD is typically treated as a terminal event in CKD studies, as disease management and patient health status have fundamental changes after its onset (Sect. 1.1).

Model training and prediction accuracy

The crBJM can be estimated from the training data in two steps. In the first step, we fit the competing risk regression model (Sect. 3.1). Many standard software packages are available. In the second step, we estimate the longitudinal sub-models in Sect. 3.2, and this is the focus of this section.

We propose two approaches. Section 4.1 presents a simple method that can be conveniently implemented with standard linear mixed model software. This method only uses training data subjects whose terminal event times are observed and those still at-risk by Inline graphic. Since the censored data are not used, this approach is referred to as complete-case analysis (CCA). A remarkably useful feature of the crBJM is that the CCA produces consistent estimation, albeit less efficient. The CCA of crBJM enables quick and convenient exploratory analysis, model building, model assumption diagnosis, and preliminary assessment of prediction accuracy. Once the model specification is finalized, we can use the fully likelihood-based analysis in Sect. 4.2 to obtain efficient estimators as the final results. Using the CCA estimator as the initial values is helpful for the iterative likelihood optimization. Since these initial values are already consistent, the iterations often converge quickly.

Complete-case analysis (CCA)

To see why the parameters of longitudinal sub-model can be consistently estimated with the complete cases in the training data (i.e., Inline graphic), we observe that, for any j=1,2,...,J, Inline graphic. The simple derivation is justified by the independent censoring (Sect. 2.5). It holds at any Inline graphic for the crBJM-EX, and any Inline graphic for the crBJM-TP. Inline graphic can be estimated via a multivariate linear mixed model according to the specification in (12). Additionally, since Inline graphic in the crBJM-TP, we can estimate the multivariate linear mixed model (13) from the subset of training data with Inline graphic. Consistent estimation of CCA has been demonstrated in other published models with a similar likelihood factorization (Li et al. 2018; Wang et al. 2020; Shen and Li 2021; Wang et al. 2023).

EM algorithm

This section describes the EM algorithm for the longitudinal sub-model estimation. Since it uses both censored and non-censored data, the estimation is more efficient than the CCA (Li et al. 2018; Wang et al. 2020; Shen and Li 2021). The censored Inline graphic and Inline graphic are treated as missing data in the complete data log-likelihood. Since the competing risk sub-model are estimated consistently in a prior step, the method is pseudo maximum likelihood estimation (Gong and Samaniego 1981).

Let Inline graphic denote the parameters of the longitudinal sub-model. With crBJM-TP, Inline graphic includes additionally the parameters Inline graphic from the LTS sub-model (13). The estimated parameters from the survival sub-model are denoted by Inline graphic. Since Inline graphic is fixed throughout the EM iterations, we omit it for the formula below. In the following, we mainly describe the EM algorithm of the crBJM-EX, but will point out the changes needed when the crBJM-TP is used. The complete data log-likelihood is Inline graphic. The observed data of all subjects in the training dataset is collected in Inline graphic. The EM algorithm uses the consistent estimators from the CCA as the initial values in the first EM iteration. At the beginning of the q-th iteration (q=1,2,...), the estimated parameter is denoted by Inline graphic.

In the E-step of the q-th iteration, we calculate the conditional expectation of the complete data log-likelihood as in (14). This expectation is taken over the conditional distribution of the missing data (censored Inline graphic and Inline graphic) given the observed data, with parameters in this distribution set at Inline graphic.

graphic file with name d33e2244.gif 14

There is always a one-dimensional integral in (14), regardless of how many longitudinal biomarker variables are involved. This integral is needed only for censored subjects. The integration in (14) goes from Inline graphic to ∞ . With crBJM-TP, this calculation is split into two parts, analogously to (5). The first integrates from Inline graphic to Inline graphic using model (12) and the second uses the LTS model (13).

The integral in (14) can be calculated with the trapezoidal rule. If Inline graphic is a censoring time, we assume that Inline graphic falls in one of a series of pre-specified connected intervals, denoted by Inline graphic. The intervals are connected (e.g., Inline graphic) and starts from Inline graphic (Inline graphic). With crBJM-EX, we can set the ending time of the last interval at a very large survival time (e.g., 100 year old). With crBJM-TP, the last interval is Inline graphic and the LTS model is used on this interval. A moderate Inline graphic can produce accurate results when the residual survival beyond Inline graphic is not very large or when the integrand is not excessively wiggly (Li et al. 2018). The target function (14) of crBJM-EX then becomes:

graphic file with name d33e2330.gif 15

With crBJM-TP, the target function is the same except that the terms corresponding to the last interval (Inline graphic) are replaced by Inline graphic.

In the M-step, (15) is maximized with respect to Inline graphic, producing an updated estimator Inline graphic that will enter the next ((q+1)-th) iteration. The only terms containing the unknown parameters are Inline graphic. These are log of multivariate normal density functions, which are quadratic forms of the regression coefficients in the longitudinal sub-models. Inline graphic is calculated in the E-step and treated as fixed in the maximization of the M-step. Therefore, the regression coefficients have closed-form solutions (the variance-covariance matrices of the random effects do not; see below). This feature, in conjunction with using the consistent estimators from the CCA as the initial value of the EM algorithm, speeds up the computation considerably and improves the robustness of the iterations.

Remark 4.1

(Number of parameters with multivariate longitudinal data). The number of regression coefficients in the crBJM increases linearly with M, the number of longitudinal biomarkers. However, the number of parameters in the variance-covariance matrix of the random effects goes up quadratically with M. This poses a challenge not just for BJM, but also for any joint models that aim to estimate the multivariate distribution of the longitudinal data (Hashemi et al. 2025). The consistent estimation by the CCA suggests a solution to avoid this computational burden: during the EM algorithm, we fix the variance-covariance matrix of the random effects and residuals at their CCA estimators. This solution is justified by the pseudo maximum likelihood estimation (Gong and Samaniego 1981). Another solution to this problem is to use a pairwise approach (Fieuws and Verbeke 2006; Albert and Shih 2010), i.e., fitting the BJM with two longitudinal biomarkers at a time, and estimating the multiple pairwise longitudinal sub-models in parallel computing. These two solutions are feasible due to the specific modeling structure of the BJM and are not easily implementable in other joint models.

Variance estimation

We use the bootstrap to estimate variances. Specifically, we repeatedly sample subjects with replacement from the training dataset to create bootstrap samples. Each sample is analyzed using the crBJM procedure to obtain point estimates of the model parameters. This process is repeated 200 times, and the variance of each parameter is estimated as the sample variance of its 200 bootstrap estimates.

For a new subject in the validation dataset, predictions from (1) or (3) depend on the estimated crBJM parameters and the subject’s data prior to the prediction time. The variance of the prediction can be approximated using the Delta method to account for the variability in the estimated parameters, which reflects the sampling variability of the training data. Alternatively, predictions can be computed using each of the 200 bootstrap estimates, and their sample variance used to quantify prediction uncertainty. However, we note that in practice, prediction variance due to sampling variability in the training data is rarely reported. Users of published prediction models typically apply only the point estimates of model parameters, without accounting for the sampling variability of these estimates from the training data.

Prediction accuracy measures

We follow the previous literature in choosing the prediction accuracy measures. For predicting competing risk outcomes, we use the time-dependent Brier score (BS) and the time-dependent AUC (Definition A in Wu and Li (2018)), both designed for competing risk data and available in R package tdROC. For predicting the future longitudinal biomarkers, we use RMSE (root mean squared error). Since our data application is CKD research, we also use two commonly used measures in that field for predicting GFR, the P30 and P50 (Levey et al. 1999). They are the proportions of subjects for whom the predicted GFR falls within 30% or 50% of the observed GFR at the horizon. Higher AUC, lower BS, lower RMSE, higher P30 and P50 suggest better predictive accuracy. In the validation dataset, the GFR measurements may be irregularly spaced; when there is no GFR data at the horizon, the closest measurement prior to the horizon is used.

Data application

We illustrate the proposed methodology by analyzing data from the African American Study of Kidney Disease and Hypertension (AASK). AASK is a longitudinal cohort study of 1,094 CKD subjects for up to 12 years. Detailed descriptions of AASK data were reported previously (Li et al. 2016; Wu et al. 2020). By the end of the follow-up, 318 subjects (29%) reached ESRD and 176 subjects (16%) died before reaching ESRD. We used two baseline predictors, age and gender, and three longitudinally measured predictive biomarkers: the estimated glomerular filtration rate (eGFR) using the MDRD equation (Levey et al. 1999), 24-hour urine protein to creatinine ratio (UPCr), and serum albumin. These biomarkers have known clinical relationships with the survival outcomes.

Figure 1 displays the Kaplan-Meier curve of the composite endpoint of ESRD or death, whichever occurs first, and the cumulative incidence functions of ESRD and death separately. The distribution of the composite event in this population can be estimated up to 12 years, with more than 40% of the events expected beyond that time. This supported the use of crBJM-TP. For comparison purposes, we also presented results from crBJM-EX. We set Inline graphic years, the maximum observed event time in the data. We experimented with both vertical modeling and cause-specific hazard modeling as the survival sub-model, and they produced similar prediction accuracy. The reported results here came from crBJM with vertical modeling. Figure 2 displays the CMTs of eGFR, which are approximately linear and suggest a clear association with the time of the composite endpoint and event types, with an interaction between the two.

Fig. 1.

Fig. 1

The Kaplan-Meier survival curve of the composite event of ESRD and death in the AASK study on the left and the cumulative incidence functions of ESRD (red) and death (black) on the right

Fig. 2.

Fig. 2

The conditional mean trajectory (CMT) of eGFR at 4 selected composite event times in the AASK study. In each plot, we aggregated the longitudinal biomarker data from all subjects who had ESRD (red) or death (black) in that year. The dots show the mean biomarker by month, averaged across all subjects who had a measurement at that month. When the measurement times are non-informative, these biomarker means are unbiased estimators of the CMT at each month. A linear model is fitted to the monthly mean biomarker data for those with ESRD and death separately, with pointwise confidence intervals shown as gray bands

Including more predictive longitudinal biomarkers improves the prediction accuracy. To illustrate the benefit of using more longitudinal predictors, we considered crBJMs with one (crBJM-1, with eGFR), two (crBJM-2, with eGFR and UPCr), or three (crBJM-3, with eGFR, UPCr, and albumin) longitudinal biomarkers. With crBJM-3, the extrapolation model (EX) has 48 parameters and the two-part model (TP) has 72 parameters. The crBJM remains computationally convenient in this situation. Our EM algorithm achieved 100% convergence rates in these analyses. Since this paper is mainly about prediction, we focus on prediction results here, and defer the extensive details on model specification, parameter estimation and interpretation, and sensitivity analysis to the Online Appendix.

We used five-fold cross-validation to evaluate the prediction accuracy at a horizon of 3 years (Table 1). Additional results under 1-year horizon are reported in the Online Appendix. As for the prediction of ESRD and death, Table 1 shows that crBJMs with more longitudinal biomarkers generally performed better than those with less, with crBJM-3-TP performing similarly to or better than all other methods in both AUC and BS. The TP methods generally performed better than the EX methods, likely because it is less prone to model misspecification when the tail distribution of the composite event cannot be estimated. The performance of crBJM-3-EX rose on par with their counterpart TP model (crBJM-3-TP), while crBJM-2-EX and crBJM-1-EX did not. The performance of EX models is more difficult to evaluate, probably because the accuracy of the extrapolation is unknown and cannot be verified from data. Nonetheless, crBJM-3-EX achieved similar predictive accuracy for ESRD and death as crBJM-3-TP did but with fewer parameters, making it an empirically useful model for prediction purposes. In predicting the eGFR, TP methods substantially outperformed EX methods. The BS appears to be more sensitive to between-method differences than the AUC, possibly because the latter is rank-based. The incidence of ESRD can be predicted with very high AUC because the treatment decision of dialysis or renal transplantation is strongly influenced by the patient’s eGFR.

Table 1.

Prediction accuracy results of crBJM and SJM in the AASK data analysis

Accuracy Type Model Year1 Year2 Year3 Year4
AUC ESRD crBJM-3-TP 0.9068 0.9378 0.9267 0.9008
AUC ESRD crBJM-2-TP 0.9068 0.9358 0.9259 0.8987
AUC ESRD crBJM-1-TP 0.8727 0.9135 0.9322 0.9135
AUC ESRD crBJM-3-EX 0.9057 0.9398 0.9342 0.9182
AUC ESRD crBJM-2-EX 0.9096 0.9492 0.9527 0.9587
AUC ESRD crBJM-1-EX 0.8796 0.9314 0.9358 0.9277
AUC ESRD SJM-3 0.8941 0.8945 0.9506 0.9449
AUC Death crBJM-3-TP 0.7354 0.6430 0.6736 0.6725
AUC Death crBJM-2-TP 0.7083 0.6099 0.6569 0.6620
AUC Death crBJM-1-TP 0.6586 0.6387 0.6162 0.5888
AUC Death crBJM-3-EX 0.5999 0.6554 0.6403 0.6295
AUC Death crBJM-2-EX 0.5873 0.6114 0.6098 0.6163
AUC Death crBJM-1-EX 0.6242 0.6497 0.6605 0.6566
AUC Death SJM-3 0.6709 0.6316 0.6243 0.6874
BS ESRD crBJM-3-TP 0.0672 0.0585 0.0677 0.0714
BS ESRD crBJM-2-TP 0.0659 0.0586 0.0677 0.0710
BS ESRD crBJM-1-TP 0.0776 0.0690 0.0652 0.0672
BS ESRD crBJM-3-EX 0.0686 0.0582 0.0673 0.0693
BS ESRD crBJM-2-EX 0.0677 0.0640 0.0739 0.0809
BS ESRD crBJM-1-EX 0.0809 0.0786 0.0812 0.0921
BS ESRD SJM-3 0.1177 0.1151 0.1078 0.0718
BS Death crBJM-3-TP 0.0422 0.0512 0.0642 0.0748
BS Death crBJM-2-TP 0.0425 0.0514 0.0646 0.0741
BS Death crBJM-1-TP 0.0422 0.0486 0.0588 0.0674
BS Death crBJM-3-EX 0.0442 0.0504 0.0614 0.0710
BS Death crBJM-2-EX 0.0550 0.0699 0.0878 0.1020
BS Death crBJM-1-EX 0.0547 0.0694 0.0868 0.1009
BS Death SJM-3 0.0867 0.1081 0.1279 0.1306
RMSE eGFR crBJM-3-TP 8.1559 8.7276 8.4907 8.2903
RMSE eGFR crBJM-3-EX 10.6981 10.6853 9.5622 8.4871
RMSE eGFR SJM-3 8.8914 8.9091 8.0943 6.8213
P30 eGFR crBJM-3-TP 0.9156 0.9241 0.9469 0.9308
P30 eGFR crBJM-3-EX 0.7891 0.8254 0.8607 0.9000
P30 eGFR SJM-3 0.9213 0.9195 0.9110 0.9466
P50 eGFR crBJM-3-TP 0.9600 0.9709 0.9812 0.9853
P50 eGFR crBJM-3-EX 0.9553 0.9520 0.9614 0.9742
P50 eGFR SJM-3 0.9683 0.9831 0.9874 0.9871
# at-risk patients in AASK data 1065 1005 955 875

The prediction accuracy was evaluated among at-risk subjects at Year 1-4 after baseline. The prediction horizon is 3 years. SJM shared random effects joint model

For comparison purposes, we fitted the SJM using the JMBayes2 package in R. The model included all three longitudinal biomarkers (i.e., denoted by SJM-3 in Table 1), whose trajectories were modeled by linear mixed models with subject-specific random intercepts and random slopes, and these random effects were shared with the cause-specific hazard models as covariates. The crBJMs outperformed the SJM in predicting ESRD and death. The results of eGFR prediction are mixed. However, it appears that the previous literature on SJM does not account for the absence of the composite event when predicting eGFR, which complicates the interpretation of this comparison. The crBJM is computationally much faster than the SJM. To complete the five-fold cross-validation on a personal computer with a 2.9 GHz CPU and 32 GB RAM, SJM-3 took 3 h, whereas crBJM-3-TP with EM algorithm took 13 min. The CCA of crBJM can be implemented with standard statistical software and the computing time is almost negligible. The computing time will multiply if the bootstrap is used for variance estimation. However, the bootstrap can be easily parallelized in a computer cluster, substantially reducing the computing time. Additionally, variance estimation is not essential in prediction problems (Sect. 4.3).

Figure 3 depicts individual dynamic predictions of ESRD and death for two AASK patients. The patient on the left (A) had stable eGFR before year 3 but went into a steady decline from year 3 to year 8. The UPCr also increased over time, indicating increasing kidney damage. The predicted future probability of ESRD increases sharply in response. This patient eventually reached ESRD. The patient on the right had stable biomarkers and the predicted ESRD risk is low. The mortality risk, however, increases over time, presumably due to both aging and low ESRD risk (a competing risk phenomenon). Figure 4 illustrates two useful graphical presentations of the joint prediction of competing risk and longitudinal outcomes. The first uses the quantile curves to visualize how the predicted eGFR distribution conditional on absence of ESRD or death varies over time, in addition to the predicted cumulative incidence functions of ESRD and death. This patient’s eGFR was within a stable range between the two prediction times, and the predicted ESRD was similar as a result. However, we can observe a subtle decrease in the predicted eGFR in the second prediction, perhaps due to the lower observed eGFR just prior to the prediction and increased UPCr. The cumulative incidence of death increases due to time elapsing and aging. The second graphical presentation is clinically more interpretable (Hu et al. 2012), where the future probabilities of being in each CKD stage and death are visualized. From year 2 to year 4, the eGFR stabilized around 30, which triggered the model to lower the probability of ESRD but enlarge the probability area corresponding to CKD stage 4 (eGFR between 15 and 29). The probability of death increased slightly due to time elapsing and aging.

Fig. 3.

Fig. 3

Illustrating the dynamic prediction of ESRD and death with two AASK patients (patient A on the left and patient B on the right). The horizontal axis is the year since baseline. The longitudinal measurements of eGFR (green dots; connected by segments to form a continuous trajectory curve) are drawn to the vertical axis on the left; the longitudinal measurements of UPCr (blue dots and curve) and albumin (orange dots and curve) are drawn to the vertical axis on the right. The six horizontal dotted lines in the background mark the probability of 0, 0.2, 0.4, 0.6, 0.8, and 1.0, from bottom to the top. The predicted probabilities of ESRD (red dots; connected by linear segments to form a continuous curve) and death (black dots and curve) within a horizon of 3 years can be read from their positions among these six lines. The vertical red line marks the ESRD time of patient A; the vertical black line marks the death time of patient B. This dynamic prediction plot visualizes how the personalized, real-time risks of ESRD and death vary with the three longitudinal biomarkers. The prediction also incorporated baseline predictors

Fig. 4.

Fig. 4

Illustrating the joint prediction of the future ESRD, death and eGFR distributions in two graphical presentations. The top plots show the prediction of AASK patient A at two prediction times (vertical brown line), based on the accumulating biomarker history to the left. The bottom plots show patient B. These are the same two patients in Fig. 3 and the plotting symbols are similar. The horizon is 3 years. With patient A, we plotted the predicted probabilities at 8 equally spaced future time points (t = 0, 0.5, 1.0,..., 3.0). At each time, we calculated the density function of eGFR and its 9 quantiles (10%,..., 90%). These quantiles are plotted to the vertical axis on the left. For better visualization, we colored the areas between adjacent quantile curves into 8 green shaded areas. The thick green curve in the middle indicates the predicted mode of eGFR. With patient B, we plotted the multistate representation of all predicted outcomes (Hu et al. 2012). The probabilities of death, ESRD and CKD stages (defined by eGFR; see Section 1) were calculated up to the horizon. These probabilities were drawn to the dotted horizontal lines in the background, and they sum up to 1 at each time point

We performed sensitivity analyses to study whether the prediction accuracy is affected by the specifications for random effects in (12), random intercept only or both random intercept and slope, and the choices of ϕ (.) in that model, Inline graphic or ϕ (t)=t. The random slope adds flexibility to the individual-level longitudinal trajectories within each survival stratum (i.e., given Inline graphic) but also adds more parameters to the variance matrix for the random effects. A log transformation may fit the data better when Inline graphic is skewed. Table S4 of the Online Appendix shows that the prediction accuracy is not sensitive to these alternative formulations. We speculate that the survival time in the AASK data is not very skewed. For this reason, we used the simpler model with random intercept and without log transformation.

Simulation

We conducted simulations to study the finite sample performance of the proposed estimation procedure for both TP and EX models, and to compare the relative efficiency of CCA vs. EM algorithm. The CCA and EM methods both produce consistent estimation, but CCA is easier to use, making it worthwhile to assess its cost on efficiency. Since the crBJM-EX and crBJM-TP have different model specifications, we conducted separate simulation studies for them. In each study, we simulated 300 independent Monte Carlo datasets of n = 300 or 1, 000 subjects, analyzed each dataset, and calculated the bias and the relative efficiency. We simulated one baseline covariate and three longitudinal biomarkers. The longitudinal sub-models had a linear CMT and a random intercept. The competing risk model is a vertical model with a Weibull regression for the time to composite event. The censoring rate is 40% in the crBJM-EX data. For crBJM-TP, the overall censoring rate is 40% and 20% subjects were censored at Inline graphic.

All EM algorithms converged under the criterion that all longitudinal sub-model parameters differed by no more than Inline graphic in consecutive iterations. Further details of the data-generating schemes are in the Online Appendix. Figure 5 shows that the finite-sample biases of the EM estimators are generally small and drop to nearly zero when the sample size increases from 300 to 1, 000, supporting consistent estimation. The EM algorithm exhibits notable efficiency improvements over the CCA, especially in the LTS sub-model parameters, likely because the CCA only utilizes subjects at risk by Inline graphic to estimate the LTS, which can result in a small sample size.

Fig. 5.

Fig. 5

Bias and efficiency of the crBJM estimation in simulations (left: crBJM-3-EX; right: crBJM-3-TP). The horizontal axis is the index of parameters, grouped by their roles in the model. For better visualization, we used different background colors for different groups of parameters. For the EX model, the parameter groups from left to the right are longitudinal sub-models for biomarkers 1-3, survival sub-model, and variance-covariance matrix. For the TP model, the parameter groups from left to the right are longitudinal sub-models for biomarkers 1-3, longitudinal LTS sub-models for biomarkers 1-3, survival sub-model, and variance-covariance matrix. The number of parameters in each parameter group can be read from the horizontal axis. The 4 curves demonstrate the percent bias (drawn to the vertical axis on the left) and relative efficiency (drawn to the vertical axis on the right) of each estimated parameter from the EM algorithm, under the sample size of n=300 or n=1,000. The relative efficiency is measured by the ratio of the empirical standard deviations of the point estimators from the EM and CCA. Values less than 1 indicate that EM is more efficient than CCA; smaller values indicate more efficiency improvement

Discussion

This paper extends the BJM methodology originally proposed by Shen and Li (2021) for dynamic prediction, with several novel developments. These include joint prediction of survival and longitudinal outcomes, models for competing risks, two formulations of the BJM (extrapolation and two-part), links to other joint modeling frameworks, and a theoretical comparison between static and dynamic prediction. To provide a comprehensive overview, we begin with the core modeling concepts — emphasizing likelihood factorization, model assumptions, and related literature — before addressing extensions for competing risks and estimation strategies. R code implementing the BJM is available at (URL removed for blinding).

Of the two dynamic prediction approaches (Sect. 1.2), joint modeling offers several advantages over landmark modeling, including efficient likelihood-based estimation and natural incorporation of longitudinal history. Landmark modeling, however, is easier to implement using standard software and can handle a large number of predictors with manageable computation (Ferrer et al. 2019; Li et al. 2023). The proposed BJM reduces computational burden and implementation complexity to a level comparable to landmark modeling. Moreover, to our knowledge, no landmark approach can perform joint dynamic prediction of longitudinal and survival outcomes as defined in Sect. 1.2.

Recent developments in dynamic prediction using joint modeling have trended toward incorporating a growing number of longitudinal predictors. However, the well-known computational challenge of the SJM poses a significant barrier (Rizopoulos 2012; Elashoff et al. 2016). Some studies address this by “brute-force” with advanced computation techniques (Rizopoulos et al. 2024; Mauff et al. 2020; Rustand et al. 2023; Lavalley etal 2023). Noting from (1) and (3) that any well-specified joint model for the longitudinal and survival data can support dynamic prediction, we sought an alternative route to overcome this challenge with novel model formulation, which led to the development of the BJM.

The joint dynamic prediction formulas (1) and (3), as well as the likelihood factorization (4), are mathematical identities. Thus, optimal prediction accuracy is expected when each sub-model in the factorization is “correctly” specified. In practice, this requires that the sub-models closely approximate the data while guarding against under- and overfitting. A current limitation of this paper is the use of parametric longitudinal sub-models. However, model checking is straightforward within the BJM framework using consistent CCA-based estimation. Future work is needed to incorporate nonparametric specifications, enhancing modeling flexibility and mitigating model misspecification. However, the basic modeling framework outlined in this paper remains the same.

The BJM framework can also be extended to handle a mixture of continuous and categorical longitudinal variables by replacing the multivariate linear mixed model with a multivariate generalized linear mixed model (GLMM). However, since the GLMM usually has intractable integrals in its likelihood, the resulting BJM loses the advantage of having only one-dimensional numerical integration. This challenge is addressed in a separate paper (citation removed for blinding).

Supplementary Information

Below is the link to the electronic supplementary material.

Funding

This research is supported in part by NIH grants P30CA016672 and R01DK118079.

Declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  1. Albert PS (2018) Shared random parameter models: a legacy of the biostatistics program at the national heart, lung, and blood institute. Stat Med 38(4):501–511 [DOI] [PubMed] [Google Scholar]
  2. Albert PS, Shih JH (2010) An approach for jointly modeling multivariate longitudinal measurements and discrete time-to-event data. Ann Appl Stat. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Andrinopoulou ER, Harhay MO, Ratcliffe SJ, Rizopoulos D (2021) Reflection on modern methods: dynamic prediction using joint models of longitudinal and time-to-event data. Int J Epidemiol 50(5):1731–1743 [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Appel LJ, Grams M, Woodward M, Harris K, Arima H, Chalmers J, Yatsuya H, Tamakoshi K, Li Y, Coresh J et al (2023) Estimated glomerular filtration rate, albuminuria, and adverse outcomes: an individual-participant data meta-analysis. J Am Med Assoc 330(13):1266–1277 [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Cheng SC, Wei LJ, Ying Z (1995) Analysis of transformation models with censored data. Biometrika 82(4):835–845 [Google Scholar]
  6. Dempsey W, McCullagh P (2018) Survival models and health sequences. Lifetime Data Anal 24:550–584 [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Diggle P, Henderson R, Philipson P (2009) Random-effects models for joint analysis of repeated-measurement and time-to-event outcomes. Handbooks of modern statistical methods longitudinal data analysis. Chapman and Hall/CRC, Boca Raton, pp 349–366 [Google Scholar]
  8. Elashoff R, Li G, Li N (2016) Joint modeling of longitudinal and time-to-event data. Chapman and Hall/CRC, Boca Raton, FL [Google Scholar]
  9. Ferrer L, Putter H, Proust-Lima C (2019) Individual dynamic predictions using landmarking and joint modelling: validation of estimators and robustness assessment. Stat Methods Med Res 28(12):3649–3666 [DOI] [PubMed] [Google Scholar]
  10. Fieuws S, Verbeke G (2006) Pairwise fitting of mixed models for the joint modeling of multivariate longitudinal profiles. Biometrics 62(2):424–431 [DOI] [PubMed] [Google Scholar]
  11. Fitzmaurice G, Davidian M, Verbeke G, Molenberghs G (2009) Handbooks of modern statistical methods: longitudinal data analysis. Chapman and Hall/CRC, Boca Raton, FL [Google Scholar]
  12. Gong G, Samaniego FJ (1981) Pseudo maximum likelihood estimation: theory and applications. Ann Stat 9(4):861–869 [Google Scholar]
  13. Hashemi R, Baghfalaki T, Philipps V, Jacqmin-Gadda H (2025) Dynamic prediction of an event using multiple longitudinal markers: a model averaging approach. Stat Med. 10.1002/sim.70122 [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Hogan JW, Lin X, Herman B (2004) Mixtures of varying coefficient models for longitudinal data with discrete or continuous nonignorable dropout. Biometrics 60(4):854–864 [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Hu B, Li L, Wang X, Greene T (2012) Nonparametric multistate representations of survival and longitudinal data with measurement error. Stat Med 31(21):2303–2317 [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Kong S, Nan B, Kalbfleisch JD, Saran R, Hirth R (2017) Conditional modeling of longitudinal data with terminal event. J Am Stat Assoc 113(521):357–368 [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Kurland BF, Johnson LL, Egleston BL, Diehr PH (2009) Longitudinal data with follow-up truncated by death: match the analysis method to research aims. Stat Sci 24(2):211–222 [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Lavalley-Morelle A, Peiffer-Smadja N, Gressens SB, Souhail B, Lahens A, Bounhiol A, Lescure FX, Mentré F, Mullaert J (2023) Multivariate joint model under competing risks to predict death of hospitalized patients for SARS-CoV-2 infection. Biom J 66(1):2300049 [DOI] [PubMed] [Google Scholar]
  19. Levey AS, Bosch JP, Lewis JB, Greene T, Rogers N, Roth D (1999) A more accurate method to estimate glomerular filtration rate from serum creatinine: a new prediction equation. Ann Intern Med 130(6):461–470 [DOI] [PubMed] [Google Scholar]
  20. Li Z, Tosteson TD, Bakitas MA (2012) Joint modeling quality of life and survival using a terminal decline model in palliative care studies. Stat Med 32(8):1394–1406 [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Li L, Luo S, Hu B, Greene T (2016) Dynamic prediction of renal failure using longitudinal biomarkers in a cohort study of chronic kidney disease. Stat Biosci 9(2):357–378 [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Li Z, Frost H, Tosteson TD, Zhao L, Liu L, Lyons K, Chen H, Cole B, Currow D, Bakitas M (2017) A semiparametric joint model for terminal trend of quality of life and survival in palliative care research. Stat Med 36(29):4692–4704 [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Li L, Wu CH, Ning J, Huang X, Shih YCT, Shen Y (2018) Semiparametric estimation of longitudinal medical cost trajectory. J Am Stat Assoc 113(522):582–592 [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Li L, Yang W, Astor BC, Greene T (2019) Competing risk modeling: time to put it in our standard analytical toolbox. J Am Soc Nephrol 30(12):2284–2286 [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Li W, Li L, Astor BC (2023) A comparison of two approaches to dynamic prediction: Joint modeling and landmark modeling. Stat Med 42(13):2101–2115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Little RJA (1993) Pattern-mixture models for multivariate incomplete data. J Am Stat Assoc 88(421):125–134 [Google Scholar]
  27. Liu L, Huang X (2008) Joint analysis of correlated repeated measures and recurrent events processes in the presence of death, with application to a study on acquired immune deficiency syndrome. J R Stat Soc: Ser C: Appl Stat 58(1):65–81 [Google Scholar]
  28. Liu M, Ying Z (2007) Joint analysis of longitudinal data with informative right censoring. Biometrics 63(2):363–371 [DOI] [PubMed] [Google Scholar]
  29. Mauff K, Steyerberg E, Kardys I, Boersma E, Rizopoulos D (2020) Joint models with multiple longitudinal outcomes and a time-to-event outcome: a corrected two-stage approach. Stat Comput 30:999–1014 [Google Scholar]
  30. Nicolaie MA, van Houwelingen HC, Putter H (2010) Vertical modeling: a pattern mixture approach for competing risks modeling. Stat Med 29(11):1190–1205 [DOI] [PubMed] [Google Scholar]
  31. Parast L, Mathews M, Friedberg MW (2019) Dynamic risk prediction for diabetes using biomarker change measurements. BMC Med Res Methodol 19(1):175 [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Peng L, Fine JP (2007) Regression modeling of semicompeting risks data. Biometrics 63(1):96–108 [DOI] [PubMed] [Google Scholar]
  33. Putter H, van Houwelingen HC (2022) Landmarking 2.0: Bridging the gap between joint models and landmarking. Stat Med 41(11):1901–1917 [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Rizopoulos D (2011) Dynamic predictions and prospective accuracy in joint models for longitudinal and time-to-event data. Biometrics 67(3):819–829 [DOI] [PubMed] [Google Scholar]
  35. Rizopoulos D (2012) Joint models for longitudinal and time-to-event data. Chapman and Hall/CRC, Boca Raton, FL [Google Scholar]
  36. Rizopoulos D, Papageorgiou G, Miranda Afonso P (2024) JMbayes2: Extended joint models for longitudinal and time-to-event data. https://CRAN.R-project.org/package=JMbayes2, r package version 0.5-0
  37. Rustand D, van Niekerk J, Krainski ET, Rue H, Proust-Lima C (2023) Fast and flexible inference for joint models of multivariate longitudinal and survival data using integrated nested laplace approximations. Biostatistics 25(2):429–448 [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Schluchter MD (1992) Methods for the analysis of informatively censored longitudinal data. Stat Med 11(14–15):1861–1870 [DOI] [PubMed] [Google Scholar]
  39. Shen F, Li L (2021) Backward joint model and dynamic prediction of survival with multivariate longitudinal data. Stat Med 40(20):4395–4409 [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Taylor JM, Yu M, Sandler HM (2005) Individualized predictions of disease progression following radiation therapy for prostate cancer. J Clin Oncol 23(4):816–825 [DOI] [PubMed] [Google Scholar]
  41. Tsiatis AA, Davidian M (2004) Joint modeling of longitudinal and time-to-event data: an overview. Stat Sin 14:809–834 [Google Scholar]
  42. van Houwelingen H, Putter H (2011) Dynamic prediction in clinical survival analysis. Chapman and Hall/CRC, Boca Raton, FL [Google Scholar]
  43. Wang S, Shen Y, Shih YCT, Xu Y, Li L (2020) Statistical modeling of longitudinal medical cost trajectory: renal cell cancer care cost analyses. Biostatistics 24(2):244–261 [DOI] [PubMed] [Google Scholar]
  44. Wang S, Ning J, Xu Y, Shih YCT, Shen Y, Li L (2023) An extension of estimating equations to model longitudinal medical cost trajectory with medicare claims data linked to seer cancer registry. Ann Appl Stat 17(1):881–899 [PMC free article] [PubMed] [Google Scholar]
  45. Wang Y, Nan B, Kalbfleisch JD (2023) Kernel estimation of bivariate time-varying coefficient model for longitudinal data with terminal event. J Am Stat Assoc 119(546):1102–1111 [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Wang S, Ning J, Xu Y, Shih Y, Shen Y, Li L (2024) Longitudinal varying coefficient single-index model with censored covariates. Biometrics 80(1):ujad006 [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Wu MC, Bailey KR (1989) Estimation and comparison of changes in the presence of informative right censoring: conditional linear model. Biometrics 45(3):939–955 [PubMed] [Google Scholar]
  48. Wu C, Li L (2018) Quantifying and estimating the predictive accuracy for censored time-to-event data with competing risks. Stat Med 37(21):3106–3124 [DOI] [PubMed] [Google Scholar]
  49. Wu C, Li L, Li R (2020) Dynamic prediction of competing risk events using landmark sub-distribution hazard model with multiple longitudinal biomarkers. Stat Methods Med Res 29(11):3179–3191 [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Wu Q, Daniels M, El-Jawahri A, Bakitas M, Li Z (2023) Joint modeling in presence of informative censoring on the retrospective time scale with application to palliative care research. Biostatistics 25(3):754–768 [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Wulfsohn MS, Tsiatis AA (1997) A joint model for survival and longitudinal data measured with error. Biometrics 53(1):330–339 [PubMed] [Google Scholar]
  52. Yao Y, Li L, Astor B, Yang W, Greene T (2023) Predicting the risk of a clinical event using longitudinal data: the generalized landmark analysis. BMC Med Res Methodol 23:5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Yu M, Taylor JMG, Sandler HM (2008) Individual prediction in prostate cancer studies using a joint longitudinal survival-cure model. J Am Stat Assoc 103(481):178–187 [Google Scholar]
  54. Zheng Y, Heagerty PJ (2005) Partly conditional survival models for longitudinal data. Biometrics 61(2):379–391 [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials


Articles from Lifetime Data Analysis are provided here courtesy of Springer

RESOURCES