Why Link Multiple Marker Trajectories Through Random Effects?
When several biomarkers are measured over time, each trajectory can vary from its population mean because of subject-specific characteristics. Those characteristics may also be related to event risk. A shared-random-effects model expresses this idea by letting the same latent subject-specific effects help generate the marker trajectories and enter the event hazard. The link is therefore between an event and selected features of the subject’s latent trajectories, not automatically between the event and each observed marker value at every time.
This distinction matters for interpretation and prediction. A marker observation can inform the event-time prediction only insofar as it updates the posterior distribution of the random-effects combination that appears in the hazard. Updating some other random effect is not enough.
Model and Assumptions
Let \(Y_{ik}(t_{ikj})\) denote measurement \(j\) of marker \(k\) for subject \(i\), taken at time \(t_{ikj}\). Let \(b_{ik}\) be the vector of subject-specific random effects for marker \(k\), and stack them as \(b_i=(b_{i1}^{T},\ldots,b_{iK}^{T})^{T}\). A usual multimarker longitudinal model is
Here \(X_{ik}\) and \(Z_{ik}\) are known design vectors, \(\beta_k\) is a marker-specific fixed-effects vector, and \(\epsilon_{ik}\) is measurement error. The stacked random effects are commonly modeled as \(b_i\sim N(0,D)\), where \(D\) allows random effects for different markers to be correlated. The longitudinal model may also include an appropriate within-visit residual covariance across markers.
Let \(T_i^*\) be the event time, \(C_i\) the censoring time, \(T_i=\min(T_i^*,C_i)\), and \(\delta_i=I(T_i^*\le C_i)\), where \(\delta_i=1\) indicates an observed event. Let \(w_i\) be a vector of survival covariates. A shared-random-effects hazard is
The hazard is conditional on \(b_i\) and \(w_i\). Holding these quantities fixed, a one-unit increase in component \(b_{ir}\) changes the hazard by a factor of \(\exp(\alpha_r)\), with the other random-effect components held fixed. The unit is the unit of that random effect, which may not be the unit of an observed marker measurement. Thus \(\alpha_r\) is not automatically a hazard ratio per one-unit increase in a measured marker.
The model relies on several substantive assumptions. The random-effects distribution and the marker mean and covariance models must describe the longitudinal data adequately. Conditional on the random effects and modeled covariates, the event process is specified by the stated hazard; marker errors and the event process are taken to be conditionally independent in the joint model. Censoring must be noninformative conditional on the modeled quantities, or its mechanism must be modeled. Finally, the chosen hazard form assumes a proportional-hazards relationship conditional on \(b_i\), even though the marginal hazard after averaging over random effects need not be proportional.
From Conditional Hazard to Joint Contribution
Write \(H_0(t)=\int_0^t h_0(u)\,du\). Conditional on \(b_i\) and \(w_i\), the cumulative hazard and survival function are
For an observed event, the conditional time-to-event likelihood contribution is the hazard at \(T_i\) multiplied by survival through \(T_i\). For right censoring, it is survival through \(T_i\). Both cases are represented by
If \(Y_i\) denotes all of subject \(i\)’s marker observations and \(f_Y(Y_i\mid b_i)\) is their conditional likelihood under the multimarker model, the subject-level contribution after integrating out the unobserved random effects is
Here \(\phi(b_i;0,D)\) is the multivariate normal density. The integration is essential: the random effects are latent, not observed covariates to be substituted with known values. The marker data and event information both contribute information about \(b_i\), while the population parameters are estimated across subjects.
Worked Example: Two Marker Effects in the Hazard
Suppose two markers have random intercepts \(b_{i1}\) and \(b_{i2}\), measured in their respective marker units. The hazard model is \(h_i(t\mid b_i)=h_0(t)\exp(0.5b_{i1}-0.25b_{i2})\), with no additional survival covariates. For a hypothetical subject with \(b_{i1}=0.4\) and \(b_{i2}=-0.2\), find the conditional hazard relative to a subject with both random effects equal to zero.
The relevant linear combination is
The hazard ratio relative to \(b_i=(0,0)\), at the same time and with the same baseline hazard, is therefore
Conditional on these random effects, the subject’s instantaneous hazard is 1.284 times the hazard for the zero-random-effects profile. This is a comparison of latent profiles, not a claim that increasing either observed marker by one unit has this effect. The calculation assumes the stated hazard specification; assessing whether it is suitable requires checking the longitudinal and survival model assumptions as well.
How Shared Effects Create Dependence
The dependence can be seen directly from the conditional survival function. Given \(b_i\), the longitudinal measurements and event time are modeled through their respective conditional distributions. Marginally, however, both depend on the distribution of \(b_i\). Information from a marker observation can therefore change the event-time prediction when it changes the distribution of \(\alpha^{T}b_i\).
A short Gaussian calculation makes the qualification precise. Suppose \(b_{i1}\) and \(b_{i2}\) are independent \(N(0,1)\), a marker observation is \(Y=b_{i1}+\epsilon\), and \(\epsilon\sim N(0,1)\) is independent of the random effects. Suppose the hazard depends on \(\eta=b_{i1}+b_{i2}\). Normal conditioning gives
Because \(b_{i2}\) is independent of \(Y\), its conditional mean and variance remain 0 and 1. Hence
The marker observation changes the distribution of the hazard-relevant combination \(\eta\), so it changes the event-time prediction. In contrast, if the hazard depended only on \(b_{i2}\), the same marker observation would leave that hazard-relevant effect’s distribution unchanged. A nonzero association vector by itself is not enough: the marker data must update the particular combination selected by that vector.
Worked Example: Checking Whether Marker Data Update Predicted Risk
Continue with the hypothetical model above and suppose the baseline hazard is constant at \(0.1\) per year. Before any marker is observed, \(\eta=b_{i1}+b_{i2}\sim N(0,2)\). For an initial predictive hazard, averaging the conditional hazard over this distribution gives
Now suppose the hypothetical marker observation is \(Y=1\). The calculation above gives \(\eta\mid Y=1\sim N(0.5,1.5)\), so the updated initial predictive hazard is
The observation changes the predictive hazard because it changes the distribution of \(\eta\). These are averages of the conditional instantaneous hazard before using event-free follow-up information; they are not hazards conditional on surviving to a later time. Survival to a later time would itself update the random-effects distribution.
For the contrast, suppose instead the hazard depends only on \(b_{i2}\), so \(\alpha=(0,1)^T\). The marker \(Y=b_{i1}+\epsilon\) does not update \(b_{i2}\), because \(b_{i1}\), \(b_{i2}\), and \(\epsilon\) are independent. The predictive hazard remains \(0.1\exp(1/2)=0.1649\) per year, both before and after observing \(Y=1\). Thus, a marker measurement need not change predicted event risk even when the hazard includes a nonzero random-effects coefficient.
A Conditional Likelihood Calculation
Worked Example: Event and Censoring Contributions
Consider a hypothetical subject with \(b_{i1}=0.2\) and \(b_{i2}=-0.5\), a constant baseline hazard \(h_0(t)=0.1\) per year, and \(\alpha=(1,0.5)^T\). Assume \(\gamma^{T}w_i=0\). Calculate the conditional contribution at time \(T_i=2\) years for (a) an event at two years and (b) censoring at two years.
The hazard multiplier is determined by
Thus the hazard at two years is \(0.1(0.9512)=0.09512\) per year. Since the baseline hazard is constant, \(H_0(2)=0.1(2)=0.2\), and the conditional survival probability through two years is
(a) For an event, \(\delta_i=1\), so the contribution is hazard times survival:
(b) For right censoring, \(\delta_i=0\), so the contribution is survival alone, \(L_{Ti}(b_i)=0.8268\). These are conditional contributions at the specified random effects. The model likelihood contribution for the subject would additionally combine the marker likelihood and integrate over the random-effects distribution.
Interpretation, Diagnostics, and Alternatives
The shared-effects link is useful when latent subject characteristics plausibly influence both marker trajectories and event risk. It provides a coherent way to combine multiple noisy, unequally observed trajectories with event or censoring information, while accounting for uncertainty about the latent effects. It also clarifies what the association parameters mean: they describe how the conditional hazard varies with the specified random-effects combination.
The model does not establish that a marker causes an event. A random effect can capture unmeasured subject heterogeneity, and its association with the hazard is conditional on the model and covariates. Nor does this formulation automatically imply that every marker is informative for survival. A marker whose random effects are unrelated to \(\alpha^{T}b_i\) may contribute little or no information to event prediction.
Useful checks include assessing whether the fitted longitudinal model reproduces marker means, variability, and cross-marker covariance; checking whether the hazard-relevant random-effects combination is estimable with the observed follow-up; and examining sensitivity to plausible random-effects and baseline-hazard specifications. Simulation-based parameter recovery and stability checks are particularly relevant when the association parameters are weakly identified. Poor convergence, large uncertainty, or strong sensitivity to the covariance structure can signal that the data do not distinguish the survival association from random-effects variation well.
Compared with fitting separate longitudinal and survival models, the shared-effects approach explicitly represents dependence through latent subject effects and propagates their uncertainty into the joint likelihood. Separate models do not generally make this connection. A different class of joint models links the hazard to a time-varying marker value rather than directly to random effects. That is a different scientific specification: the shared-effects model described here associates event risk with latent trajectory features selected by \(\alpha\), not necessarily with the marker’s current value.
A common mistake is to argue that any nonzero \(\alpha\) guarantees that marker observations change event-time predictions. That conclusion ignores which random effects the measurements update. For example, if \(b_{i1}\) and \(b_{i2}\) are independent, marker data inform only \(b_{i1}\), and \(\alpha=(0,1)^T\), then the hazard depends on \(b_{i2}\) alone. The marker data do not update the distribution of \(\alpha^{T}b_i=b_{i2}\), and therefore do not change the event-time prediction through this link. The correct question is whether the marker data update the hazard-relevant combination.
Check Your Understanding
Answer each question by identifying the relevant model quantity. Brief solutions follow.
- If the hazard contains \(\alpha^{T}b_i\), what does \(\exp(\alpha_r)\) represent, holding all other random effects and covariates fixed?
- Suppose the marker data update \(b_{i1}\), but the hazard depends only on an independent \(b_{i2}\). Do those marker data update predicted risk through the shared-effects link? Why?
- For a censored subject, what is the conditional time-to-event contribution at \(T_i\), given \(b_i\)?
- Why is the marginal likelihood contribution integrated over \(b_i\), rather than evaluated at a single estimated random effect?
- Does a shared-random-effects association establish that a marker causes the event?
Solutions. (1) It is the conditional hazard ratio for a one-unit increase in \(b_{ir}\), with other terms fixed; its unit is the unit of that random effect. (2) No. Independence means the marker data do not update the hazard-relevant \(b_{i2}\), so they do not change risk through this link. (3) It is \(S_i(T_i\mid b_i)\), since no event was observed by the censoring time. (4) The random effects are latent and uncertain; integration averages the conditional marker and survival contributions over their modeled distribution. (5) No. It is a conditional association under the specified model, not a causal conclusion.