Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Identifying Marker Effects Separately From Covariance

Multiple Longitudinal Markers · Tutorial 385 of 697

Identifying Marker Effects Separately From Covariance

Learn how covariance and marker-to-hazard association parameters enter different parts of a two-marker joint likelihood, and what data and assumptions are needed to distinguish them.

Advanced 12 min read

What You'll Learn

  • Distinguish residual covariance, random-effects covariance, and hazard-association parameters.
  • Factor a two-marker joint likelihood conditional on the random effects.
  • Understand how repeated measurements separate within-person and between-person covariance.
  • Calculate conditional hazards, event contributions, and marker-contrast hazard ratios.
  • Recognize when the parameters are distinguishable and what diagnostics can reveal problems.

Why Separate Covariance From Hazard Association?

When two longitudinal markers are correlated, that correlation does not by itself tell us whether either marker is associated with the event time. Correlation describes how measurements vary together; a hazard-association parameter describes how a marker’s latent value relates to the event hazard, conditional on the model’s other terms. A joint model contains both kinds of quantities, and it is important to know which data components inform each one.

We use a simplified two-marker random-intercept model. It makes the distinction visible without requiring a complicated trajectory specification. The same likelihood logic applies when the longitudinal mean trajectories include time trends or when the hazard uses marker slopes or other functions of the latent trajectories.

Definition: For person \(i\) at visit \(j\), let \(Y_{ij}=(Y_{ij1},Y_{ij2})^\mathsf{T}\) be the two observed markers. Write \(Y_{ij}=\mu_{ij}+b_i+\epsilon_{ij}\), where \(\mu_{ij}\) is the modeled mean vector, \(b_i=(b_{i1},b_{i2})^\mathsf{T}\sim N_2(0,D)\) is the person-specific random-intercept vector, and \(\epsilon_{ij}\sim N_2(0,R)\) is the within-visit residual vector. Assume the random effects are independent across people, the residuals are independent across visits and people, and the residuals are independent of the random effects. The covariance matrices \(D\) and \(R\) are positive definite. Conditional on \(b_i\), the latent marker values are \(m_i(t)=\mu_i(t)+b_i\). The event hazard is \(\lambda_i(t\mid b_i)=\lambda_0(t)\exp\{\alpha_1m_{i1}(t)+\alpha_2m_{i2}(t)\}\), with baseline hazard \(\lambda_0(t)\) and marker-association parameters \(\alpha_1,\alpha_2\).

The entries of \(D\) describe between-person variation in the random intercepts, including how the two markers’ person-specific deviations co-vary. The entries of \(R\) describe residual variation and covariance between the two measurements taken at a visit, after accounting for the modeled means and random intercepts. The parameters \(\alpha_1,\alpha_2\) describe conditional associations between the latent markers and the hazard. For example, \(\alpha_1\) is the change in log hazard per one-unit increase in marker 1 when marker 2 and the other model terms are held fixed.

Where the Parameters Enter the Likelihood

Let \(T_i\) be the observed follow-up time and \(\delta_i\) indicate whether the event was observed (\(\delta_i=1\)) or the observation was right-censored (\(\delta_i=0\)). Conditional on \(b_i\), the longitudinal measurements and event outcome contribute separate factors. Under independent censoring, the person’s likelihood contribution, after integrating over the unobserved random effects, is

$$ L_i=\int \phi_2(b_i;0,D) \left\{\prod_j \phi_2(Y_{ij};\mu_{ij}+b_i,R)\right\} \lambda_i(T_i\mid b_i)^{\delta_i} \exp\left\{-\int_0^{T_i}\lambda_i(s\mid b_i)\,ds\right\}\,db_i. $$

Here \(\phi_2(\,\cdot\,;a,V)\) denotes a bivariate normal density with mean \(a\) and covariance matrix \(V\). The integral is necessary because the person-specific random effects are not observed. The event factor includes both an event-time density contribution when \(\delta_i=1\) and a survival contribution through \(T_i\) for every person.

Before integration, the roles of the parameters are especially clear. The conditional longitudinal measurement density contains \(R\), but not \(D\); the random-effects density contains \(D\); and the conditional event factor contains \(\alpha_1,\alpha_2\) through the hazard. After integration, these components are linked: the longitudinal measurements help determine plausible random effects, and those random effects enter the conditional hazard. Thus, although \(R\) has no direct term in the conditional event factor, it can affect estimates of the association parameters by affecting how the latent marker values are inferred from the measurements. The marginal longitudinal likelihood, which integrates the measurement density over \(b_i\), can inform both \(R\) and \(D\).

Key distinction: \(R\) governs within-visit residual covariance, \(D\) governs the random-effects distribution, and \(\alpha_1,\alpha_2\) govern the conditional marker associations with the hazard. The full integrated likelihood connects these components, but it does not make their meanings interchangeable.

Why Repeated Measurements Help Separate Covariances

The random-intercept model gives a direct covariance argument. For different visits \(j\ne k\), the shared random intercept contributes covariance across visits, while the independent residuals do not. At a single visit, both sources contribute.

$$ \operatorname{Cov}(Y_{ij})=D+R,\qquad \operatorname{Cov}(Y_{ij},Y_{ik})=D\quad (j\ne k). $$

For example, the covariance between the two markers at the same visit contains the between-person covariance \(D_{12}\) plus the within-visit residual covariance \(R_{12}\). The cross-visit covariance between marker 1 at one visit and marker 2 at another is \(D_{12}\) under the stated assumptions. Comparing same-visit and cross-visit patterns can therefore separate the two sources. This distinction relies on the model assumptions: correlated residuals across visits, time-varying random effects, or misspecified mean trajectories would change the covariance relationships.

A related separation concerns \(D\) and the hazard associations. The longitudinal data inform the distribution of latent marker values through the random-effects model; the event data inform how those latent values relate to event risk. For the association parameters to be distinguished, there must be usable variation in the latent marker values and event follow-up that provides information about the hazard. A flexible baseline hazard, limited follow-up, or little variation in a marker can make the data less informative about an association. Repeated measurements help estimate latent values, but they do not guarantee that every hazard association is precisely determined.

Worked Example: Separating Same-Visit and Cross-Visit Covariance

Suppose a hypothetical two-marker random-intercept model has \(D=\begin{pmatrix}0.64&0.24\\0.24&0.36\end{pmatrix}\) and \(R=\begin{pmatrix}0.25&0.10\\0.10&0.49\end{pmatrix}\). All entries are in the corresponding squared marker units, or products of marker units for off-diagonal entries. Calculate the model-implied same-visit and cross-visit covariances.

At the same visit, add the two covariance matrices:

$$ D+R= \begin{pmatrix} 0.64+0.25&0.24+0.10\\ 0.24+0.10&0.36+0.49 \end{pmatrix} = \begin{pmatrix} 0.89&0.34\\ 0.34&0.85 \end{pmatrix}. $$

Thus, the same-visit covariance between the markers is \(0.34\) marker-unit products. At different visits, the residuals are independent by assumption, so the cross-visit covariance matrix is \(D\); its marker-1/marker-2 entry is \(0.24\) marker-unit products. In this model, the difference \(0.34-0.24=0.10\) is the within-visit residual covariance \(R_{12}\). This calculation explains how the covariance components differ; it is not a claim that these values have been estimated from any real data.

Worked Hazard Contributions

For a fixed latent marker profile, the conditional hazard association is explicit. If the marker values are measured in their original units, each \(\alpha_k\) has units of inverse units of marker \(k\). The hazard ratio for a change in marker values \((\Delta m_1,\Delta m_2)\), holding other terms fixed at the same time, is \(\exp(\alpha_1\Delta m_1+\alpha_2\Delta m_2)\). This is a conditional comparison; it is not generally the hazard ratio after averaging over the random-effects distribution.

Worked Example: A Conditional Hazard and a Censored Follow-Up

Consider a hypothetical person whose latent marker values at a given time are \(m_1=2\) units and \(m_2=1\) unit. Let \(\lambda_0=0.0200\) per day, \(\alpha_1=0.30\) per marker-1 unit, and \(\alpha_2=-0.20\) per marker-2 unit. Assume these values and the baseline hazard are constant for the next 10 days. Calculate the conditional hazard and the survival contribution if the person is censored at day 10.

The linear predictor added to the log baseline hazard is \(0.30(2)+(-0.20)(1)=0.40\). Therefore,

$$ \lambda=0.0200\exp(0.40)=0.02984\text{ per day}. $$

With a constant hazard over 10 days, the cumulative hazard is \(10(0.02984)=0.2984\). The censored person contributes the survival probability

$$ \exp(-0.2984)=0.7421. $$

This contribution is less than one and depends on the association parameters: censoring means the event was not observed by day 10, and that event-free follow-up still contributes information through the integrated hazard. It is not an event-time density contribution. If an event instead occurred at day 10 under this constant hazard, the conditional event-time density contribution would be \(0.02984\exp(-0.2984)=0.02214\) per day.

Worked Example: A Marker-Contrast Hazard Ratio

Suppose, hypothetically, that \(\alpha_1=0.40\) per unit of marker 1 and \(\alpha_2=-0.30\) per unit of marker 2. At the same time point, compare two latent profiles that differ by \(\Delta m_1=1\) unit and \(\Delta m_2=2\) units. Compute the conditional hazard ratio, holding the baseline hazard and other terms fixed.

The log hazard ratio is \(0.40(1)+(-0.30)(2)=0.40-0.60=-0.20\). Thus,

$$ \operatorname{HR}=\exp(-0.20)=0.8187. $$

Under this model, the first profile has a conditional hazard about \(0.819\) times the hazard for the comparison profile, or about 18.1% lower, at that time. This calculation uses the association parameters and marker contrast; it does not use \(D\) or \(R\) directly. The covariance matrices still matter for estimating latent profiles and for population-level predictions that average over random effects.

Conditions, Diagnostics, and Alternatives

The separation described above depends on assumptions that should be checked against the study design and data. The model assumes that the two-marker residual vector is adequately represented by a bivariate normal distribution with covariance \(R\); that the random-intercept vector follows the specified bivariate normal distribution with covariance \(D\); and that residuals are independent across visits conditional on the random effects and modeled means. It also assumes that the hazard form and its marker association are appropriate, and that censoring is independent of the event process conditional on the modeled information. Visit timing and missing measurements must not introduce unmodeled dependence that invalidates the likelihood.

Useful diagnostics include comparing observed within-person and cross-visit marker covariance patterns with those implied by the fitted model, checking residual distributions and patterns over time, and examining whether the fitted hazard and survival predictions are compatible with observed event and censoring patterns. A mismatch between same-visit and cross-visit covariance patterns can indicate that the proposed \(R\) and \(D\) structure is inadequate. Implausible estimates, large uncertainty, or strong sensitivity to reasonable model changes are warnings that the data or specification may not support a clean separation.

A separate longitudinal analysis can describe marker covariance without using event information, but it cannot estimate marker-to-hazard associations. A survival analysis using observed marker values as if they were error-free predictors does not make the same allowance for latent trajectories and measurement error. The joint likelihood uses both measurement and event information while accounting for latent random effects. Its advantage does not remove its limitations: conclusions depend on the longitudinal and hazard specifications, distributional assumptions, and available follow-up. A fitted association is conditional on the specified model and is not, by itself, a causal effect.

Common Mistake

Wrong reasoning: “The markers have a positive covariance, so marker 1 must have a positive hazard association.” Covariance between markers only describes their joint variation. It gives neither the sign nor the size of either marker’s conditional association with the hazard.

Correction: Identify the source of each quantity in the likelihood. The longitudinal measurement density informs \(R\), the random-effects distribution informs \(D\), and the conditional event factor contains the \(\alpha_k\). The integrated likelihood links the information, but marker covariance alone does not determine a hazard association. Also, even if no events are observed, censored follow-up still contributes survival terms involving the integrated hazard; there is no event-occurrence or event-time evidence, but the follow-up is not devoid of information about \(\alpha_k\).

Key takeaway: In a two-marker joint model, covariance parameters describe how latent marker values and measurement errors vary, while hazard-association parameters describe how latent marker values relate to event risk. Repeated measurements can help distinguish the covariance sources; event and censored follow-up contribute hazard information through the conditional event likelihood.

Check Your Understanding

Try each question, then compare your reasoning with the solutions.

  1. In the stated model, which covariance matrix appears in the conditional measurement density given \(b_i\), and which matrix specifies the random-effects distribution?
  2. If the same-visit cross-marker covariance is \(0.50\) and the cross-visit covariance is \(0.32\), what is the implied within-visit residual cross-marker covariance under the random-intercept assumptions?
  3. Does a person censored at time \(T_i\) contribute a term involving the marker-association parameters? Explain.
  4. For \(\alpha_1=0.25\) per unit and \(\alpha_2=-0.10\) per unit, what is the conditional hazard ratio for a contrast \((\Delta m_1,\Delta m_2)=(2,1)\)?
  5. Why does marker covariance alone not establish a marker’s hazard association?

Solutions. (1) \(R\) appears in the conditional measurement density; \(D\) specifies the distribution of \(b_i\). (2) The cross-visit covariance is \(D_{12}=0.32\), so \(R_{12}=0.50-0.32=0.18\) marker-unit products. (3) Yes. For \(\delta_i=0\), the event factor includes \(\exp\{-\int_0^{T_i}\lambda_i(s\mid b_i)\,ds\}\), which depends on the associations through the hazard. (4) The log hazard ratio is \(0.25(2)-0.10(1)=0.40\), so the ratio is \(\exp(0.40)=1.492\). (5) Covariance describes joint variation in the markers, whereas a hazard association is a parameter in the conditional event model; the former does not determine the latter.

Clinical Biostats