Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Worked Joint Model for an Ordinal Biomarker

Flexible Trajectories and Non-Gaussian Responses · Tutorial 495 of 697

Worked Joint Model for an Ordinal Biomarker

Learn how to specify and interpret an ordinal-marker joint model whose subject-specific trajectory effects are shared with the event-time model.

Advanced 12 min read

What You'll Learn

  • Build category probabilities from cumulative-logit cutpoints and a subject-specific trajectory.
  • Add spline terms and Gaussian subject-level effects to the ordinal longitudinal model.
  • Link the same random effects to a conditional event hazard and interpret the association parameters.
  • Derive a subject’s conditional joint likelihood contribution and explain why marginalization is necessary.
  • Check proportional-odds, trajectory, survival, and numerical-integration assumptions.
  • Distinguish a shared-random-effects joint model from separate fits and a current-value association.

Why Share an Ordinal Trajectory With the Event Model?

An ordinal biomarker records ordered categories rather than measurements on a continuous scale. A participant’s sequence of categories may nevertheless reveal a changing underlying trajectory: movement toward higher categories can be associated with a different event rate. A joint model represents that trajectory while accounting for subject-to-subject variation, then connects that variation to the time-to-event outcome.

The model below uses cumulative-logit probabilities for the ordinal responses and a survival hazard that depends on the same subject-specific random effects. This shared-effects construction allows the marker and event outcomes to be associated after conditioning on measured covariates. It does not, by itself, establish that changes in the marker cause changes in event risk.

Definition: Let \(Y_{ij}\in\{1,\ldots,K\}\) be subject \(i\)'s ordinal biomarker category at time \(t_{ij}\), with larger categories representing higher biomarker levels. Let \(T_i\) be the event or censoring time and \(\delta_i=1\) indicate an observed event (\(\delta_i=0\) indicates right censoring). A shared-random-effects joint model specifies the conditional distribution of the marker and the event time given subject-specific effects \(b_i\), then integrates over the distribution of those effects.

Ordinal Trajectory and Survival Submodels

Use an increasing cumulative-logit model. Let \(F(u)=1/(1+\exp(-u))\) be the logistic distribution function, and let \(\alpha_1<\cdots<\alpha_{K-1}\) be cutpoints. Define the subject-specific linear predictor \(\eta_i(t)\) using fixed covariates and a flexible time trajectory, together with random effects:

$$ \operatorname{logit}\{P(Y_{ij}\leq k\mid b_i)\} =\alpha_k-\eta_i(t_{ij}),\quad k=1,\ldots,K-1, $$
$$ \eta_i(t)=x_i^\mathsf{T}\beta+B(t)^\mathsf{T}\kappa+z_i(t)^\mathsf{T}b_i, \qquad b_i\sim N(0,D). $$

Here \(x_i\) contains baseline covariates, \(B(t)\) is a chosen spline basis, and \(z_i(t)\) specifies which trajectory components vary by subject. For example, a random intercept and slope use \(z_i(t)=(1,t)^\mathsf{T}\). The vector \(b_i\) has a multivariate normal distribution with mean zero and covariance matrix \(D\). The cutpoint ordering ensures valid, non-overlapping ordinal categories. Because of the minus sign, larger \(\eta_i(t)\) shifts probability toward higher categories.

The category probabilities follow by differencing adjacent cumulative probabilities. Set \(\alpha_0=-\infty\) and \(\alpha_K=+\infty\); then

$$ P(Y_{ij}=k\mid b_i) =F\{\alpha_k-\eta_i(t_{ij})\} -F\{\alpha_{k-1}-\eta_i(t_{ij})\},\quad k=1,\ldots,K. $$

For the event model, let \(w_i\) contain baseline survival covariates and let \(\lambda\) link the marker’s random effects to the hazard:

$$ h_i(t\mid b_i)=h_0(t)\exp\{\gamma^\mathsf{T}w_i+\lambda^\mathsf{T}b_i\}. $$

The baseline hazard \(h_0(t)\) may be specified parametrically or left flexible. Conditional on \(b_i\), the random effects act multiplicatively on the hazard. A one-unit increase in random-effect component \(b_{ir}\), holding other components and covariates fixed, multiplies the hazard by \(\exp(\lambda_r)\). Its unit depends on the component: a random slope, for instance, is measured in log-odds per unit time.

This specification assumes that, conditional on \(b_i\) and included covariates, the repeated ordinal responses and event process are independent. It also requires an appropriate model for the distribution of \(b_i\), a suitable baseline hazard, and censoring that is non-informative conditional on the modeled information. The proportional-odds assumption is that the same \(\eta_i(t)\) shifts every cumulative logit; the effect is not category-specific.

Worked Category Probabilities

Worked Example: Converting Cumulative Probabilities to Categories

Suppose a hypothetical four-category marker has cutpoints \(\alpha_1=-1\), \(\alpha_2=0\), and \(\alpha_3=1\). At one visit, the fitted subject-specific predictor is \(\eta_i(t)=0.6\). Calculate the four category probabilities.

The cumulative probabilities are \(P(Y\leq k)=F(\alpha_k-0.6)\). Thus,

$$ P(Y\leq1)=F(-1.6)=0.1680,\quad P(Y\leq2)=F(-0.6)=0.3543,\quad P(Y\leq3)=F(0.4)=0.5987. $$

Subtract successive cumulative probabilities, using 0 and 1 as the boundary cumulative probabilities:

$$ \begin{aligned} P(Y=1)&=0.1680,\\ P(Y=2)&=0.3543-0.1680=0.1863,\\ P(Y=3)&=0.5987-0.3543=0.2444,\\ P(Y=4)&=1-0.5987=0.4013. \end{aligned} $$

The probabilities sum to \(1.0000\), up to rounding. The probability of category 4 is largest here; increasing \(\eta_i(t)\) would further shift the category distribution upward under this sign convention.

How the Joint Likelihood Is Formed

Conditional on \(b_i\), multiply the ordinal probabilities across visits and the event-time contribution. Write \(q_i(t)=\gamma^\mathsf{T}w_i+\lambda^\mathsf{T}b_i\). The event-time contribution for a right-censored observation is expressed using the hazard and cumulative hazard; it covers both observed events and censoring:

$$ L_i(b_i)= \left[\prod_j P(Y_{ij}=y_{ij}\mid b_i)\right] \left[h_0(T_i)\exp\{q_i(T_i)\}\right]^{\delta_i} \exp\left\{-\int_0^{T_i}h_0(u)\exp\{q_i(u)\}\,du\right\}. $$

In this shared-effects model \(q_i(t)\) does not vary with time, but writing the hazard contribution in this form makes its event and censoring parts explicit. When \(\delta_i=1\), the hazard at the event time contributes; when \(\delta_i=0\), that factor is absent. Both cases include the probability of remaining event-free through \(T_i\), represented by the exponential of the negative cumulative hazard.

The subject-level likelihood is not obtained by simply substituting \(b_i=0\). The random effects are unobserved, so the likelihood integrates the entire conditional contribution against their density:

$$ L_i=\int L_i(b)\,\phi(b;0,D)\,db, \qquad L=\prod_i L_i. $$

This integration is the key justification for joint estimation: each possible random trajectory contributes according to its plausibility under \(N(0,D)\), and the observed marker and event data together inform that plausibility. In practice the integral usually requires numerical methods, particularly when there are several random effects.

Justification: Conditional independence gives the product of the marker and event contributions inside \(L_i(b_i)\). Since \(b_i\) is latent, the law of total probability gives \(L_i=\int L_i(b)\phi(b;0,D)\,db\). Integrating the product is generally not the same as multiplying separately marginalized marker and event likelihoods; the shared \(b_i\) is precisely what induces their modeled dependence.

Worked Hazard Association

Worked Example: Interpreting a Random-Slope Link

Consider a hypothetical model with random slope \(b_{i1}\), measured in log-odds per year, and corresponding association parameter \(\lambda_1=0.3138441\) years per log-odds unit. Suppose a subject’s random slope is \(b_{i1}=0.0454358\) log-odds per year. Holding the random intercept and survival covariates fixed, calculate this slope’s contribution to the log hazard and the hazard ratio relative to a subject with random slope zero.

The contribution to the log hazard is the product of the association parameter and the random slope:

$$ 0.3138441(0.0454358)=0.0142598 $$

The product is dimensionless. Exponentiating gives the hazard ratio:

$$ \exp(0.0142598)=1.01436. $$

Thus, for this hypothetical contrast, the slope component multiplies the instantaneous hazard by about \(1.014\), or increases it by about \(1.44\%\), conditional on the other model terms. This is an association in the fitted model, not evidence that changing the slope would cause the hazard to change.

Worked Conditional Likelihood Contribution

Worked Example: Combining an Ordinal Observation With an Event

Suppose a hypothetical subject has one ordinal observation in category 3, with the category probability \(0.2444\) calculated above. Assume a constant baseline hazard \(h_0(t)=0.08\) per year and a fixed random-effects contribution \(q_i=0.112\), so the subject-specific hazard is constant at \(0.08\exp(0.112)\) per year. The subject experiences the event at \(T_i=2.5\) years. Calculate the conditional joint contribution for this one marker observation and event, given the random effects.

First, \(\exp(0.112)\approx1.1185\), so the event hazard is \(0.08(1.1185)=0.08948\) per year. The event-time density contribution is the hazard at 2.5 years times survival through 2.5 years:

$$ 0.08948\exp\{-0.08948(2.5)\} =0.08948\exp(-0.2237) \approx0.07154\text{ per year}. $$

Multiplying by the ordinal probability gives

$$ 0.2444(0.07154)\approx0.01749\text{ per year}. $$

This is a conditional likelihood contribution at the stipulated random effects, not the subject’s marginal likelihood. The marginal contribution would average this expression over the random-effects distribution, with the marker and event terms evaluated together for each value of \(b_i\).

Checking the Model and Comparing Alternatives

The model’s interpretation depends on its assumptions, so diagnostics should target both submodels and their connection. Useful checks include:

  • Ordinal fit: compare observed and fitted category frequencies across time or predictor ranges. Patterns of systematic misfit can indicate that a single cumulative-logit shift is inadequate.
  • Proportional odds: assess whether the predictor’s effect is plausibly common across cumulative cutpoints. Strongly different effects across cutpoints can undermine the shared-slope assumption.
  • Trajectory shape: inspect fitted category probabilities over time and look for systematic temporal patterns in residual or predictive checks. A spline that is too restrictive can miss curvature; one that is too flexible can produce unstable subject trajectories.
  • Survival fit: assess the baseline-hazard specification and whether the random-effects association adequately captures the intended dependence. A poorly fitting hazard or an overly restrictive linear association can distort \(\lambda\).
  • Computation: check optimizer convergence, sensitivity to starting values, and stability when numerical integration accuracy is increased. A convergence message alone does not establish that the likelihood has been accurately evaluated.

A main alternative is to fit a longitudinal ordinal model and a survival model separately. Separate fits can be simpler, but they do not use the event information to help estimate the shared latent trajectory and do not represent the dependence through common random effects. Another joint-model choice links the hazard to the current latent trajectory value \(\eta_i(t)\), rather than to selected random-effect components. That alternative answers a different modeling question; the shared-random-effects link used here directly associates event risk with subject-specific departures from the population trajectory.

The model also has limits. Its conclusions depend on the random-effects distribution, chosen spline basis, proportional-odds structure, and survival link. Sparse categories or few repeated observations can make cutpoints and random-effect variation difficult to estimate. A shared random effect does not automatically resolve unmeasured confounding or guarantee valid causal conclusions. The fitted model is a structured description of association under stated assumptions.

Common Pitfalls

  • Reversing the cumulative-logit sign. With \(\operatorname{logit}P(Y\leq k)=\alpha_k-\eta\), a larger \(\eta\) moves probability toward higher categories. Reversing the sign without changing interpretation reverses the direction of the model.
  • Using cumulative probabilities as category probabilities. The probability of category \(k\) is a difference of cumulative probabilities, not \(P(Y\leq k)\) itself.
  • Interpreting \(\lambda\) without its random effect. A hazard ratio for a one-unit random-effect difference is \(\exp(\lambda_r)\); \(\lambda_r\) alone is a log-hazard contrast, and its units depend on \(b_{ir}\).
  • Ignoring the latent-effect integral. A conditional likelihood at one chosen \(b_i\) is not the marginal likelihood. The latter integrates the joint marker-event contribution over the random-effects distribution.
Key takeaway: Specify ordered cutpoints and a clear sign convention for the ordinal trajectory, use the same subject-specific effects in the survival hazard, and integrate the combined conditional likelihood over those latent effects. Interpret the resulting associations only under the model’s assumptions.

Check Your Understanding

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

  1. For a three-category marker, suppose \(P(Y\leq1)=0.25\) and \(P(Y\leq2)=0.70\). What are the three category probabilities?
  2. In the hazard model, what is the hazard ratio for a one-unit increase in \(b_{ir}\), holding other terms fixed?
  3. Why does the marginal subject likelihood integrate the product of the marker and event contributions rather than treating the random effects as observed?
  4. Under the stated cumulative-logit sign convention, what happens to the probability of higher categories as \(\eta_i(t)\) increases?

Solutions. (1) The category probabilities are \(0.25\), \(0.70-0.25=0.45\), and \(1-0.70=0.30\). (2) The hazard ratio is \(\exp(\lambda_r)\). (3) The random effects are latent; the law of total probability requires averaging the conditional joint contribution over their distribution. (4) Higher categories become more probable because increasing \(\eta_i(t)\) lowers each cumulative probability \(P(Y\leq k)\).

Clinical Biostats