Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Cause-Specific Loadings on Shared Random Effects

Competing Risks and Recurrent Events · Tutorial 403 of 697

Cause-Specific Loadings on Shared Random Effects

Specify and interpret cause-specific hazard associations with a shared set of longitudinal random effects, including event-specific contrasts and key assumptions.

Advanced 11 min read

What You'll Learn

  • Write a cause-specific hazard model with common random effects and distinct cause-specific loading vectors.
  • Interpret a loading as a conditional log-hazard change per unit of a random effect.
  • Calculate and compare event-specific hazard multipliers for a hypothetical subject.
  • Test a contrast between two cause-specific loadings using its standard error.
  • Recognize assumptions, diagnostics, and limits of shared-random-effect specifications.

Why Use Cause-Specific Loadings?

A longitudinal biomarker may carry information about more than one possible event, but that information need not point in the same direction for every event type. For example, a latent tendency toward higher biomarker values could be associated with a higher hazard of one event and a lower hazard of another. A model that forces the same association for all causes cannot represent that pattern.

Cause-specific loadings provide one way to express these differences. The longitudinal model supplies a shared set of subject-level random effects, and each cause-specific hazard has its own coefficients multiplying those effects. “Shared” means that the same latent subject effects enter all cause-specific hazards; it does not mean that their coefficients must be equal.

Definition: Let \(b_i\) be the vector of subject \(i\)'s random effects in a longitudinal model. A cause-specific loading is a coefficient in the hazard predictor for a particular event cause that multiplies one component of \(b_i\). Collecting those coefficients for cause \(k\) gives a loading vector \(\alpha_k\). Different causes may have different loading vectors while using the same \(b_i\).

Model and Interpretation

Suppose subject \(i\) has longitudinal measurements \(Y_{ij}\) at times \(t_{ij}\), and let \(m_i(t)\) denote the latent trajectory for the marker. A general longitudinal submodel is

$$ 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 known design vectors, \(\beta\) is a vector of fixed effects, and \(b_i\) is a vector of subject-specific random effects. A common assumption is \(b_i\sim N(0,D)\), where \(D\) is a covariance matrix. The measurement errors \(\epsilon_{ij}\) are commonly assumed to have mean zero and to be independent across measurements conditional on the random effects and covariates, with a specified variance model.

Let \(T_i\) be the time to the first event and \(K_i\) its cause, taking values in \(1,\ldots,K\). A cause-specific hazard conditional on the random effects can be written

$$ h_{ik}(t\mid b_i) = h_{0k}(t)\exp\!\left\{W_i(t)^\top\gamma_k+\alpha_k^\top b_i\right\}, \qquad k=1,\ldots,K . $$

In this expression, \(h_{0k}(t)\) is the baseline hazard for cause \(k\), \(W_i(t)\) is a vector of covariates, \(\gamma_k\) is its cause-specific coefficient vector, and \(\alpha_k\) is the cause-specific loading vector. Given the random effects and covariates, the hazard for cause \(k\) describes the instantaneous rate of that cause among subjects who have not yet experienced any event.

The loading interpretation is conditional: holding the other random-effect components and the covariates fixed, a one-unit increase in component \(r\) of \(b_i\) multiplies the cause-\(k\) hazard by \(\exp(\alpha_{kr})\). A positive loading means a larger value of that latent component is associated with a higher cause-specific hazard, conditional on the model; a negative loading means a lower hazard. The units matter: random effects are defined on the scale of the longitudinal model, so a loading is not interpretable without knowing that scale.

Model assumptions: The longitudinal measurements and event process are linked through the specified shared random effects and included covariates. Conditional on those quantities, the event process follows the stated cause-specific hazards, and there is no remaining unmodeled dependence between the longitudinal and event processes. The random-effects distribution and baseline hazards are specified adequately. For likelihood-based inference, censoring must also be noninformative conditional on the information included in the model. These assumptions are substantive and cannot be guaranteed by fitting the model alone.

What the Cause-Specific Coefficients Allow

For a fixed subject and time, compare two hazard predictors that differ only in the random-effect vector, from \(b_i\) to \(b_i+\Delta b\). The cause-\(k\) hazard ratio is

$$ \frac{h_{ik}(t\mid b_i+\Delta b)} {h_{ik}(t\mid b_i)} = \exp(\alpha_k^\top\Delta b). $$

This follows by substituting each vector into the model: the baseline hazard and covariate term are identical in numerator and denominator, and cancel; the difference between the two random-effect terms is \(\alpha_k^\top\Delta b\). Thus the loading vector determines how a change in the latent subject effects shifts each cause-specific hazard. It does not, by itself, give an unconditional hazard ratio for a population in which random effects are unobserved.

A shared-loading model imposes \(\alpha_1=\cdots=\alpha_K\). It is more parsimonious and can be suitable when a common association is scientifically justified. Cause-specific loadings relax that constraint while retaining a shared latent trajectory. Using entirely separate random effects for each cause is a different and more extensive specification: it no longer makes the causes respond to the same latent subject-level effects in the stated way. The choice should reflect the scientific question and the information available, not merely a preference for more parameters.

Worked Example: Opposite Hazard Contributions Across Two Causes

Consider a hypothetical marker model with a random intercept and random slope, \(b_i=(b_{i0},b_{i1})^\top\). Suppose a particular subject has \(b_i=(0.40,-0.20)^\top\). Let the two cause-specific loading vectors be \(\alpha_1=(0.70,0.50)^\top\) and \(\alpha_2=(-0.30,0.80)^\top\). Calculate the random-effects contribution to each hazard relative to a subject with \(b_i=(0,0)^\top\), holding covariates and time fixed.

For cause 1, the log-hazard contribution is

$$ \alpha_1^\top b_i=(0.70)(0.40)+(0.50)(-0.20)=0.28-0.10=0.18. $$

Its hazard multiplier is \(\exp(0.18)=1.197\). Thus, under this model, the subject's random effects multiply the cause-1 hazard by about 1.20 relative to the zero-random-effects reference, with the other predictor terms held fixed.

For cause 2, the corresponding calculation is

$$ \alpha_2^\top b_i=(-0.30)(0.40)+(0.80)(-0.20)=-0.12-0.16=-0.28, \qquad \exp(-0.28)=0.756 . $$

The same random-effects vector therefore multiplies the cause-2 hazard by about 0.756 relative to its zero-random-effects reference. These are conditional hazard multipliers, not probabilities of experiencing either event. They show why separate loading vectors matter: the combined latent contribution can differ in direction across causes.

Comparing Loadings Across Causes

A cause-specific loading can be compared with the corresponding loading for another cause when both refer to the same random-effect component on the same scale. For example, \(\alpha_{1r}-\alpha_{2r}\) is a contrast in log-hazard change per one-unit increase in component \(r\). Its exponential is the ratio of the two cause-specific hazard ratios for that one-unit change, with other terms held fixed. Estimating each coefficient separately is not enough to test their difference: the covariance between the estimates is needed.

Worked Example: Testing a Difference Between Two Loadings

Suppose a hypothetical fitted model gives estimates for the random-intercept loadings of \(\hat\alpha_{10}=0.55\) with standard error \(0.20\), and \(\hat\alpha_{20}=-0.15\) with standard error \(0.25\). Suppose their estimated covariance is \(0.012\). Test \(H_0:\alpha_{10}-\alpha_{20}=0\) using a large-sample Wald calculation.

The estimated contrast is \(0.55-(-0.15)=0.70\). Its estimated variance includes the covariance term:

$$ SE^2 = 0.20^2+0.25^2-2(0.012) = 0.0400+0.0625-0.0240 = 0.0785, \qquad SE=\sqrt{0.0785}=0.2802 . $$

The Wald statistic is \(z=0.70/0.2802=2.498\). Under the null and the large-sample normal approximation, the two-sided p-value is about \(0.0125\). At significance level \(0.05\), this is evidence against equal random-intercept loadings. The estimated ratio of cause-specific hazard ratios for a one-unit random-intercept increase is \(\exp(0.70)=2.014\). A 95% Wald interval for the log contrast is \(0.70\pm1.96(0.2802)\), or \((0.151,1.249)\); exponentiating gives an interval of approximately \((1.163,3.487)\) for that ratio.

The result is conditional on the model and its large-sample approximation. It does not establish that changing the biomarker causes either event hazard to change. The covariance used here is essential: omitting it would give a different standard error and could change the test conclusion.

Assumptions, Diagnostics, and Limits

The model is useful only if its shared-effects structure is credible. The random effects must capture the relevant subject-level features linking repeated marker measurements to event risk. The assumed distribution of those effects, the longitudinal mean and error structure, and the baseline hazards must be reasonable enough for the intended inference. In particular, if the marker's latent variation is poorly estimated, the loadings can reflect misspecification in the longitudinal model rather than a stable association with event risk.

Practical checks include examining longitudinal residual patterns and whether the fitted model reproduces the spread and correlation of repeated measurements. For the event component, inspect cause-specific event counts and estimated uncertainty, and check whether conclusions are sensitive to plausible baseline-hazard and random-effects specifications. Convergence warnings, very large standard errors, estimates near numerical boundaries, or strong changes under modest specification changes are reasons to qualify interpretation and investigate further. A sparse event cause may provide little information for its loading vector, even when the longitudinal data are extensive.

A loading is conditional on the other random effects in its vector. If random intercept and slope are correlated, for instance, the coefficient of the intercept describes a change in that component while holding the slope component fixed. It is not automatically the effect of a typical subject whose intercept changes in a way that also changes the slope. Moreover, marginal hazards can change over time as the mix of surviving subjects changes; the conditional hazard ratio derived above should not be reported as a population-marginal hazard ratio.

The model describes an association within a specified joint distribution. It does not prove a causal effect of the biomarker, nor does a positive loading mean that most individuals experience the event. The competing event processes also remain distinct: a loading concerns one cause-specific hazard, not the probability of a particular event by a chosen time. Interpretation should therefore name the cause, random-effect component, scale, and conditional nature of the comparison.

A Common Modeling Pitfall

A frequent mistake is to interpret \(\alpha_{kr}\) as the effect of a one-unit increase in the observed biomarker at time \(t\). That is not what the coefficient means in this model: it multiplies the \(r\)th latent random effect, not necessarily the observed value or a particular summary of the trajectory. The correction is to state the coefficient on the random-effect scale and interpret its hazard ratio conditionally. The way to associate a hazard directly with a specified feature of the latent trajectory requires a different predictor specification.

Another error is to infer that two causes have different associations because one loading estimate is statistically significant and the other is not. Significance in one separate test and nonsignificance in another do not test whether the coefficients differ. Form the contrast, use its estimated covariance, and test or interval-estimate that contrast directly.

Key takeaway: Cause-specific loadings let a shared latent longitudinal random-effects vector relate differently to distinct event hazards. Interpret each coefficient per unit of its random-effect component, conditional on the other modeled terms, and compare causes with an explicit contrast rather than separate significance labels.

Check Your Understanding

Answer each question, then check the solutions below.

  1. If the loading for a random-effect component is \(-0.4\), what hazard ratio corresponds to a one-unit increase in that component?
  2. What does it mean for two causes to share random effects but have different loading vectors?
  3. For a contrast \(\hat\alpha_1-\hat\alpha_2\), why does its variance include a covariance term?
  4. Does a positive cause-specific loading imply that the marker causally increases the event risk? Explain.
  5. A model reports a cause-specific loading per one-unit increase in a random intercept. Name two pieces of information needed to interpret that estimate correctly.

Solutions. (1) The hazard ratio is \(\exp(-0.4)=0.6703\), conditional on the other predictor terms. (2) The same subject-specific latent components enter both cause-specific hazards, but each cause has its own coefficients multiplying them. (3) Because the variance of a difference is \(\operatorname{Var}(\hat\alpha_1)+\operatorname{Var}(\hat\alpha_2)-2\operatorname{Cov}(\hat\alpha_1,\hat\alpha_2)\); the estimates may be statistically dependent. (4) No. It indicates a conditional model-based association, not a causal effect. (5) The random intercept's scale and the event cause are essential; the interpretation should also identify the conditional nature of the hazard comparison.

Clinical Biostats