Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Hemoglobin and Organ Complications in Sickle Cell Disease

Case Studies · Tutorial 694 of 697

Hemoglobin and Organ Complications in Sickle Cell Disease

Learn to interpret a joint longitudinal-survival analysis of hemoglobin and first organ complication, including how treatment and disease severity affect the conclusions.

Advanced 13 min read

What You'll Learn

  • Represent repeated hemoglobin measurements with a subject-specific trajectory and measurement error.
  • Define a time-to-first-organ-complication outcome and its censoring indicator.
  • Interpret a hazard association with the latent, current hemoglobin level in units of g/dL.
  • Account for treatment and disease severity while distinguishing adjustment from causal inference.
  • Check key assumptions, identify common failure modes, and compare joint modeling with separate analyses.

Why Hemoglobin and Complication Time Belong Together

In sickle cell disease, hemoglobin is measured repeatedly, while an organ complication may occur at any time during follow-up. The measurements can show a changing pattern, and that pattern may be related to the timing of the event. For example, participants with more severe disease may have lower hemoglobin, different treatment histories, and earlier complications. An analysis that treats every hemoglobin value as an independent observation, or that uses only one measurement, can miss this structure.

The aim here is to interpret a joint model for a repeated hemoglobin trajectory and time to a defined first organ complication. The endpoint must be specified in advance—for example, first adjudicated renal complication under stated diagnostic criteria. It is not enough to say “organ damage,” since different organs and definitions produce different event outcomes. All values and model results in the examples below are hypothetical.

Definition: For participant \(i\), let \(Y_{ij}\) be hemoglobin measured at time \(t_{ij}\), in g/dL. Let \(T_i^*\) be time from a common origin, such as study entry, to the first qualifying organ complication. The observed time is \(T_i=\min(T_i^*,C_i)\), where \(C_i\) is the censoring time, and \(\delta_i=1\) if the complication is observed and \(0\) if follow-up ends first. Let \(m_i(t)\) denote participant \(i\)'s underlying, or latent, mean hemoglobin at time \(t\), distinct from a single noisy measurement.

A Joint Model for the Case

A common longitudinal submodel uses a linear time trend and participant-specific random intercept and slope:

$$ Y_{ij}=\beta_0+\beta_1t_{ij}+b_{0i}+b_{1i}t_{ij}+\boldsymbol{\gamma}^{\mathsf T}\mathbf{A}_i(t_{ij})+\epsilon_{ij}, \qquad \epsilon_{ij}\sim N(0,\sigma^2). $$

Here \(\beta_0\) and \(\beta_1\) describe the population trajectory, \(b_{0i}\) and \(b_{1i}\) allow a participant to differ in level and slope, and \(\mathbf{A}_i(t)\) represents treatment information at that time. The random effects are commonly modeled jointly as a mean-zero normal vector, and residual errors are assumed independent conditional on the random effects and included covariates. In this model, the latent trajectory is \(m_i(t)=\beta_0+\beta_1t+b_{0i}+b_{1i}t+\boldsymbol{\gamma}^{\mathsf T}\mathbf{A}_i(t)\).

One standard event submodel relates the instantaneous complication rate to the current latent hemoglobin, treatment, and disease severity:

$$ h_i(t\mid b_i)=h_0(t)\exp\{\alpha m_i(t)+\boldsymbol{\eta}^{\mathsf T}\mathbf{Z}_i+\boldsymbol{\kappa}^{\mathsf T}\mathbf{A}_i(t)\}. $$

The hazard \(h_i(t\mid b_i)\) is the instantaneous event rate at time \(t\), conditional on remaining event-free just before \(t\). The baseline hazard \(h_0(t)\) is left unspecified in a Cox-type model. \(\mathbf{Z}_i\) can include baseline disease-severity measures, such as a prespecified clinical severity score. The parameter \(\alpha\) describes the association between the latent current hemoglobin level and the event hazard, conditional on the other modeled covariates. Because hemoglobin is measured in g/dL, \(\alpha\) is on a per-g/dL scale.

The model’s central feature is that the event submodel uses \(m_i(t)\), not the most recent observed \(Y_{ij}\). The latent value accounts for measurement error and for the fact that measurements are only collected at discrete visits. A different scientific question could motivate an association with slope, such as \(\alpha_1m_i(t)+\alpha_2m_i'(t)\), but that is a distinct association structure and should not be added merely because the data are repeated.

Assumptions and the Joint Likelihood

Interpretation depends on assumptions. The longitudinal mean and variability must be adequately represented; the event hazard must have the specified covariate form; and participants’ event outcomes must be conditionally independent given their modeled random effects and covariate histories. Censoring should be independent of the unobserved event time conditional on the modeled information. If death prevents observation of the organ complication and is related to its risk, treating death as ordinary noninformative censoring may be inappropriate; the endpoint and analysis must address that competing event.

The usual joint likelihood makes the shared structure explicit. Conditional on the random effects, the repeated measurements contribute their longitudinal densities, and the observed event time contributes a hazard-survival term. Integrating over the random-effects distribution gives:

$$ L_i=\int \left\{\prod_j f(Y_{ij}\mid b_i)\right\} h_i(T_i\mid b_i)^{\delta_i}S_i(T_i\mid b_i) p(b_i)\,db_i, \qquad L=\prod_i L_i. $$

Here \(S_i(t\mid b_i)=\exp\{-\int_0^t h_i(u\mid b_i)\,du\}\) is the conditional event-free survival probability. The term \(h_i(T_i\mid b_i)^{\delta_i}\) supplies an event density when \(\delta_i=1\), and equals one when the observation is censored; the survival term contributes in either case. The integral averages over uncertainty about the participant-specific trajectory rather than pretending the random effects are observed.

Justification: Conditional on \(b_i\) and the covariate history, assume the longitudinal observations and event process are independent. Their conditional contribution is therefore the product of the longitudinal densities and \(h_i(T_i\mid b_i)^{\delta_i}S_i(T_i\mid b_i)\). Since \(b_i\) is unobserved, multiply this contribution by its density \(p(b_i)\) and integrate over all possible random effects. Multiplying the resulting participant contributions gives \(L\). This factorization is not justified if important dependence remains after conditioning on the modeled trajectory and covariates.

Reading the Trajectory Before the Hazard

A useful interpretation begins with the hemoglobin trajectory: its scale, direction, and variation across participants. The fitted population trend is not necessarily the trajectory of every participant. Random intercepts distinguish participants’ typical levels, while random slopes capture differing rates of change. Treatment can also shift or alter the modeled trajectory. The event association should then be interpreted as conditional on the modeled trajectory and covariates, not as an isolated comparison of raw hemoglobin readings.

Worked Example: A Descriptive Hemoglobin Slope

Suppose one hypothetical participant has measurements of 10.1 g/dL at year 0, 9.8 g/dL at year 1, and 9.5 g/dL at year 2. Compute the straight-line slope across these three measurements and describe its meaning.

For equally spaced times, the least-squares slope is the change in hemoglobin per year. The mean time is \(\bar{t}=1\), and the mean measurement is \(\bar{Y}=(10.1+9.8+9.5)/3=9.8\) g/dL. Thus:

$$ \hat{\beta}_1= \frac{\sum_j(t_j-\bar{t})(Y_j-\bar{Y})} {\sum_j(t_j-\bar{t})^2} = \frac{(-1)(0.3)+(0)(0)+(1)(-0.3)}{(-1)^2+0^2+1^2} = \frac{-0.6}{2} =-0.300\ \text{g/dL per year}. $$

The measurements decline by 0.300 g/dL per year on this fitted straight line. This is a descriptive calculation for three observations, not a joint-model estimate and not evidence that the participant’s hemoglobin will continue to decline at that rate. A joint model estimates a latent trajectory using all participants, their measurement error, and the event information.

Interpreting the Marker–Event Association

In the current-value model, two participants with the same modeled treatment and severity covariates but latent hemoglobin values differing by one g/dL have a conditional hazard ratio of \(\exp(\alpha)\), comparing the higher value with the lower value. This is a relative instantaneous event rate among participants still event-free at that time. It is not a ratio of cumulative probabilities, and it does not mean that changing hemoglobin by one unit would cause the hazard to change by that amount.

Worked Example: Converting the Association Estimate to a Hazard Ratio

Suppose a hypothetical fitted model estimates \(\hat{\alpha}=-0.25\) per g/dL, with a 95% confidence interval for \(\alpha\) of \(-0.40\) to \(-0.10\). Calculate and interpret the hazard ratio for a one-g/dL higher latent hemoglobin level.

The point estimate is \(\exp(-0.25)=0.7788\). Exponentiating the confidence limits gives \(\exp(-0.40)=0.6703\) and \(\exp(-0.10)=0.9048\). Thus the estimated conditional hazard ratio is 0.779, with a 95% confidence interval from 0.670 to 0.905.

In this hypothetical model, a one-g/dL higher latent hemoglobin level is associated with an estimated 22.1% lower instantaneous hazard of the defined complication, since \(1-0.7788=0.2212\), conditional on the modeled treatment and severity covariates. The confidence interval corresponds to estimated reductions of about 9.52% to 33.0%. It is an interval for a model-based association, not a 95% probability statement about the fixed parameter and not evidence of a causal protective effect.

Treatment and Disease Severity in Context

Treatment is especially important to interpret carefully. In sickle cell disease, treatment may change over follow-up, and changes can depend on symptoms, prior hemoglobin, or clinical severity. A model can include treatment in the longitudinal and event submodels, but ordinary covariate adjustment does not automatically estimate a causal treatment effect. If treatment is initiated because a participant is worsening, treatment status can be associated with both the marker and event risk for reasons that the model has not fully captured. The timing and definition of treatment variables should be explicit.

Disease severity also matters. A severity covariate can help compare participants at similar measured severity, but it cannot remove confounding by unmeasured or poorly measured factors. The estimate \(\alpha\) is therefore a conditional association under the chosen model, not a biological mechanism established by the model.

Worked Example: A Treatment Change and Predicted Hemoglobin

Consider a hypothetical fitted trajectory \(m_i(t)=9.8-0.1t+0.6A_i(t)+0.2\), where time is in years, \(A_i(t)=0\) before treatment and \(A_i(t)=1\) after treatment begins, and the participant’s random intercept is \(0.2\) g/dL with zero random slope. Treatment starts between years 0.5 and 1.5. Calculate the predicted values at those two times and explain what the change does and does not show.

At year 0.5, the participant is untreated, so \(m_i(0.5)=9.8-0.1(0.5)+0+0.2=9.95\) g/dL. At year 1.5, treatment is active, so \(m_i(1.5)=9.8-0.1(1.5)+0.6+0.2=10.45\) g/dL. The fitted values differ by \(10.45-9.95=0.500\) g/dL.

This difference combines the time trend and the modeled treatment contribution: over one year the time trend contributes \(-0.100\) g/dL, while the treatment term contributes \(+0.600\) g/dL. It is not, by itself, a causal treatment effect. Participants who start treatment may differ in disease severity or clinical history from those who do not.

If this model also had \(\hat{\alpha}=-0.30\) per g/dL, the hazard ratio associated with a 0.500-g/dL higher latent level, holding the other covariates fixed, would be \(\exp\{-0.30(0.500)\}=\exp(-0.15)=0.861\). That is an estimated 13.9% lower conditional hazard for that difference in latent hemoglobin, not an estimate of the effect of initiating treatment.

Diagnostics, Alternatives, and Limitations

Diagnostics should examine both parts of the model. For hemoglobin, assess whether the fitted mean pattern is plausible over time, whether residual variability is adequately represented, and whether random-effect distributions or influential participants are driving the result. For the event model, assess proportional-hazards adequacy and whether the assumed current-value association is supported; a systematically changing association may suggest that the chosen form is inadequate. Compare observed and model-predicted longitudinal patterns and event-free survival, and check whether conclusions change under reasonable alternative trajectory or association specifications.

The observation schedule also matters. Standard formulations generally assume that visit times are noninformative given the modeled information. If participants are measured more often because their condition is worsening, the visit process can itself carry information; ignoring it may distort trajectory estimates. Sparse measurements, few complications, or limited variation in hemoglobin can make the association estimate unstable. A complicated random-effects structure may also be weakly identified in a small data set.

Separate longitudinal and survival analyses are simpler alternatives, but a survival model using the last observed hemoglobin can treat a noisy, irregularly timed value as if it were the true current level. A two-stage approach that first estimates individual slopes and then uses them in a survival model can understate uncertainty from the first stage. Joint modeling addresses the shared latent trajectory and event process in one likelihood, but depends on its modeling assumptions and can be computationally demanding. It does not automatically resolve confounding, informative visit timing, competing risks, or misspecification.

A common mistake is to interpret a negative \(\hat{\alpha}\) as proof that raising hemoglobin prevents organ complications. The model estimates a conditional association between the latent marker and hazard under its assumptions. Treatment selection, disease severity, and other factors may explain part of that association. Causal claims require a design and assumptions suited to causal inference, not just a joint model.

Key takeaway: In this case study, interpret the hemoglobin trajectory, treatment and severity covariates, and event association together. The current-value coefficient describes a conditional hazard association per g/dL with the latent trajectory; it is not automatically a treatment effect or a causal effect of hemoglobin.

Check Your Understanding

Answer each question using the model and definitions above. Brief solutions follow.

  1. If \(\hat{\alpha}=0.20\) per g/dL, what is the estimated hazard ratio for a one-g/dL higher latent hemoglobin level?
  2. Why does the event submodel use \(m_i(t)\) rather than one observed hemoglobin measurement?
  3. A participant has no qualifying complication before study follow-up ends. What are \(\delta_i\) and \(T_i\)?
  4. Why does adjusting for treatment not, by itself, make the treatment coefficient causal?

Solutions. (1) The hazard ratio is \(\exp(0.20)=1.221\): a one-g/dL higher latent level is associated with an estimated 22.1% higher conditional hazard, holding modeled covariates fixed. (2) The latent value represents the underlying trajectory and accounts for measurement error and discrete measurement times; one observed value is noisy and may not be current. (3) \(\delta_i=0\), and \(T_i=C_i\), the observed censoring time. (4) Treatment may be selected in response to symptoms, prior measurements, or severity, so treated and untreated participants can differ in factors related to the event. Covariate adjustment alone does not ensure those differences are controlled or identify a causal effect.

Clinical Biostats