Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Liver Stiffness and Cirrhosis Decompensation

Case Studies · Tutorial 683 of 697

Liver Stiffness and Cirrhosis Decompensation

Learn to interpret a shared-parameter joint model linking latent liver stiffness to the hazard of a carefully defined first decompensation event.

Advanced 11 min read

What You'll Learn

  • Specify a longitudinal submodel for repeated log liver stiffness and a time-to-event submodel for first decompensation.
  • Interpret the shared association parameter on the hazard scale, including a comparison per doubling of latent stiffness.
  • Distinguish a first-event composite endpoint from its individual clinical components and from death.
  • Check the model’s measurement, proportional-hazards, censoring, and shared-effects assumptions.
  • Recognize why a joint model and an analysis using only the last observed stiffness can answer different questions.

Why the Event Definition Matters

Liver stiffness measurements can be collected repeatedly, while cirrhosis decompensation is a clinical event that occurs at a particular time. A joint model connects the underlying stiffness trajectory to the time until an event, accounting for the fact that measurements from one patient are related and that follow-up may end when the event occurs. But the model’s association is only as clinically meaningful as its event definition. “Decompensation” must be specified in terms of observable, adjudicated events before interpreting a hazard ratio.

For the hypothetical analysis below, define the endpoint as time from study entry to the first documented occurrence of ascites, variceal bleeding, or hepatic encephalopathy, according to prespecified clinical criteria. These three components make a composite endpoint; the model’s association concerns the first occurrence of any one of them, not a generic biological state called “worsening cirrhosis.” The components may differ in severity, ascertainment, and relationship to stiffness. A single composite association does not show that the association is the same for each component.

Definition: A shared-parameter joint model specifies a longitudinal model for repeated measurements and a time-to-event model that share patient-specific latent quantities, such as random effects or the latent longitudinal trajectory. In the current-value version used here, the event hazard depends on the patient’s latent longitudinal value at time \(t\).

Model for Log Liver Stiffness and First Decompensation

Let \(Y_{ij}\) be the measured liver stiffness, in kPa, for patient \(i\) at time \(t_{ij}\), measured in years since study entry. Because stiffness is positive and often analyzed on a logarithmic scale, set \(y_{ij}=\log(Y_{ij})\). A linear mixed model for the repeated log measurements is

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

Here \(m_i(t)\) is the patient-specific latent mean log stiffness, \(\beta_0\) and \(\beta_1\) describe the population trajectory, and \(b_{0i}\) and \(b_{1i}\) are patient-specific random intercept and slope. A common specification assumes the random-effects vector \((b_{0i},b_{1i})\) follows a mean-zero bivariate normal distribution with an estimated covariance matrix. Conditional on the random effects, measurement errors \(\epsilon_{ij}\) have mean zero, constant variance, and are independent across measurement occasions; they are also independent of the random effects.

Let \(T_i\) be time to the first qualifying decompensation event and let \(\delta_i=1\) if that event is observed, with \(\delta_i=0\) if observation is right-censored before it. A current-value hazard model is

$$ h_i(t\mid b_i)=h_0(t)\exp\{\gamma^\mathsf{T}w_i+\alpha m_i(t)\}, $$

where \(h_0(t)\) is an unspecified baseline hazard, \(w_i\) is a vector of observed covariates, and \(\gamma\) is its coefficient vector. The parameter \(\alpha\) links latent log stiffness to the instantaneous hazard of the defined first event. The hazard is conditional on the patient still being event-free at \(t\), the modeled covariates, and the shared random effects. This is an association model, not evidence that changing stiffness would cause the event.

Assumptions and Interpretation of the Association

Interpretation relies on the model being a reasonable description of the data. The longitudinal mean trajectory must adequately represent changes in log stiffness over the observed time range; the assumed distribution and covariance structure for random effects and the measurement-error model must be adequate. The event model assumes proportional hazards conditional on the modeled quantities, and the effect of the latent value is linear on the log-hazard scale. The current-value formulation assumes that the latent stiffness at time \(t\), rather than only a past value or rate of change, is the quantity linked to the hazard.

The shared-effects structure must also be suitable: after conditioning on modeled covariates and the shared latent trajectory, the remaining dependence between repeated measurements and event times should be sufficiently represented. For ordinary right-censoring, censoring must be conditionally noninformative for the event-time likelihood given the modeled information. If death before a qualifying decompensation is possible, it is a competing event, not a decompensation-free observation that can automatically be treated as ordinary independent censoring. A cause-specific hazard analysis may censor at death under its assumptions, but its hazard interpretation is not the same as a cumulative probability of decompensation in the presence of death.

The scale of the association is especially important. Since \(m_i(t)\) is on the natural-log kPa scale, a one-unit increase in \(m_i(t)\) corresponds to multiplying latent stiffness by \(e\), not increasing stiffness by one kPa. If two otherwise comparable patients differ in latent log stiffness by \(d\), the model-implied hazard ratio is \(e^{\alpha d}\). For a doubling of latent stiffness, \(d=\log 2\), so the hazard ratio is \(e^{\alpha\log 2}\). This conversion gives the estimate a more clinically legible scale.

Worked Example: Converting the Latent Trajectory to kPa

Suppose the fitted trajectory for a hypothetical patient is \(m_i(t)=2.20+0.08t+0.10+0.02t\). The random intercept is 0.10 and the random slope is 0.02 log-kPa units per year. Calculate latent stiffness at years 1 and 2 and the modeled increase in kPa.

At year 1, \(m_i(1)=2.20+(0.08)(1)+0.10+(0.02)(1)=2.40\). The latent stiffness on the original scale is \(e^{2.40}=11.02\) kPa.

At year 2, \(m_i(2)=2.20+(0.08)(2)+0.10+(0.02)(2)=2.20+0.16+0.10+0.04=2.50\). Therefore, latent stiffness is \(e^{2.50}=12.18\) kPa. The modeled increase from year 1 to year 2 is \(12.18-11.02=1.16\) kPa, approximately. This is a change in the model’s latent mean, not necessarily the difference between two noisy measured values.

Worked Example: Hazard Ratio for a Doubling

Suppose the estimated association is \(\hat\alpha=0.70\). Compare two patients with the same modeled covariates and random-effects structure, whose latent stiffness values at a given time differ by a factor of two. The model-implied hazard ratio is

$$ \exp\{\hat\alpha\log(2)\} =\exp\{0.70(0.6931)\} =\exp(0.4852) \approx 1.625. $$

Under the fitted model, the patient with twice the latent stiffness has an estimated instantaneous hazard of first decompensation about 1.625 times that of the comparison patient at that time, conditional on modeled covariates and the shared-effects structure. This is a relative hazard, not a 62.5 percentage-point increase in event probability, and it does not imply that a particular patient will decompensate.

For scale, comparing a patient with \(m_i(t)=2.50\) to a hypothetical patient with the same covariates and \(m_i(t)=0\) gives \(\exp\{0.70(2.50)\}=\exp(1.75)\approx5.755\). Since \(m=0\) corresponds to 1 kPa on the original scale, this is a mathematical reference comparison, not necessarily a clinically representative control value.

Uncertainty and the Meaning of a Composite Event

A confidence interval for \(\alpha\) is on the log-hazard scale. Transforming its endpoints gives an interval for a hazard ratio, but the transformation must use the contrast of interest. For a doubling, multiply the endpoints by \(\log 2\) before exponentiating. The resulting interval quantifies uncertainty in the model-based relative hazard for that contrast; it is not an interval for an individual’s event probability.

Worked Example: Confidence Interval for the Doubling Association

Assume \(\hat\alpha=0.70\) with standard error \(SE=0.25\), and use a normal-approximation 95% confidence interval. First, the interval for \(\alpha\) is \(0.70\pm1.96(0.25)=0.70\pm0.49\), or \((0.210,1.190)\). Convert the endpoints to hazard ratios for a doubling:

$$ \left(\exp\{0.210\log(2)\},\ \exp\{1.190\log(2)\}\right) =(1.157,\ 2.282). $$

The point estimate is 1.625, and the approximate 95% confidence interval for the hazard ratio is 1.157 to 2.282. In repeated samples under the model and its assumptions, intervals constructed by this procedure would cover the true doubling hazard ratio about 95% of the time. These data are compatible with a positive association on this scale, but the interval does not establish a causal effect.

Suppose a hypothetical patient has ascites meeting the protocol criteria at month 18, variceal bleeding at month 25, and dies at month 30. For the specified composite first-event endpoint, the event time is month 18 and the event indicator is 1; later events do not change the first-event outcome. If instead the research question concerned time to variceal bleeding specifically, the month-18 ascites event would not be that endpoint, and the analysis would need an explicit strategy for handling it. Thus, the same clinical record can generate different event data under different endpoint definitions.

Estimation, Diagnostics, and Alternatives

Joint estimation uses the repeated stiffness values and event or censoring information together. In outline, the likelihood integrates over the unobserved patient-specific random effects: for each patient it combines the longitudinal measurement contribution with the event-time contribution conditional on those effects, then averages over their distribution. The estimated association is therefore not obtained by simply regressing observed event times on the last recorded stiffness value.

A practical analysis should inspect observed trajectories and fitted trajectories on the log scale, residual patterns, and the estimated random-effects distribution. Check whether a linear time trend is plausible across the time range: systematic curvature or distinct phases can indicate that the longitudinal mean is inadequate. Examine whether residual variability changes with time or fitted value, and whether influential patients drive the estimated association. For the survival component, assess whether a single proportional-hazards association is plausible, including whether the stiffness association appears to change over follow-up. Also verify endpoint coding, event dates, and reasons for loss to follow-up. Sparse measurements near event times can make the current latent value weakly identified even if the model converges.

The shared-parameter joint model is useful when repeated measurements are noisy and the outcome process can relate to the underlying trajectory; it can account for that dependence under its assumptions. A Cox model using a single baseline stiffness measurement is simpler, but it does not represent subsequent trajectory information. A time-updated Cox analysis using the most recent observed measurement is another alternative, but it can be vulnerable to measurement error and to informative observation or dropout unless those processes are handled appropriately. Two-stage approaches that first estimate trajectories and then use estimated values in an event model may not fully propagate uncertainty from the first stage. These approaches can answer useful questions, but they are not interchangeable with joint modeling.

The joint model also has limitations. A fitted \(\alpha\) does not prove that stiffness causes decompensation; disease severity, treatment, and other unmeasured factors may affect both. A composite endpoint can obscure differences among ascites, bleeding, and encephalopathy, and its association may depend on which component occurs most often. Liver stiffness itself can be influenced by factors other than fibrosis, such as acute inflammation or congestion; the model does not automatically distinguish these mechanisms. Results also depend on how the measurement scale, time course, event definition, and competing events are specified.

A Short Derivation of the Hazard-Ratio Contrast

For two otherwise comparable patients at time \(t\), let their latent log stiffness values be \(m_A(t)\) and \(m_B(t)\). The hazard model gives

$$ \frac{h_A(t)}{h_B(t)} = \frac{h_0(t)\exp\{\gamma^\mathsf{T}w+\alpha m_A(t)\}} {h_0(t)\exp\{\gamma^\mathsf{T}w+\alpha m_B(t)\}} = \exp\{\alpha[m_A(t)-m_B(t)]\}. $$

The baseline hazard and shared covariate contribution cancel because they are the same for both patients. If patient A has twice patient B’s latent stiffness, then \(m_A(t)-m_B(t)=\log(2)\), since \(m\) is the log of stiffness. Substitution yields \(\exp\{\alpha\log(2)\}\). This derivation also shows why the hazard ratio describes a relative instantaneous rate among patients still event-free, not the ratio of their cumulative risks over an interval.

Common Pitfalls

  • Treating a composite as one uniform clinical event. The wrong reasoning is that any positive association applies equally to ascites, bleeding, and encephalopathy. The correction is to report the modeled endpoint as first occurrence of the specified composite and, when clinically important, examine components with an appropriate separate analysis.
  • Calling the association causal. A shared-parameter model addresses dependence induced by the modeled latent trajectory; it does not remove all confounding or prove that stiffness changes cause decompensation.
  • Reading \(\alpha\) as a per-kPa effect. With log stiffness in the model, \(\alpha\) is per one-unit increase in log stiffness. For a doubling, use \(\exp\{\alpha\log(2)\}\).
  • Ignoring death before decompensation. Death may prevent a later decompensation from being observed. Treating it as ordinary censoring without considering the target estimand and assumptions can misrepresent the clinical question.
Key takeaway: Interpret the association through the latent stiffness scale and the exact first-event definition. State the contrast, event components, conditioning, and competing-event handling before translating a fitted coefficient into clinical language.

Check Your Understanding

Answer each question, then compare with the brief solutions below.

  1. If latent log stiffness differs by 0.4 and \(\hat\alpha=0.50\), what is the model-implied hazard ratio?
  2. With \(\hat\alpha=0.70\), what is the estimated hazard ratio for a doubling of latent stiffness, and what does it compare?
  3. A patient experiences qualifying ascites at month 10 and qualifying encephalopathy at month 16. Under the stated composite endpoint, what is the event time?
  4. Why is death before decompensation not automatically equivalent to independent right-censoring?
  5. Name one diagnostic that could reveal a poor fit in the longitudinal submodel and one limitation of a composite endpoint.

Solutions. (1) \(\exp(0.50\times0.4)=\exp(0.20)=1.221\), the relative instantaneous hazard for the patient with the higher latent log stiffness, conditional on the model. (2) \(\exp\{0.70\log(2)\}=1.625\); it compares patients whose latent stiffness values differ by a factor of two at the same time, with modeled covariates held fixed. (3) Month 10, the first qualifying component event. (4) Death prevents subsequent observation of decompensation and may be related to the patient’s event risk, so the censoring assumption and target quantity require consideration of competing risks. (5) Systematic curvature in residuals or observed-versus-fitted trajectories may signal a poor longitudinal mean model; a composite can mask differing associations or clinical importance across its component events.

Clinical Biostats