Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Random-Effects Covariance And Survival Association Confounding

Convergence and Identifiability · Tutorial 339 of 697

Random-Effects Covariance And Survival Association Confounding

You will learn to identify and assess compensation among random-effects variances, their covariance, and the survival association parameter.

Advanced 12 min read

What You'll Learn

  • Express how the random-intercept and random-slope covariance matrix determines variation in the shared longitudinal risk score.
  • Derive why changing the association parameter can compensate for changes in random-effects variation.
  • Read a profile likelihood that re-optimizes covariance parameters at each fixed association value.
  • Use valid, positive-definite covariance perturbations to examine parameter trade-offs.
  • Distinguish evidence of a trade-off from a numerical or model-fitting failure.

Why covariance and survival association can trade off

In a shared-random-effects joint model, the survival component uses information about a subject's latent longitudinal trajectory. The strength of that link is controlled by an association parameter, while the random-effects covariance determines how much subjects' trajectories vary. If the data provide limited information to distinguish these features, a stronger association acting on less variable trajectories can yield survival predictions similar to a weaker association acting on more variable trajectories. The covariance between a random intercept and random slope can further change the variation in the trajectory at the times that matter for survival.

The issue is not that these parameters are interchangeable in every model. The longitudinal observations also inform the random-effects distribution, and survival outcomes can carry information about the association. Rather, the likelihood may contain a direction in parameter space along which changes in covariance and association have only a modest effect on the fit. A useful diagnosis compares the parameters together, rather than interpreting a marginal standard error for the association in isolation.

Model and assumptions

For subject \(i\), suppose the longitudinal measurement at time \(t_{ij}\) follows a linear mixed model with a random intercept and slope:

$$ Y_i(t_{ij})=x_i(t_{ij})^\mathsf{T}\beta+b_{0i}+t_{ij}b_{1i}+\epsilon_{ij}, \qquad \begin{pmatrix}b_{0i}\\b_{1i}\end{pmatrix} \sim N\left( \begin{pmatrix}0\\0\end{pmatrix}, D \right), \qquad D= \begin{pmatrix} \sigma_{00}&\sigma_{01}\\ \sigma_{01}&\sigma_{11} \end{pmatrix}. $$

Here \(\sigma_{00}\) is the random-intercept variance, \(\sigma_{11}\) is the random-slope variance, and \(\sigma_{01}\) is their covariance. The longitudinal errors \(\epsilon_{ij}\) are commonly assumed conditionally independent with mean zero and variance \(\sigma_\epsilon^2\); other specified residual structures are possible. The covariance matrix must be positive semidefinite, so \(\sigma_{00}\geq0\), \(\sigma_{11}\geq0\), and \(\sigma_{00}\sigma_{11}-\sigma_{01}^2\geq0\).

For a current-value association model, let \(m_i(t)=x_i(t)^\mathsf{T}\beta+b_{0i}+tb_{1i}\) be the latent longitudinal mean and specify the conditional hazard as

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

The association parameter \(\alpha\) describes the change in log hazard per one-unit increase in the latent marker, conditional on the model and other covariates. Its units are inverse marker units. The baseline hazard is \(h_0(t)\), and \(w_i\) denotes survival covariates. This tutorial focuses on how \(\alpha\) and \(D\) can compensate for one another; it does not assume that a particular baseline-hazard specification resolves that issue.

The usual likelihood-based interpretation assumes the specified longitudinal and survival models are adequate, random effects are independent across subjects, and censoring is conditionally independent of the event process given the modeled information. The joint likelihood integrates over the random effects, combining longitudinal and survival contributions. In particular, the event likelihood is not evaluated as if each subject's random effects were observed without error.

Definition: Covariance-association confounding, in this setting, is a likelihood trade-off in which changes in one or more entries of \(D\) can be offset, at least partly, by changes in \(\alpha\). It is a property of the information in a specified model and data set, not a claim that the parameters are mathematically identical.

How the covariance changes survival-relevant variation

The random part of the latent marker at time \(t\) is \(b_{0i}+tb_{1i}\). Its variance follows directly from the covariance matrix. Writing the random-effects design vector as \(z(t)=(1,t)^\mathsf{T}\), the variance is \(z(t)^\mathsf{T}Dz(t)\):

$$ \operatorname{Var}\{b_{0i}+tb_{1i}\} = \begin{pmatrix}1&t\end{pmatrix} \begin{pmatrix}\sigma_{00}&\sigma_{01}\\\sigma_{01}&\sigma_{11}\end{pmatrix} \begin{pmatrix}1\\t\end{pmatrix} = \sigma_{00}+2t\sigma_{01}+t^2\sigma_{11}. $$

Multiplying the marker by \(\alpha\) gives the random part of its contribution to log hazard. Therefore,

$$ \operatorname{Var}\{\alpha(b_{0i}+tb_{1i})\} = \alpha^2\left(\sigma_{00}+2t\sigma_{01}+t^2\sigma_{11}\right). $$

This identity explains a potential trade-off: different values of \(\alpha\) and \(D\) can produce the same variance of the random contribution to log hazard at a particular time. It does not establish that their full joint likelihoods are equal. The longitudinal measurements inform \(D\), the covariance affects trajectories across all times, and the marginal survival likelihood depends on the full distribution of the random effects, not only on this variance at one time.

Worked Example: Comparing Log-Hazard Variation at a Fixed Time

Consider hypothetical marker units in which time is measured in years. Let \(D\) have \(\sigma_{00}=0.36\), \(\sigma_{01}=-0.06\), and \(\sigma_{11}=0.04\). At \(t=2\) years, let \(\alpha=0.80\) per marker unit. Calculate the random contribution's variance to log hazard at that time.

First check that the covariance matrix is admissible: its determinant is \(0.36(0.04)-(-0.06)^2=0.0108\), which is positive, and both variances are positive. The marker's random-effects variance at two years is

$$ 0.36+2(2)(-0.06)+2^2(0.04) =0.36-0.24+0.16 =0.28. $$

Thus the random contribution to log hazard has variance

$$ (0.80)^2(0.28)=0.1792. $$

Now consider a second hypothetical covariance matrix with \(\sigma_{00}=0.48\), \(\sigma_{01}=-0.06\), and \(\sigma_{11}=0.03143\), together with \(\alpha=0.70\) per marker unit. Its determinant is approximately \(0.48(0.03143)-0.06^2=0.01149>0\). At two years, its marker variance is \(0.48-0.24+4(0.03143)=0.36572\), so its log-hazard contribution variance is approximately \((0.70)^2(0.36572)=0.1792\). The two parameter settings match this one variance calculation, but need not fit the repeated measurements or survival times equally well.

Likelihood profiles: compare association values after accounting for covariance

A profile likelihood for \(\alpha\) fixes \(\alpha\) at a series of values and, at each value, maximizes the joint log likelihood over the remaining parameters, including the entries of \(D\). If \(\psi\) denotes all nuisance parameters, define

$$ \ell_{\mathrm{p}}(\alpha)=\max_{\psi:\,D\ \mathrm{admissible}}\ell(\alpha,\psi). $$

The maximization matters: evaluating the likelihood at fixed covariance values while changing only \(\alpha\) answers a different question. A profile that stays nearly level over a range of \(\alpha\), while the maximizing covariance parameters change systematically, is evidence that the likelihood permits a trade-off. The profile should be computed using the same joint likelihood and integration accuracy at each fixed value; otherwise numerical differences can masquerade as a substantive pattern.

Worked Example: Reading a Profile With Covariance Re-optimization

Suppose a hypothetical joint-model fit profiles \(\alpha\), measured per marker unit, and records the following optimized log likelihoods. The covariance entries shown are those at the profile maximum for each fixed \(\alpha\); all other parameters are re-optimized as well.

Fixed \(\alpha\)Maximizing \(\sigma_{00}\)Maximizing \(\sigma_{01}\)Maximizing \(\sigma_{11}\)Profile log likelihood
0.500.42-0.050.035-412.8
0.700.48-0.060.031-410.9
0.900.55-0.070.029-411.2

The largest listed log likelihood is \(-410.9\), at \(\alpha=0.70\). Comparing \(\alpha=0.90\) with this maximum gives the likelihood-ratio statistic \(2\{-410.9-(-411.2)\}=0.60\). This small difference says that the profiled fit at \(0.90\) is close in log likelihood to the best listed fit. The increasing intercept variance and changing slope covariance show that the nuisance covariance estimates adjust as \(\alpha\) changes. This pattern is consistent with a trade-off, but does not by itself show which value is scientifically preferable or establish that the full model is correctly specified.

For each row the covariance must also satisfy the positive-semidefinite constraint. For example, at \(\alpha=0.70\), the determinant is \(0.48(0.031)-(-0.06)^2=0.01128>0\). In an actual profile calculation, admissibility must be checked at every fixed value, not just the maximum of the profile.

Parameter perturbations as a complementary check

A profile explores the best fit available at each fixed association value. A parameter perturbation asks a related but distinct question: if a fitted parameter vector is moved in a chosen direction that changes \(\alpha\) and \(D\) together, how much does the likelihood change, and which parts of the data contribution change? Perturbations should be deliberate and constrained to admissible covariance matrices. They are diagnostic comparisons, not a substitute for optimizing the likelihood or calculating uncertainty.

One useful construction is to choose a reference time \(t^\star\), compute \(V(t^\star)=z(t^\star)^\mathsf{T}Dz(t^\star)\), and select a new \(\alpha\) and covariance matrix that approximately preserve \(\alpha^2V(t^\star)\). This makes the intended compensation explicit. It is important to also inspect the longitudinal contribution and the survival contribution separately: a match in the survival-relevant variance can still degrade the longitudinal fit or change risk variation at other times.

Worked Example: A Constrained Perturbation Around a Fitted Setting

Suppose a hypothetical fitted setting has \(\alpha=0.80\) per marker unit and \(V(2)=0.28\) marker-units squared, giving \(\alpha^2V(2)=0.1792\). The second admissible setting in the earlier calculation has \(\alpha=0.70\) and \(V(2)=0.36572\), so it gives essentially the same quantity: \(0.49(0.36572)=0.1792\). Assume, for illustration, that numerical evaluation of the joint likelihood gives \(-410.90\) at the fitted setting and \(-411.35\) at the perturbed setting.

The log-likelihood change is \(-411.35-(-410.90)=-0.45\), a decrease of \(0.45\) log-likelihood units. The perturbation preserves the specified risk-score variance at two years, yet it does not preserve the full likelihood. To diagnose why, compare the longitudinal and survival likelihood contributions at both settings and check whether the trajectories' variation differs at other times. A small total change would suggest that the data do not strongly distinguish these particular settings; it would not prove exact non-identifiability. A large change would show that matching this one variance is insufficient to explain the fit.

Derivation and practical diagnostic sequence

The trade-off calculation follows from the variance of a linear combination. For random effects \(b_i=(b_{0i},b_{1i})^\mathsf{T}\) with covariance \(D\), the random marker component is \(z(t)^\mathsf{T}b_i\). Its variance is

$$ \operatorname{Var}\{z(t)^\mathsf{T}b_i\} =z(t)^\mathsf{T}\operatorname{Var}(b_i)z(t) =z(t)^\mathsf{T}Dz(t). $$

Multiplication by the fixed scalar \(\alpha\) multiplies a variance by \(\alpha^2\), giving \(\alpha^2z(t)^\mathsf{T}Dz(t)\). Consequently, holding this quantity fixed at one time describes a possible local compensation direction. Since \(z(t)\) changes with time, a covariance change that compensates at \(t^\star\) will generally not compensate at every \(t\). This is one reason repeated longitudinal observations and event follow-up patterns can help separate the parameters.

1
Fit and verify the joint model.
Check that the fitted covariance matrix is admissible and that the likelihood calculation uses the specified joint model and adequate integration accuracy. A failed fit or inaccurate integration makes subsequent comparisons unreliable.
2
Profile the association parameter.
Fix \(\alpha\) over a meaningful range and re-optimize the covariance parameters and other nuisance parameters at each value. Record the log likelihood and the maximizing covariance estimates.
3
Inspect compensation, not just the profile height.
Look for systematic changes in \(\sigma_{00}\), \(\sigma_{01}\), or \(\sigma_{11}\) as \(\alpha\) varies. Check positive semidefiniteness at every point and compare the resulting marker variation over relevant times.
4
Use matched perturbations to clarify the mechanism.
Construct admissible nearby parameter settings that approximately match \(\alpha^2z(t^\star)^\mathsf{T}Dz(t^\star)\). Evaluate the joint likelihood and its longitudinal and survival contributions to see what distinguishes them.
5
Check numerical and modeling alternatives.
Repeat sensitive calculations with appropriate starts or numerical settings and confirm that apparent compensation is not an optimization artifact. Interpret the result within the assumed model rather than as evidence of causation.

Diagnostics, alternatives, and limitations

A profile that is nearly flat while covariance estimates move substantially is a direct warning that the data may not sharply determine \(\alpha\) separately from \(D\). A profile that is sharply peaked can provide stronger likelihood information about \(\alpha\) within the model, although it does not establish that the model assumptions hold. A narrow-looking profile should be viewed cautiously if it contains abrupt jumps, boundary solutions, or irregularities that change with numerical settings; those patterns can signal optimization or integration problems rather than genuine information.

The main alternative to profiling is to rely on a local approximation, such as a standard error from the inverse observed information or a Wald interval for \(\alpha\). Such summaries can be useful when the likelihood is well approximated locally by a quadratic and the covariance estimates are stable. They can be misleading when a curved trade-off makes the likelihood asymmetric or when covariance constraints affect the fitted region. A profile makes the re-optimization explicit, but it too depends on successful optimization and the adequacy of the chosen joint model.

Other useful comparisons include fixing \(D\) at a scientifically defensible value and refitting \(\alpha\), or comparing the estimated association under alternative covariance specifications. These analyses answer sensitivity questions, not the same question as an unconstrained profile: fixing \(D\) removes the covariance trade-off by assumption. Bayesian prior sensitivity is another relevant perspective; it describes how prior information and likelihood information combine, rather than replacing the likelihood diagnostic.

A common mistake is to conclude, “The same \(\alpha^2V(t^\star)\) means the two models are equivalent.” That reasoning only matches one variance at one time. The correction is to compare the complete joint likelihood, including the longitudinal measurements and the survival process across follow-up, and to verify that covariance constraints and numerical calculations are handled correctly. Another mistake is to treat an optimizer's changing covariance estimates as proof of confounding. The changes matter only in conjunction with a relatively small likelihood loss and reliable optimization.

These checks diagnose a parameter trade-off in the specified model; they do not determine whether the longitudinal association is causal, and they cannot identify which model component is wrong if the model is misspecified. A covariance structure may also be weakly informed because of the observed measurement schedule or the range of follow-up. The practical conclusion should therefore describe the profile and perturbation evidence, the assumptions under which it was obtained, and the degree to which estimates depend on those assumptions.

Key takeaway: Assess covariance-association confounding by jointly examining the profile likelihood for \(\alpha\), the covariance values that maximize it, and valid perturbations of the full parameter vector. Matching the random log-hazard variance is a useful explanation of a possible trade-off, not a proof that two parameter settings are equivalent.

Check Your Understanding

Answer each question using the model definitions and diagnostic reasoning above. Brief solutions follow the questions.

  1. At time \(t\), write the variance of the random part of the latent marker in terms of \(\sigma_{00}\), \(\sigma_{01}\), and \(\sigma_{11}\).
  2. If \(\alpha\) is reduced while \(\alpha^2z(t^\star)^\mathsf{T}Dz(t^\star)\) is held approximately constant, what does this show, and what does it not show?
  3. Why must the nuisance covariance parameters be re-optimized when constructing a profile likelihood for \(\alpha\)?
  4. A proposed covariance matrix has \(\sigma_{00}=0.25\), \(\sigma_{11}=0.16\), and \(\sigma_{01}=0.22\). Is it positive definite?

Solutions. (1) The variance is \(\sigma_{00}+2t\sigma_{01}+t^2\sigma_{11}\), obtained by expanding \(z(t)^\mathsf{T}Dz(t)\). (2) It shows how one survival-relevant variance can be matched by changing association and covariance; it does not show that the longitudinal fit or full joint likelihood is unchanged. (3) Profiling asks for the best fit available at each fixed \(\alpha\); holding nuisance parameters fixed does not perform that maximization and can exaggerate or conceal the trade-off. (4) The determinant is \(0.25(0.16)-(0.22)^2=0.04-0.0484=-0.0084<0\), so the matrix is not positive definite and is inadmissible as a nonsingular covariance matrix.

Clinical Biostats