Tutorials › Multi-Omics Data Integration › Joint Models Versus Time-Dependent Cox Models

Clinical Outcomes: Survival and Longitudinal Data · Tutorial 466 of 597

Joint Models Versus Time-Dependent Cox Models

Learn when a joint model’s latent trajectory is preferable to an observed time-updated covariate, and what assumptions each approach requires.

Advanced 13 min read

What You'll Learn

  • Distinguish a latent longitudinal trajectory from an observed time-dependent covariate.
  • State the main longitudinal, survival, and observation assumptions for each model.
  • Interpret association parameters and hazard ratios without treating them as causal effects.
  • Understand how measurement error can distort time-dependent Cox estimates.
  • Compare model likelihoods, diagnostics, and limitations for longitudinal omics data.
  • Recognize when observation patterns may require additional modeling.

Why Two Models Can Give Different Answers

Repeated omics measurements are noisy snapshots of biological processes that may change between visits. When the event risk depends on that evolving process, two common strategies are to put an observed, time-updated measurement into a Cox model or to model the longitudinal measurements and event time jointly. They do not simply offer two computational routes to the same quantity: they can use different representations of the marker and therefore estimate different associations.

A time-dependent Cox model relates the hazard to a specified observed covariate history. A shared-random-effects joint model instead represents a subject’s underlying marker trajectory as latent and links that trajectory to the hazard. The joint approach can account for measurement error and for the fact that the event process and marker measurements share subject-specific features, but its conclusions depend on stronger modeling assumptions. Neither approach automatically fixes a visit schedule that depends on unobserved or evolving health.

Definition: Let \(T_i\) be subject \(i\)’s event time, \(C_i\) their censoring time, and \(Y_{ij}\) the measured omics value at visit time \(t_{ij}\). The observed follow-up time is \(\tilde T_i=\min(T_i,C_i)\), with event indicator \(\delta_i=I(T_i\le C_i)\). A time-dependent Cox model uses a specified covariate history \(X_i(t)\) in \(h_i(t)=h_0(t)\exp\{\gamma^\top W_i+\beta X_i(t)\}\). A joint model specifies a latent trajectory \(m_i(t)\) for the repeated measurements and links the event hazard to that trajectory, for example \(h_i(t\mid b_i)=h_0(t)\exp\{\gamma^\top W_i+\alpha m_i(t)\}\).

Here \(h_0(t)\) is the baseline hazard, \(W_i\) denotes other covariates, and \(b_i\) denotes subject-specific random effects. In the joint model, \(\alpha\) is an association parameter: conditional on the model and other covariates, it describes how the hazard changes with the latent marker level. It is not, by itself, a causal effect of changing the marker.

What Each Model Assumes

The time-dependent Cox model requires a covariate history that is defined at each event time and uses only information available up to that time. Such a history is called predictable. A common implementation carries the most recent observed marker value forward until the next measurement. This is a choice about the covariate history, not a consequence of the Cox model. It assumes that this carried-forward value is an adequate representation of the risk-relevant exposure during the interval. The proportional-hazards assumption is also required: the covariate’s log hazard ratio is constant over time unless time-varying effects are explicitly included. Standard inference further relies on suitable censoring assumptions and correct risk sets.

A time-dependent Cox model can be useful when the scientific target concerns the association of risk with the recorded, operationally defined covariate history. But a marker measured with error is not the latent current biology. If measurement error is substantial, the observed value can misrepresent the risk-relevant trajectory; the resulting coefficient may be attenuated or otherwise biased. With time-varying error and irregular visits, the bias need not be simple attenuation.

A shared-random-effects joint model commonly specifies a longitudinal submodel such as \(Y_{ij}=m_i(t_{ij})+\epsilon_{ij}\), with \(m_i(t)=x_i(t)^\top\beta+z_i(t)^\top b_i\), \(b_i\sim N(0,D)\), and \(\epsilon_{ij}\sim N(0,\sigma^2)\). It links this latent trajectory to the event hazard, for example through \(\alpha m_i(t)\). Typical assumptions include a correctly specified trajectory and hazard form, an appropriate random-effects distribution, conditionally independent measurement errors given the random effects and covariates, and conditional independence of the longitudinal measurement errors and event time given the modeled random effects and covariates. Censoring must also be noninformative conditional on the variables in the model, or be modeled appropriately.

In this standard formulation, event-related cessation of measurements is handled through the joint event and longitudinal likelihood: subjects who experience an event stop contributing later measurements, and their event time contributes information about the latent trajectory. This does not mean every missing measurement or visit pattern is automatically ignorable. If visit timing itself responds to health status beyond what the model captures, the observation process may need explicit treatment. The later material on informative omics visit processes addresses that issue in detail.

Likelihood and the Source of the Difference

For a joint model, the random effects are unobserved. The subject-specific likelihood therefore averages over their possible values rather than substituting a single estimated trajectory as if it were known. Under the assumptions above, a typical contribution is

$$ L_i=\int \left\{\prod_{j:t_{ij}\le \tilde T_i} f(Y_{ij}\mid b_i)\right\} \left\{h_i(\tilde T_i\mid b_i)^{\delta_i} S_i(\tilde T_i\mid b_i)\right\} f(b_i)\,db_i . $$

Here \(f(Y_{ij}\mid b_i)\) is the longitudinal measurement density, \(S_i(t\mid b_i)\) is the conditional event-free survival probability, and \(f(b_i)\) is the random-effects density. The event term is the event density when \(\delta_i=1\), and the survival probability through the censoring time when \(\delta_i=0\). The integral combines the marker and event information while accounting for uncertainty about \(b_i\).

By contrast, a time-dependent Cox model uses the covariate value defined at each event time in a risk-set comparison. In schematic form, its partial likelihood is a product over observed events of the failing subject’s relative risk divided by the sum of relative risks among subjects still at risk. It does not, by itself, include a measurement model for a latent trajectory. Thus, replacing an observed value with a model-estimated trajectory is not merely a harmless preprocessing step: it changes how uncertainty and the marker history enter the analysis.

Justification: Conditional on \(b_i\), the joint model treats the longitudinal observations and event outcome as having specified distributions. Their conditional likelihoods multiply. Since \(b_i\) is not observed, the marginal contribution is obtained by averaging that product over its distribution: $$ L_i=\int L_i(b_i)f(b_i)\,db_i. $$ In general, this is not equal to the likelihood obtained by evaluating \(L_i(b_i)\) at a single fitted value of \(b_i\). The integral preserves uncertainty about the subject’s trajectory and its association with the event.

Worked Comparisons

Worked Example: Comparing Hazard Ratios on the Model’s Own Scale

Suppose, hypothetically, that a fitted time-dependent Cox model has coefficient \(\hat\beta=0.30\) per one-unit increase in the most recently measured marker. A fitted joint model has \(\hat\alpha=0.50\) per one-unit increase in the latent marker trajectory. Calculate and interpret both hazard ratios.

For the time-dependent Cox model, the hazard ratio for a one-unit higher recorded value is $$ \exp(\hat\beta)=\exp(0.30)=1.350. $$ Thus, under that model, a one-unit difference in the specified observed covariate history corresponds to an estimated hazard 1.350 times as large, conditional on the other covariates.

For the joint model, the corresponding latent-trajectory hazard ratio is $$ \exp(\hat\alpha)=\exp(0.50)=1.649. $$ Under the joint model, a one-unit higher latent marker level corresponds to an estimated hazard 1.649 times as large, conditional on the model and covariates.

These numbers are not a direct test of which estimate is correct. One coefficient is tied to an observed, time-updated value and the other to a latent trajectory; the models also rely on different assumptions. Both are associational, not causal, interpretations.

Worked Example: Why Carrying Forward a Noisy Measurement Can Matter

Consider hypothetical visits at days 0 and 30. The latent marker is 2.0 units at both visits, but measurement error produces observed values of 1.4 and 2.6 units. A time-dependent Cox model carries the day-0 value forward from day 0 to just before day 30. A joint model instead treats both readings as noisy measurements around a latent trajectory.

If the time-dependent Cox coefficient is \(0.40\) per observed unit, the relative hazard implied by the carried-forward day-0 value is \(\exp(0.40\times1.4)=\exp(0.56)=1.751\), relative to a marker value of zero. This calculation reflects the model’s observed-value scale; it does not show that 1.4 is the true marker throughout the interval.

For illustration, if a joint model estimated a latent level of 2.0 units over that interval and an association parameter of \(0.40\), its corresponding relative hazard would be \(\exp(0.40\times2.0)=\exp(0.80)=2.226\). The difference, \(2.226-1.751=0.475\) on this relative-hazard scale, arises from using different marker representations. The numbers are hypothetical and do not establish that the joint estimate is closer to truth; that depends on whether its measurement and trajectory assumptions are adequate.

Worked Example: A Visit-Weighted Summary Can Overrepresent Frequent Visitors

Suppose four hypothetical subjects have marker values of 1, 2, 3, and 4 units in a specified assessment window. Their observed visit counts in that window are 1, 1, 2, and 4, respectively; assume for illustration that subjects with higher values are also observed more frequently.

The equally weighted subject mean is $$ \frac{1+2+3+4}{4}=\frac{10}{4}=2.500\text{ units}. $$ The mean across all observed visits, counting repeated observations, is $$ \frac{1(1)+1(2)+2(3)+4(4)}{1+1+2+4} =\frac{25}{8}=3.125\text{ units}. $$ The difference is \(3.125-2.500=0.625\) units. This calculation illustrates how a visit-level summary can give more weight to frequently observed subjects. It does not prove that a particular Cox coefficient is biased by exactly 0.625 units. Rather, it warns that the observed measurement history may reflect both biology and the observation schedule. A standard joint model does not automatically remove this issue unless its assumptions about the visit process are appropriate.

Choosing, Checking, and Comparing the Approaches

QuestionTime-dependent Cox modelShared-random-effects joint model
What enters the hazard?A specified observed covariate history, such as the most recent valueA latent trajectory or another specified function of it
How is measurement error handled?Not inherently modeled; the observed history may be noisyModeled through the longitudinal submodel, if correctly specified
How are longitudinal data used?As covariate values in the risk setsThrough a longitudinal likelihood linked to event time
Main vulnerabilityCovariate-history choice, measurement error, and timing of measurementsTrajectory, random-effects, association, and conditional-independence assumptions
Typical practical advantageDirect interpretation for a defined observed covariate history; fewer distributional assumptions about the markerCan represent an underlying trajectory and connect marker and event information

Model choice should follow the scientific target. If the target is the association with the most recent assay result as used in practice, a time-dependent Cox model may be a natural starting point, provided the value history is defined without using future information. If the target concerns the association of event risk with an underlying evolving biological process, a joint model may be more aligned with that question. A joint model is not automatically superior: misspecifying the trajectory or random-effects distribution can produce misleading results, while the simpler Cox model may be more robust to those particular distributional assumptions.

Diagnostics should examine whether the longitudinal submodel describes marker patterns over time, whether residual variation and subject-specific trajectory patterns are plausible, and whether the survival model’s proportional-hazards form is adequate. Investigate whether visits cluster near clinical changes or are more frequent among subjects with worsening status. For a time-dependent Cox model, document exactly how measurements define \(X_i(t)\), check that it is predictable, and assess whether conclusions change under reasonable alternatives to carrying the last value forward. For either model, compare predictions on the same target population and information set; apparent performance differences can otherwise arise from different prediction times or available data.

The approaches can also be used as complementary sensitivity analyses, but their coefficients should not be treated as estimates of an identical parameter. Dynamic prediction from a joint model and prediction at a specified landmark answer prediction questions with different information sets; comparison should respect those definitions. Neither model removes confounding by unmeasured variables, establishes causation, nor guarantees transportability to a population with a different assay or visit schedule.

Common Pitfall

Common mistake: “The joint-model hazard ratio is larger, so the Cox model must have underestimated the true causal effect.” This does not follow. The models use different covariate representations, and the joint result depends on its trajectory, measurement-error, and shared-effects assumptions. Their coefficients may target different associations; neither is inherently causal. Compare the estimands and assumptions, assess fit and sensitivity, and describe the result as an association unless a separate causal design and assumptions justify causal language.

Check Your Understanding

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

  1. A time-dependent Cox model uses the most recent assay value carried forward between visits. What assumption does that make about the covariate history during each interval?
  2. A joint model has an estimated association parameter \(\hat\alpha=0.20\) per unit of latent marker. Calculate the hazard ratio for a two-unit higher latent level.
  3. Why does a shared-random-effects joint model integrate over random effects rather than simply insert each subject’s estimated random effect into the event model?
  4. Why can a visit-weighted mean differ from a subject-weighted mean when visit frequency depends on health?

Solutions. (1) It assumes the chosen carried-forward value adequately represents the covariate history until the next measurement; it does not establish that the unobserved marker truly remained constant. (2) The hazard ratio is \(\exp(0.20\times2)=\exp(0.40)=1.492\) for a two-unit increase, under the model and conditional on its covariates. (3) Random effects are latent and uncertain; integrating their likelihood contributions accounts for that uncertainty, whereas plug-in estimates treat them as known. (4) Frequent visitors contribute more observations, so they receive more weight in a visit-level average; if visit frequency is related to health or marker level, the average can overrepresent those subjects.

Clinical Biostats