← 6. Survival analysis
Joint longitudinal–survival model
Try this analysis →

Joint Longitudinal–Survival Models

Analyzes changes in repeated measurements and the time to an event in a single model.

Longitudinal submodelSurvival submodelAssociation structureDynamic prediction

55300612 monthseGFRPatient APatient BPatient CLongitudinal submodelSurvival submodelKidneyfailure riskAssociation

Suppose patients with chronic kidney disease have their kidney function tested every 3 months. In some patients kidney function stays stable for a long time, while in others it drops quickly with every test.

What the researcher wants to know isn't simply how much kidney function declined. They want to know how the rate at which kidney function declines is related to the risk of kidney failure.

There's an important problem here. Patients who develop kidney failure may not be able to attend their later scheduled tests. So as time goes on, the remaining test results may come mostly from patients in relatively good condition.

If you analyze the repeated measurements on their own, you may not adequately account for this dropout. On the other hand, if you only run a survival analysis, it can be hard to properly reflect how kidney function changes differently from patient to patient.

The method for dealing with these problems is the joint longitudinal–survival model.

A joint model analyzes values measured repeatedly over time and the time until an event together in a single statistical model. This lets you estimate how the current level or rate of change of a measurement is related to the risk of the event.

In this article we'll look at how joint models are built and how they work, a real study example, interpreting the results, dynamic prediction, how they differ from Cox regression, and the main assumptions and cautions.

SECTION 1

What is a joint longitudinal–survival model?

A joint longitudinal–survival model analyzes two kinds of outcomes observed in the same study subjects at the same time.

The first is longitudinal data: values measured repeatedly at several time points in the same person or unit. The second is survival data: data recording the time until a particular event and whether the event occurred.

For example, a kidney disease study could analyze the following two outcomes together.

Data typeWhat is analyzedExample
Longitudinal dataChange in repeated measurementsKidney function (eGFR) measured every 3 months
Survival dataTime to the eventTime until kidney failure

A joint model estimates how kidney function changes over time while also analyzing how that change is related to the risk of kidney failure. The important point is that it doesn't just analyze the two outcomes separately and then compare them. A joint model builds the association between the two outcomes directly into the statistical model.

This lets you account for measurement error in the repeated values and for differences in each patient's trajectory, and, under appropriate assumptions, also handle the situation where repeated measurements stop because the event occurred.

SECTION 2

What goes wrong if you run the two analyses separately?

Repeated measurements are usually analyzed with a mixed-effects model.

For example, you can estimate how much a patient's kidney function declines over time and how the rate of decline differs between patients. The risk of kidney failure, meanwhile, can be analyzed with Cox regression. But running the two analyses separately can cause several problems.

First, repeated measurements contain measurement error.

Kidney function test values can reflect not only true health status but also measurement error and temporary physical conditions. Putting the observed test values straight into a survival model can let this error distort the relationship with risk.

Second, each patient's measurements change in a different way.

Two patients may have the same current kidney function, but one may have stayed stable for a long time while the other declined sharply in recent months. So not only the current value but also the rate of change can be important information.

Third, the event can stop the repeated measurements.

For patients who develop kidney failure, later scheduled test values may not be observed. If this dropout is related to the patient's health, analyzing the repeated-measures data on their own can introduce bias. Joint models are designed to handle these problems in one analytical framework.

SECTION 3

How is a joint model structured?

A joint longitudinal–survival model usually consists of two submodels.

Longitudinal submodel

Analyzes how the repeated measurements change over time. A linear mixed-effects model is a typical choice. For example, it can estimate the average change in kidney function along with differences in each patient's starting level and rate of change.

Survival submodel

Analyzes the time until the event and the risk of the event. You can use a Cox-type proportional hazards model, a parametric survival model, and so on.

Linking the two submodels

A joint model links the two submodels through each patient's latent trajectory of the measurement, shared random effects, and so on.

Repeated measurementseGFRLongitudinal submodelChange in kidney functionLatent trajectoryLevel · slopeSurvival submodelKidney failure riskTime to eventLongitudinalSurvival
Structure of a joint model

Through this link you can estimate how strongly the level or rate of change of kidney function is related to the risk of kidney failure. But the meaning of the results depends on how the two submodels are linked.

SECTION 4

Real-world example: changes in kidney function and the risk of kidney failure

Suppose a hospital followed 300 patients with chronic kidney disease for 36 months.

To track their kidney function, the estimated glomerular filtration rate (eGFR) was measured every 3 months. eGFR is a measure of how well the kidneys filter blood; in general, a lower value suggests that kidney function may have declined.

In this example, assume the timing of kidney failure, as defined in advance by the study, was recorded separately.

Study data

ItemDetails
Study population300 patients with chronic kidney disease
Observation periodUp to 36 months
Repeated measureeGFR
Measurement interval3 months
Survival eventKidney failure as defined by the study
CensoringNo event by the end of observation
CovariatesAge, sex, underlying conditions, etc.

The actual number of measurements can differ by patient. Some patients were tested through 36 months, while others stopped earlier because of kidney failure or the end of follow-up. The research question is:

"How is the degree to which a patient's kidney function declines over time related to the risk of kidney failure?"

To answer this question, you can fit a joint model that uses both the repeated eGFR measurements and the time to kidney failure.

SECTION 5

What does the longitudinal submodel analyze?

The longitudinal submodel estimates each patient's eGFR trajectory.

For example, suppose three patients' kidney function was measured as follows.

Example eGFR changes by patient

Time pointPatient APatient BPatient C
Start555555
3 months545248
6 months544942
9 months534636
12 months524330

Unit: mL/min/1.73m²

eGFR (mL/min/1.73m²)2030405060Patient A 52Patient B 43Patient C 300 months3 months6 months9 months12 months
Kidney function changes by patient

All three patients started with an eGFR of 55, but their trajectories differed afterward. Patient A declined gradually from 55 to 52 over 12 months. Patient B fell to 43, and patient C dropped quickly to 30. The longitudinal submodel estimates these differences between patients.

In a mixed-effects model, for example, you can analyze the average downward trend in kidney function across all patients together with differences in each patient's starting level and rate of change. These estimated patient-level trajectories are then linked to the survival submodel.

That said, the five measurements in the table alone aren't enough to conclude that each patient's actual change in kidney function is necessarily linear. In real research, you should consider nonlinear change where needed.

SECTION 6

What does the survival submodel analyze?

The survival submodel analyzes the time until kidney failure and the instantaneous risk of the event.

In a joint model, this risk is set up so that it can be related to the estimated trajectory of the repeated measurements. A typical current-value association model can be written as follows.

hi(t) = h0(t) · exp{ γ⊤Xi + α·mi(t) }

Here is what each symbol means.

SymbolMeaning
hᵢ(t)Hazard of kidney failure for patient i at time t
h₀(t)Baseline hazard function
XᵢOther explanatory variables, such as age
γRegression coefficients of the explanatory variables
mᵢ(t)Estimated latent eGFR level for patient i at time t
αCoefficient for the association between eGFR level and the risk of the event

This model analyzes the relationship between the current estimated eGFR level and the risk of kidney failure. For example, a negative α would mean that higher eGFR goes with a lower risk of kidney failure.

When interpreting the size of the coefficient, though, you need to take into account the measurement unit of eGFR and the other variables in the model. Also, this relationship is a statistical association estimated from observational data; it doesn't have the causal meaning that artificially changing eGFR would change the risk by the same ratio.

SECTION 7

How are the two models linked?

How the longitudinal and survival submodels are linked depends on the research question.

Typical options include the current value, the rate of change, and the cumulative history.

Association typeMain question
Current valueIs the risk of kidney failure higher when the current estimated eGFR is lower?
Current slopeIs the risk higher when eGFR is falling faster?
Current value + slopeAre the level and the rate of decline of eGFR each related to the risk?
Cumulative associationIs long-term decline in kidney function related to the risk?
Shared random effectsAre each patient's starting level and change characteristics related to the event risk?

For example, suppose patients A and B both have a current eGFR of 40. Over the past year, patient A's eGFR fell slightly, from 42 to 40. Patient B's, in contrast, fell quickly from 65 to 40.

40506070Patient A 42Patient B 65Now 401 year ago6 months agoNow
Same current value, different change

In a model that uses only the current value, the two patients have the same current eGFR, so that variable produces no difference in risk between them. But a model that also links the rate of change can reflect the information that the two patients are declining at different rates.

So the association structure should be chosen according to what the researcher considers important: the current health status or the speed at which it is worsening. A different association structure can also change the units and the interpretation of the coefficients.

SECTION 8

How do you interpret actual joint model results?

Suppose we fit a joint model to the data on the 300 patients described above, linking the current eGFR level with the risk of kidney failure.

To make interpretation easier, eGFR is expressed per 5-unit increase.

Survival submodel results

VariableHazard ratio (HR)95% confidence intervalp-value
Estimated eGFR (per 5-unit increase)0.780.68–0.90.001
Age (per 10 years)1.180.98–1.42.078
Has diabetes1.461.08–1.98.014

These values were not calculated from real patient data.

HR = 1Estimated eGFR (per 5 units)0.78Age (per 10 years)1.18Has diabetes1.460.60.81.01.52.0Includes 1
Hazard ratios and 95% confidence intervals

The hazard ratio for eGFR was 0.78. This means that, with age and diabetes status the same and other model conditions equal, an estimated eGFR 5 units higher went with an instantaneous risk of kidney failure about 22% lower.

For example, for a 10-unit difference in eGFR, assuming the same log-linear relationship, the hazard ratio is:

HR = 0.78² ≈ 0.61

So an eGFR 10 units higher can be interpreted as being associated with an instantaneous risk about 39% lower. The hazard ratio for patients with diabetes was 1.46: with other model conditions equal, their instantaneous risk of kidney failure was about 46% higher than that of patients without diabetes.

The 95% confidence interval for age, on the other hand, includes 1, so no statistically significant association was found at the 0.05 significance level.

Because this example used a current-value association model, it doesn't include a hazard ratio for the rate of eGFR decline itself. If you need a separate interpretation of the rate of decline, you have to fit a model that adds that association term.

SECTION 9

What happens when test records stop because of the event?

One important reason to use a joint model is that the occurrence of the event and the end of repeated measurements may be related.

For example, suppose patients whose kidney function worsens quickly tend to develop kidney failure earlier. Once kidney failure occurs, the study's planned eGFR follow-up may stop.

FailureFailureFailure20304050600 months12 months24 months36 months
Informative dropout

In that case, the patients who still have test records at 24 or 36 months are likely to be those with relatively good kidney function. So if you calculate the mean eGFR of the remaining patients without accounting for the event, the change in kidney function across all patients can look more gradual than it really is.

This is called the informative dropout problem. A joint longitudinal–survival model can address it by modeling the repeated-measurement process and the event process together.

Using a joint model, however, doesn't automatically solve every missing-data problem.

If tests are missed or patients are lost to follow-up for reasons unrelated to the event, additional assumptions about missingness and censoring may be needed. And if the model linking the two outcomes is misspecified, the estimates may be biased.

SECTION 10

What is dynamic prediction?

A joint model can be used to update the prediction of future event risk as a patient's new test results come in.

This is called dynamic prediction. For example, suppose a patient has not had kidney failure in the 6 months since starting treatment and has had eGFR measured three times during that period. Using this patient's test history, you can estimate the conditional probability of not developing kidney failure over the next 12 months.

When new test results are added at 9 and 12 months, the prediction can be recalculated to reflect them.

Example of dynamic prediction for one patient

Prediction timeLatest eGFRPredicted probability of kidney failure in the next 12 months
6 months4812%
9 months4319%
12 months3631%

Assume these are predicted probabilities calculated on the condition that kidney failure has not occurred by each time point.

0%10%20%30%12%At 6 monthseGFR 4819%At 9 monthseGFR 4331%At 12 monthseGFR 36Kidney failure risk in the next 12 months
Dynamic prediction

You can see that as this patient's eGFR declines, the predicted probability of kidney failure over the next 12 months rises. Note, though, that this is not a repeated prediction for the same 12-month window. Each is a prediction made at that time point for a new period, the following 12 months.

Whether individual predicted probabilities are suitable for real clinical decisions also needs separate validation. Even if a prediction model performs well on the data it was built from, there's no guarantee it will perform as well when applied to other hospitals or patient populations.

SECTION 11

How does it differ from mixed-effects models and Cox regression?

A joint longitudinal–survival model differs from other methods in that it combines a mixed-effects model with a survival regression model.

AspectMixed-effects modelCox regressionJoint Longitudinal–Survival Models
Main focusRepeated measurementsTime to eventRepeated measurements and event time
Estimates individual trajectoriesYesLimited in the basic modelYes
Handles censoringDoes not model the survival event directlyYesYes
Accounts for measurement errorYesOften does not separately handle error in the time-varying measurements themselvesCan be handled in the longitudinal submodel
Association between the two outcomesNot estimated directly without an explicit linkCan use time-varying covariatesEstimated through an explicit association structure
Dynamic predictionPredicting longitudinal outcomesPredicting survival riskSurvival prediction that reflects the history of repeated measurements

A mixed-effects model is suitable when you want to know how kidney function changes over time. Cox regression is useful when you're interested in the relationship between explanatory variables and the risk of an event. With time-varying covariates, you can also bring changes in a measurement into a survival model.

But when there is measurement error, or when the end of repeated measurements is related to the event, an ordinary time-varying Cox regression may not be enough. A joint model is different in that it analyzes the change in the repeated measurements themselves and the occurrence of the event at the same time, and models the association between the two processes.

Because computation and model specification are more complex, however, not every survival analysis needs a joint model.

SECTION 12

What assumptions and cautions should you check in the analysis?

Because a joint model analyzes two kinds of data together, you need to review each submodel and the structure that links them.

Shape of change in the repeated measurements

We assumed eGFR declines linearly over time, but in reality it may start falling sharply at some point. Where needed, consider splines or nonlinear change.

Structure of between-patient variation

Check whether patients differ only in their starting level or also in their rate of decline. An inappropriate random-effects structure can lead to a wrongly estimated trajectory.

Assumptions of the survival model

If the survival submodel uses a proportional hazards structure, check that assumption and whether the effects change over time.

Choice of association type

Results can differ depending on whether you link the risk to the current eGFR level or also consider the rate of decline or the cumulative history.

Order of measurement times and events

Test values from after kidney failure must not be used to explain the risk at earlier times. Use only the information that would actually be available at the prediction time.

Model convergence and stability

Joint models can have many parameters to estimate and involve complex computation. So check convergence, the random-effects estimates, the uncertainty in the parameters, and so on.

Validating predictive performance

If dynamic prediction is the goal, check not only discrimination but also the calibration of the predicted probabilities and how performance changes over time. If possible, it's best to carry out external validation on separate patient data.

In particular, the association type isn't just a technical setting; it's a choice that directly affects the research question. The current level and the rate of decline have different clinical meanings, so they must be interpreted separately.

SECTION 13

How do you report joint model results?

When reporting joint model results, it's best to present the makeup of the longitudinal and survival data, the submodels used, the association type, the main coefficients, hazard ratios, confidence intervals, and so on.

You can also visualize each patient's trajectory and check how well the model fits the observed values. Using the study we've been looking at, you could write it up as follows.

Example results report

A joint longitudinal–survival model was fitted to analyze the relationship between changes in kidney function and the risk of kidney failure in patients with chronic kidney disease. The study included 300 patients, and eGFR measured repeatedly over a follow-up period of up to 36 months and the time to kidney failure were used in the analysis. The longitudinal submodel was a mixed-effects model that accounted for differences in each patient's starting level and change over time, and the survival submodel used a structure linking the current estimated eGFR level to the risk of kidney failure. With other model conditions equal, each 5 mL/min/1.73m² increase in estimated eGFR was associated with an instantaneous risk of kidney failure about 22% lower (HR = 0.78, 95% CI [0.68, 0.90], p = .001). Patients with diabetes also had a higher estimated risk of kidney failure than patients without diabetes (HR = 1.46, 95% CI [1.08, 1.98], p = .014). These results show a statistical association between a patient's level of kidney function and the risk of kidney failure.

A real report should also present the number of repeated measurements, the actual number of events, the number censored, the estimation method, the coefficients of the longitudinal submodel, the association coefficients linking the two models, and the model diagnostics. If you performed dynamic prediction, clearly state the prediction times and prediction horizon, and it's best to also report the results of validating the prediction model's performance.

✓Wrap-up

Analyze changes in repeated measurements and the time to an event in a single model.

A joint longitudinal–survival model analyzes values measured repeatedly in the same subjects together with the time until a particular event.


Where a standard mixed-effects model focuses on changes in repeated measurements and Cox regression focuses on the risk of an event, a joint model estimates the association between the two outcomes in a single statistical framework.

For example, with patient data on repeated kidney function measurements, you can analyze how the current level or rate of decline of eGFR is related to the risk of kidney failure.

It can also handle the problem of repeated measurements stopping because of the event, under appropriate model assumptions, and it can be used for dynamic prediction, updating each patient's event risk as new test results come in.

A joint model does, however, require both submodels and the association structure to be specified appropriately, and estimation and validation can be more complex than in ordinary regression.

KEY TAKEAWAY

The key to a joint longitudinal–survival model is not explaining risk with a single measurement at one point in time, but analyzing the whole trajectory of a measurement as it changes over time together with its relationship to the risk of the event.