Tutorials › Multi-Omics Data Integration › Shared-Random-Effects Joint Models in Multi-Omics Integration

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

Shared-Random-Effects Joint Models in Multi-Omics Integration

Learn to connect a longitudinal omics trajectory to survival risk through shared subject-specific random effects, and understand the assumptions and diagnostics behind that model.

Advanced 9 min read

What You'll Learn

  • Write a mixed model for a longitudinal omics measurement and a conditional event hazard that share random effects.
  • Distinguish the latent trajectory from its noisy assay measurements.
  • Derive when a biomarker measurement and the event-risk predictor are associated under the shared-effects model.
  • Calculate trajectory values and conditional hazard multipliers from specified random effects.
  • Identify the assumptions, diagnostics, and limitations of a shared-random-effects model.

Why Share Random Effects?

A longitudinal omics assay is a noisy measurement of a subject’s evolving biological state. That state may also be related to the subject’s event risk. If a subject’s underlying omics trajectory is associated with event timing, the observed assay history is not simply an external covariate: it is a noisy and incomplete indication of a latent subject-specific process. Treating each observed value as error-free can therefore give a misleading picture of how the trajectory and event risk are connected.

A shared-random-effects joint model represents the trajectory and event process together by giving them common subject-specific random effects. The longitudinal measurements inform those latent effects, and the event hazard also depends on them. This provides a principled way to connect a measured trajectory to event risk without substituting a noisy assay value directly into the hazard.

Definition: A shared-random-effects joint model specifies a longitudinal measurement model and an event-time model that both depend on the same subject-specific random-effects vector. Conditional on that vector and included covariates, the longitudinal measurement errors and event process are usually assumed independent. The shared effects induce dependence between the two outcomes before conditioning on them.

Model Specification

For subject \(i\), let \(Y_{ij}\) be an omics measurement at time \(t_{ij}\), such as a normalized log-expression value. A linear mixed model represents the measurement as a latent trajectory plus assay error:

$$ Y_{ij}=m_i(t_{ij})+\epsilon_{ij}, \qquad m_i(t)=X_i(t)^\top\beta+Z_i(t)^\top b_i. $$

Here \(X_i(t)\) and \(Z_i(t)\) are specified covariate vectors, \(\beta\) is a vector of population-level trajectory coefficients, and \(b_i\) is the subject-specific random-effects vector. For example, \(b_i\) may contain a random intercept and random slope. A common starting assumption is \(b_i\sim N(0,D)\) and independent measurement errors \(\epsilon_{ij}\sim N(0,\sigma^2)\), independent of \(b_i\). The model also assumes the chosen mean trajectory and error structure adequately describe the repeated measurements.

Let \(T_i\) be the event time, \(C_i\) the censoring time, \(\tilde T_i=\min(T_i,C_i)\) the observed time, and \(\delta_i=I(T_i\le C_i)\) the event indicator. A shared-effects hazard model can be written as

$$ h_i(t\mid b_i,W_i)=h_0(t)\exp\{W_i^\top\gamma+\alpha^\top b_i\}. $$

In this expression, \(h_0(t)\) is the baseline hazard, \(W_i\) contains specified covariates, and \(\gamma\) is their coefficient vector. The vector \(\alpha\) connects the random effects to the conditional hazard. Given \(b_i\) and \(W_i\), the hazard is the instantaneous event rate at time \(t\), among subjects still event-free just before \(t\). It is not a probability of an event at exactly \(t\).

The two models share \(b_i\), not the assay error \(\epsilon_{ij}\). Thus the event model uses the latent subject-specific trajectory features represented by the random effects, rather than treating a single noisy observation as the subject’s true biological state. A current-value version can instead put \(m_i(t)\) in the hazard exponent. Since \(m_i(t)\) is a function of the same \(b_i\), this also links the outcomes through shared random effects, but it imposes a particular time-varying form of that link. The model here focuses on the more general \(\alpha^\top b_i\) formulation.

Worked Example: From a Random Intercept and Slope to a Hazard

Suppose a hypothetical assay is on a normalized log scale and the longitudinal model is \(m_i(t)=2.0+0.30t+b_{0i}+b_{1i}t\), where time is measured in years. For one hypothetical subject, let \(b_{0i}=0.40\) and \(b_{1i}=-0.10\). Suppose the hazard model has \(W_i^\top\gamma=0.20\) and \(\alpha^\top b_i=0.5b_{0i}+1.0b_{1i}\). Calculate the trajectory at year 2 and the subject’s hazard multiplier relative to \(h_0(t)\).

The trajectory at year 2 is

$$ m_i(2)=2.0+(0.30)(2)+0.40+(-0.10)(2) =2.0+0.60+0.40-0.20=2.80. $$

The random-effects contribution to the log hazard is \(0.5(0.40)+1.0(-0.10)=0.20-0.10=0.10\). Including the covariate contribution, the hazard multiplier is

$$ \exp(0.20+0.10)=\exp(0.30)=1.350. $$

Under this specified model, the subject’s conditional hazard at a given time is 1.350 times the baseline hazard, holding the included covariates and random effects fixed. This calculation does not establish that the omics trajectory causes the event.

Why the Shared Structure Addresses Endogeneity

The term endogenous biomarker history refers here to an observed longitudinal predictor whose values are related to the event process through subject-specific latent characteristics. Subjects with different underlying trajectories may have different event risks. In addition, measurements are noisy, and later values are observed only while a subject remains under observation and, in many studies, event-free. Directly using the observed history as if it were a complete, error-free external covariate ignores these features.

A simple derivation shows how shared effects create dependence. Fix a measurement time \(t\) and condition on the covariates. Write \(Y_i(t)=X_i(t)^\top\beta+Z_i(t)^\top b_i+\epsilon_i(t)\), and let the random-effects part of the log hazard be \(L_i=\alpha^\top b_i\). Under the stated model, the fixed terms do not vary across subjects after conditioning, and the measurement error is independent of \(b_i\). Therefore,

$$ \operatorname{Cov}\{Y_i(t),L_i\mid X_i(t),W_i\} =\operatorname{Cov}\{Z_i(t)^\top b_i+\epsilon_i(t),\alpha^\top b_i\} =Z_i(t)^\top D\alpha. $$

The final equality follows because \(\operatorname{Cov}(b_i)=D\) and \(\operatorname{Cov}(\epsilon_i(t),b_i)=0\). Unless this covariance is zero, a measurement and the log-hazard contribution are associated through the shared random effects. This is a model-based dependence result; it does not by itself imply a causal effect of the biomarker.

Worked Example: Checking the Induced Association

Consider a hypothetical random-intercept model with \(Z_i(t)=1\), random-intercept variance \(D=0.25\), and log-hazard contribution \(L_i=1.2b_i\). Assume assay error is independent of the random intercept. Calculate the covariance between a measurement and \(L_i\).

Here \(Z_i(t)=1\) and \(\alpha=1.2\), so

$$ \operatorname{Cov}\{Y_i(t),L_i\} =Z_i(t)D\alpha=(1)(0.25)(1.2)=0.300. $$

The covariance is positive on the stated measurement and log-hazard scales. The shared random intercept therefore makes higher measurements tend to accompany a higher random-effects contribution to log hazard in this model. The calculation does not quantify a causal effect, and it depends on the assumed random-effects and measurement-error structure.

Assumptions, Estimation Context, and Diagnostics

The model’s interpretation depends on assumptions about both outcome processes and their connection. In particular, the model assumes a suitable trajectory form, a suitable distribution for \(b_i\), and a suitable hazard structure. It also assumes that, conditional on the shared effects and included covariates, the longitudinal measurement errors do not carry additional information about event risk. Censoring must be noninformative under the analysis: conditional on modeled information, the censoring mechanism must not selectively conceal event times in a way that changes the event-process inference. The observation schedule is typically treated as fixed by design or otherwise ignorable for the modeled outcomes.

These assumptions should be considered before interpreting fitted results. Useful checks include comparing observed longitudinal patterns with fitted trajectories, examining residuals for systematic time trends or changing spread, and checking whether the random-effects distribution is a plausible representation of subject-level variation. For the event component, assess whether the chosen hazard structure is adequate; for example, a proportional-hazards specification requires the modeled covariate effects to operate as constant multipliers over time. Sensitivity analyses can compare plausible random-effects structures and trajectory forms.

Warning signs include residual patterns that vary with time, poor fit for subjects with extreme trajectories, implausible random-effects estimates, or event-risk patterns that the specified hazard cannot represent. A weakly supported random-effects structure can also make estimates unstable. Such findings motivate revisiting the model specification; they do not justify interpreting the shared-effects link as causal.

Worked Example: Accounting for Measurement Error in a Single Assay

Suppose, hypothetically, that a subject’s latent normalized measurement at one time is \(1+b_i\), where \(b_i\sim N(0,0.25)\), and the observed assay is \(Y_i=1+b_i+\epsilon_i\), with \(\epsilon_i\sim N(0,0.36)\) independent of \(b_i\). The random-effects contribution to log hazard is \(1.2b_i\). If the observed assay is \(Y_i=2.0\), calculate the posterior mean of \(b_i\) using this one measurement alone, then the corresponding hazard multiplier based on that mean.

For this normal model, the conditional mean of \(b_i\) given \(Y_i\) is the prior variance divided by the total variance, multiplied by the centered observation:

$$ E(b_i\mid Y_i=2.0) =\frac{0.25}{0.25+0.36}(2.0-1.0) =\frac{0.25}{0.61}(1.0)=0.4098. $$

Using this posterior mean, the random-effects hazard multiplier is

$$ \exp\{1.2(0.4098)\}=\exp(0.4918)=1.635. $$

For comparison, treating the centered observed value \(2.0-1.0=1.0\) as if it were the true random effect would give \(\exp(1.2)=3.320\). That plug-in calculation ignores measurement error. The value 1.635 is only an illustration based on one measurement and the specified normal model; in a joint analysis, information from event and longitudinal data also contributes to uncertainty about the shared effects.

How This Model Differs From Alternatives

ApproachWhat it usesMain distinction
Shared-random-effects joint modelLatent subject-specific effects in both outcome modelsRepresents dependence between the trajectory and event process through shared latent effects.
Time-dependent Cox model using observed assaysRecorded assay values as time-updated covariatesCan be useful when the covariate is adequately measured and the observation process is appropriate; direct substitution does not itself account for latent trajectory measurement error.
Separate longitudinal and survival analysesA trajectory analysis and an event analysis fitted separatelyDoes not, by itself, represent the dependence induced by common subject-specific effects.

The shared-effects approach is most useful when the scientific model plausibly has subject-level trajectory features connected to risk, and repeated measurements are noisy. It is not automatically preferable in every setting. It relies on distributional and structural assumptions, may be sensitive to misspecification, and can be computationally demanding. If event risk depends on aspects of the trajectory not represented by the selected random effects, the model may not capture the relevant connection. Likewise, it does not resolve confounding or turn an association into a causal effect.

Key takeaway: A shared-random-effects model links a latent longitudinal omics trajectory to event risk by letting both depend on the same subject-specific effects. Its benefit is a coherent representation of measurement error and dependence; its credibility depends on the trajectory, random-effects, hazard, and censoring assumptions.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. In a shared-random-effects model, which component is shared: the assay error or the subject-specific random effects?
  2. If \(Z_i(t)=1\), \(D=0.40\), and \(\alpha=0.50\), what is the induced covariance between a measurement and the random-effects contribution to log hazard?
  3. Why is an observed assay value not necessarily an error-free time-dependent predictor?
  4. Name one assumption that is needed for the conditional independence interpretation of the model.
  5. Does a positive shared-effects association establish that changing the biomarker would change event risk? Why or why not?

Solutions. (1) The subject-specific random effects are shared; assay errors are not. (2) The covariance is \(Z_i(t)D\alpha=(1)(0.40)(0.50)=0.200\). (3) It contains measurement error and is an imperfect observation of a latent trajectory; its availability may also be limited to times before the event. (4) For example, conditional on the shared effects and covariates, measurement errors must carry no additional information about event risk. (5) No. The association is conditional and model-based; confounding and other assumptions prevent interpreting it as a causal effect without further justification.

Clinical Biostats