Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Retinal Thickness and Diabetic Retinopathy Progression

Case Studies · Tutorial 693 of 697

Retinal Thickness and Diabetic Retinopathy Progression

Learn how a joint model uses repeated retinal thickness measurements and time to sight-threatening diabetic retinopathy to estimate their association while accounting for measurement error and informative dropout.

Advanced 11 min read

What You'll Learn

  • Define a latent retinal-thickness trajectory and a time-to-progression endpoint.
  • Specify a shared-random-effects joint model and its conditional assumptions.
  • Construct the likelihood contribution for an event or a censored observation.
  • Interpret the association between current latent thickness and progression hazard.
  • Diagnose model misspecification and distinguish joint modeling from simpler alternatives.
  • Recognize limitations, including endpoint definition and potentially informative visit schedules.

Why Link Retinal Thickness to Progression?

Suppose a hypothetical study follows people with diabetic retinopathy, recording optical imaging measurements of retinal thickness at several visits and the time to first sight-threatening progression. The scans describe a changing biological process, while progression is an event that may occur between visits. A participant who progresses may stop contributing routine scans, so the available measurements can become fewer precisely for people whose disease is advancing. An analysis that treats the observed scans and event times as unrelated may therefore miss important dependence.

A joint model addresses this by representing each participant’s underlying thickness trajectory and relating that latent trajectory to the event hazard. The model does not assert that retinal thickness causes progression. It estimates an association conditional on specified covariates and assumptions. Nor does it presume that thicker retina always means more severe disease: thickness can reflect different pathological processes, so the clinical direction must be justified for the particular measurement and endpoint.

Model and Assumptions

Let \(Y_{ij}\) be participant \(i\)'s measured retinal thickness, in micrometers, at time \(t_{ij}\), measured in years from baseline. Let \(T_i\) be time to first sight-threatening diabetic retinopathy progression, and let \(C_i\) be the censoring time. The observed follow-up time is \(\tilde T_i=\min(T_i,C_i)\), and \(\delta_i=1\) if progression is observed and \(0\) if follow-up is censored. Define \(m_i(t)\) as the participant's latent, or underlying, mean thickness at time \(t\).

Definition: A shared-random-effects joint model specifies a longitudinal model for \(Y_{ij}\) around \(m_i(t_{ij})\), and an event model whose hazard depends on the same participant-specific random effects, often through \(m_i(t)\). The shared terms allow the repeated measurements and event time to be statistically dependent.

One simple longitudinal submodel is a linear trajectory with participant-specific intercept and slope:

$$ Y_{ij}=m_i(t_{ij})+\epsilon_{ij}, \qquad m_i(t)=\beta_0+\beta_1t+b_{0i}+b_{1i}t. $$

Here \(\beta_0\) is the population intercept, \(\beta_1\) is the population change in thickness per year, and \(b_{0i}\) and \(b_{1i}\) are participant-specific deviations. A standard specification assumes \(\boldsymbol b_i=(b_{0i},b_{1i})^\mathsf{T}\sim N(\boldsymbol 0,D)\) and independent measurement errors \(\epsilon_{ij}\sim N(0,\sigma^2)\), conditional on the random effects and covariates. Covariates can be added to either submodel as appropriate.

For illustration, use a proportional hazards event submodel whose association is with the current latent thickness, centered at 250 micrometers and scaled per 10 micrometers:

$$ h_i(t\mid\boldsymbol b_i) =h_0(t)\exp\left\{\boldsymbol\gamma^\mathsf{T}\boldsymbol Z_i +\alpha\frac{m_i(t)-250}{10}\right\}. $$

The baseline hazard is \(h_0(t)\), \(\boldsymbol Z_i\) contains event-model covariates, and \(\alpha\) is the log hazard ratio for a 10-micrometer higher current latent thickness, holding the included covariates fixed. Centering changes the reference level, not the association estimate. The form assumes proportional hazards conditional on the covariates and random effects. It also assumes the chosen current-value association is an adequate description; a slope association or a different trajectory may be needed if scientific reasoning supports it.

Key assumptions include a correctly specified longitudinal mean and random-effects distribution; measurement errors that are conditionally independent with the specified variance structure; and censoring that is noninformative conditional on the modeled information. The visit schedule must also be ignorable for the likelihood used: for example, visits must not occur more often because of unmodeled worsening thickness. If visits or censoring remain informative after conditioning, they may need their own model. The event definition and time origin must be consistent across participants.

Likelihood: How the Two Processes Connect

Conditional on \(\boldsymbol b_i\), the longitudinal observations contribute their measurement densities. The event contribution is the hazard at the observed time if progression occurred, multiplied by the probability of remaining event-free up to that time. Write the conditional survival function as \(S_i(t\mid\boldsymbol b_i)=\exp\{-\int_0^t h_i(u\mid\boldsymbol b_i)\,du\}\). The participant's likelihood contribution is then integrated over the random-effects distribution:

$$ L_i= \int \left\{\prod_j f_Y\bigl(Y_{ij}\mid\boldsymbol b_i\bigr)\right\} \left\{h_i(\tilde T_i\mid\boldsymbol b_i)^{\delta_i} S_i(\tilde T_i\mid\boldsymbol b_i)\right\} \phi(\boldsymbol b_i;\boldsymbol 0,D)\,d\boldsymbol b_i. $$

This expression makes the connection explicit: conditional on a participant's random effects, the two data components are modeled together; the same random effects enter both components; and the likelihood averages over their unknown values. For a censored participant, \(\delta_i=0\), so the event factor is survival through the censoring time, not a density for an event at that time.

The factorization follows by conditional independence: given \(\boldsymbol b_i\) and covariates, the joint density of the observed scans and event record is the scan-density product times the event-record contribution. Multiplying by the density of \(\boldsymbol b_i\) and integrating gives the marginal likelihood because the random effects are unobserved. If the random effects affect both thickness and the hazard, integrating them jointly preserves the dependence between the two observed processes. Fitting the two components separately generally does not.

Worked Example: Interpreting the Current-Thickness Association

Consider a hypothetical fitted model with \(\hat\alpha=0.30\). Compare two otherwise similar participants at a time when their estimated latent thicknesses are 255 and 245 micrometers. Assume the proportional-hazards and model specifications above apply.

The difference is 10 micrometers, so the fitted hazard ratio for the participant with thickness 255 relative to the participant with thickness 245 is:

$$ \exp\left\{\hat\alpha\frac{255-245}{10}\right\} =\exp(0.30)=1.350. $$

Under this model, the instantaneous progression hazard is estimated to be 1.350 times as high, or 35.0% higher, at that time for the participant with the higher latent thickness, conditional on the modeled covariates and random-effects structure. This is an association, not a causal effect, and it does not mean that this participant has a 35.0% higher probability of progressing over a specified period. A probability over an interval also depends on the baseline hazard and follow-up duration.

Worked Likelihood Contributions

Worked Example: Combining a Scan Density and an Event Density

Suppose a hypothetical participant has latent thickness \(m_i(t_{ij})=255\) micrometers at a scan time, with measurement-error standard deviation \(\sigma=6\) micrometers. The recorded thickness is \(Y_{ij}=258\) micrometers. At the participant's observed progression time, suppose the conditional event-time density contribution \(h_i(\tilde T_i\mid\boldsymbol b_i)S_i(\tilde T_i\mid\boldsymbol b_i)\) is 0.0804 per year. Calculate the conditional contribution from this scan and event record, given the random effects.

The normal scan density is:

$$ f_Y(258\mid\boldsymbol b_i) =\frac{1}{6\sqrt{2\pi}} \exp\left\{-\frac{(258-255)^2}{2(6^2)}\right\} =\frac{1}{6\sqrt{2\pi}}\exp(-0.125) \approx 0.05868\ \text{per micrometer}. $$

Because progression was observed, the event factor is included as a density. By conditional factorization, the scan-and-event contribution is:

$$ 0.0586775\times0.0804 =0.00471767 \approx 0.00472\ \text{per micrometer-year}. $$

This is a conditional likelihood contribution, not the probability that this participant progresses. In a full analysis, contributions from all scans and the random-effects density are included, and the contribution is integrated over the random effects.

Worked Example: A Censored Participant

Suppose a hypothetical participant has no observed progression by 2.5 years and is censored then. Conditional on the participant's random effects and covariates, assume the hazard is constant at 0.10 per year over this period. What is the event-record contribution?

With a constant hazard \(h=0.10\) per year, survival to 2.5 years is:

$$ S_i(2.5\mid\boldsymbol b_i) =\exp\{-(0.10)(2.5)\} =\exp(-0.25) \approx 0.7788. $$

Since \(\delta_i=0\), the event factor is \(h_i(2.5\mid\boldsymbol b_i)^0 S_i(2.5\mid\boldsymbol b_i)=0.7788\). It records that the participant remained free of observed progression through 2.5 years. It is not a claim that the participant has a 77.88% probability of never progressing; it is the conditional survival contribution through the observed censoring time.

Diagnostics, Alternatives, and Limitations

A joint model depends on both submodels being credible. Inspect longitudinal residuals against fitted thickness and time for curvature, changing spread, or systematic patterns. Compare observed and model-predicted trajectories, and examine whether the assumed random-effects distribution and measurement-error structure are plausible. For the event component, assess whether the proportional-hazards assumption is reasonable and compare predicted and observed event patterns over follow-up. Check sensitivity to influential participants, sparse scans, and alternative trajectory forms. A model that fits event times but poorly describes scan trajectories, or vice versa, is not adequate simply because it converges.

Also ask whether the visit schedule could be informative. If participants are scanned more frequently when clinicians suspect worsening disease, a model treating visit times as fixed and ignorable may not capture all relevant dependence. Similarly, a single current-value association can be inadequate if the rate of thickness change, a delayed effect, or another aspect of the trajectory is more relevant. These alternatives require scientific justification and careful model checking rather than selection solely by statistical fit.

ApproachPotential advantageImportant limitation
Joint model with shared random effectsConnects the latent trajectory and event process while accounting for their modeled dependence.Requires assumptions about both submodels, random effects, and censoring; can be computationally demanding.
Separate longitudinal and event modelsSimpler to fit and summarize when dependence is not important for the scientific question.Does not, by itself, account for dependence induced by shared participant-specific features or event-related dropout.
Time-dependent event model using observed scansCan use updated measurements in a familiar event-model framework.Observed values may contain measurement error and may be unavailable or selectively observed near progression; the chosen handling of these issues matters.
Landmark analysisGives predictions or associations among participants still under observation at a chosen time.Answers a landmark-specific question and does not use the full longitudinal-event dependence in the same way.

Joint modeling is not a cure for poor measurement or an ill-defined endpoint. Retinal thickness may vary by retinal region, instrument, and image quality; those sources of variation require appropriate measurement protocols and model terms. Sight-threatening progression should be defined in advance, with a clear time origin and consistent event ascertainment. If death or another event prevents progression from being observed, treating it as ordinary censoring requires additional assumptions; a competing-risks analysis may be more appropriate. Finally, model-based associations and predictions should not be described as causal effects without a causal design and assumptions that support that interpretation.

Common pitfall: Using each participant's last observed thickness as if it were a perfectly measured, fixed predictor, then treating event and scan data as independent. This ignores measurement error and can select different measurement times for participants who progress early. A joint model instead specifies the latent trajectory and event process together, but its conclusions still rely on its assumptions and diagnostics.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. If \(\hat\alpha=-0.20\), what is the fitted hazard ratio for a 10-micrometer higher current latent thickness?
  2. Why does a censored participant contribute \(S_i(\tilde T_i\mid\boldsymbol b_i)\) rather than an event-time density?
  3. In the likelihood, why are the longitudinal and event contributions integrated over the same random effects?
  4. Name one diagnostic for the longitudinal component and one for the event component.

Solutions. 1. The hazard ratio is \(\exp(-0.20)\approx0.8187\), so the fitted instantaneous hazard is about 18.1% lower per 10-micrometer increase, conditional on the model. 2. Censoring establishes that the participant remained event-free through \(\tilde T_i\), but does not establish an event at that time; its event-record contribution is survival through follow-up. 3. The shared random effects are unobserved participant-specific features included in both submodels, so the joint conditional contribution must be averaged over their common distribution. 4. For example, inspect longitudinal residuals against time for systematic curvature, and assess proportional hazards or compare predicted with observed event patterns for the event component.

Clinical Biostats