Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Marker-Specific Slope Associations

Multiple Longitudinal Markers · Tutorial 376 of 697

Marker-Specific Slope Associations

Learn to specify and interpret separate slope effects for multiple latent marker trajectories in a joint survival model.

Advanced 12 min read

What You'll Learn

  • Define a separate latent instantaneous-slope term for each marker in a hazard model.
  • Interpret slope-association coefficients with marker and time units made explicit.
  • Calculate conditional hazard ratios for rising, falling, and flat marker profiles.
  • Derive the hazard ratio implied by a difference in latent marker slopes.
  • Check model assumptions and recognize common interpretation and fitting problems.

Why Model Marker Slopes?

A marker’s current value describes its level at a particular time. Its instantaneous slope describes how quickly that level is changing at that time. These can convey different information about a person’s clinical course: two people may have the same marker value now, while one is improving and the other is deteriorating. A joint model can represent the association between survival and each marker’s rate of change, rather than relying only on the marker levels.

With multiple markers, the slope of each latent trajectory can enter the hazard through its own coefficient. This allows the model to estimate, for example, whether a faster rise in one marker is associated with a higher hazard while a faster rise in another is associated with a lower hazard. The associations are conditional on the other modeled marker slopes and covariates; they are not, by themselves, causal effects.

Definition: Let \(m_{ik}(t)\) be the latent, or underlying error-free, trajectory for marker \(k\) in subject \(i\), and suppose it is differentiable with respect to the time scale \(t\). Its instantaneous slope is \(\dot m_{ik}(t)=d m_{ik}(t)/dt\). A marker-specific slope association model is \[ h_i(t\mid \mathbf b_i)=h_0(t)\exp\left\{\boldsymbol\gamma^\top\mathbf w_i+\sum_{k=1}^{K}\alpha_k\dot m_{ik}(t)\right\}, \] where \(h_0(t)\) is the baseline hazard, \(\mathbf w_i\) is a vector of covariates, \(\boldsymbol\gamma\) is its coefficient vector, \(\mathbf b_i\) denotes the subject’s longitudinal random effects, and \(\alpha_k\) is the association coefficient for the instantaneous slope of marker \(k\).

What the Slope Coefficients Mean

The hazard is conditional on the subject’s modeled latent trajectories and covariates. The longitudinal observations are not substituted directly as if they were error-free slopes; the slope term is computed from the fitted latent trajectory. This matters because a derivative of noisy measurements taken at irregular times can be unstable, whereas the joint model represents the trajectory and its uncertainty through the longitudinal model.

The units of \(\dot m_{ik}(t)\) are marker units per unit time. Therefore, \(\alpha_k\) has reciprocal units: time per marker unit. For example, if a marker is measured in milligrams per litre and time in years, its slope is in milligrams per litre per year, and \(\alpha_k\) is measured in years per milligram per litre. The product \(\alpha_k\dot m_{ik}(t)\) is dimensionless, as required in an exponential hazard model.

For two otherwise identical subjects at the same time, with the same covariates and the same slopes for all markers except marker \(k\), the conditional hazard ratio for a slope difference \(\Delta\) is \[ \frac{h_i(t\mid \dot m_{ik}(t)=s+\Delta)} {h_i(t\mid \dot m_{ik}(t)=s)} =\exp(\alpha_k\Delta). \] Thus, \(\exp(\alpha_k)\) compares hazards for a one-unit difference in slope, where “one unit” means one marker unit per time unit. It does not compare a one-unit difference in marker level. A positive \(\alpha_k\) means a more positive slope is associated with a higher conditional hazard, holding the other modeled quantities fixed. A negative \(\alpha_k\) means a more positive slope is associated with a lower conditional hazard. The meaning of “more positive” applies to both rising and falling profiles: a change from \(-0.5\) to \(-0.2\) is a more positive slope, even though both trajectories are falling.

Justifying the Hazard Ratio

The comparison follows directly from the specified hazard model. Let two subjects have the same covariates and the same marker slopes except that their slope for marker \(k\) differs by \(\Delta\). In the ratio of their hazards, the common baseline hazard and common covariate contribution cancel. The other marker-slope terms also cancel. The remaining log-hazard difference is \(\alpha_k\Delta\), so exponentiating gives the hazard ratio.

$$ \begin{aligned} \log h_A(t)-\log h_B(t) &=\alpha_k\{\dot m_{Ak}(t)-\dot m_{Bk}(t)\}\\ &=\alpha_k\Delta,\\ \frac{h_A(t)}{h_B(t)} &=\exp(\alpha_k\Delta). \end{aligned} $$

This derivation also clarifies the comparison’s conditions: it is conditional on equal values of the other hazard predictors and on the specified latent slope values. If several slopes differ, each contributes to the log-hazard difference.

Worked Example: Combining Two Marker Slopes

Suppose two hypothetical markers have slopes, at a particular time, of \(0.80\) units per month for marker 1 and \(-0.15\) milligrams per litre per month for marker 2. Let their fitted slope-association coefficients be \(\alpha_1=0.30\) per (marker-1 unit per month) and \(\alpha_2=-1.20\) per (milligram per litre per month). Compare this profile with a profile having zero slope for both markers, at the same time and covariate values.

The log-hazard difference is the sum of the two coefficient-times-slope contributions: \[ 0.30(0.80)+(-1.20)(-0.15)=0.24+0.18=0.42. \]

The conditional hazard ratio is \[ \exp(0.42)=1.522. \]

Under this fitted model, the subject with these two slopes has an instantaneous hazard about \(1.52\) times that of the subject with both slopes zero, conditional on the stated matching conditions. The second contribution is positive because both its coefficient and its slope are negative. The calculation concerns instantaneous hazards, not the probability of an event over a fixed follow-up period.

Rising, Falling, and Flat Profiles

A slope coefficient is not a statement that “increases are harmful” or “decreases are protective” without specifying the coefficient’s sign and the comparison. With a positive coefficient, a positive slope contributes positively to the log hazard relative to a flat slope; a negative slope contributes negatively. With a negative coefficient, those directions reverse. The coefficient describes how the log hazard changes as the slope becomes more positive, not the effect of moving from any particular marker value to another.

Worked Example: A Negative Association and Falling Trajectories

Suppose a hypothetical marker is measured in units per year, and the estimated slope coefficient is \(\hat\alpha=-0.25\) per (marker unit per year), with standard error \(SE=0.10\). Compare profiles with slopes \(+0.40\) and \(-0.40\) marker units per year with a flat profile, holding covariates and other marker slopes fixed.

For the rising profile, the log-hazard difference from a flat profile is \((-0.25)(0.40)=-0.10\). Its hazard ratio is \(\exp(-0.10)=0.905\). The fitted hazard is about \(9.5\%\) lower than for the flat profile.

For the falling profile, the log-hazard difference is \((-0.25)(-0.40)=0.10\), giving \(\exp(0.10)=1.105\). Its fitted hazard is about \(10.5\%\) higher than for the flat profile. The model’s negative coefficient means that a more positive slope is associated with a lower hazard; the falling profile is less positive than the flat profile.

For illustration, a large-sample Wald interval for the coefficient is \[ -0.25\mathbin{\pm}1.96(0.10)=[-0.446,-0.054]. \] The corresponding interval for the hazard ratio for a one marker-unit-per-year slope difference is \([\exp(-0.446),\exp(-0.054)]=[0.640,0.947]\). Under the usual approximate Wald test, \(z=-0.25/0.10=-2.50\), giving a two-sided \(p\)-value of about \(0.0124\). This is evidence against a zero slope association under the model and its assumptions; it is not the probability that the null hypothesis is true.

Obtaining Slopes from the Longitudinal Model

The derivative in the hazard model comes from the chosen longitudinal trajectory specification. For a linear trajectory, the instantaneous slope is constant. For a nonlinear trajectory, it can vary with time, so the same coefficient may contribute differently to the hazard at different times for the same subject. In either case, the derivative must be taken with respect to the time variable used in the model.

Worked Example: Evaluating Time-Varying Slopes

Consider two hypothetical latent trajectories, with time \(t\) measured in years: \[ m_{i1}(t)=2+0.40t,\qquad m_{i2}(t)=5-0.10t+0.020t^2. \] Suppose the slope coefficients are \(\alpha_1=0.50\) per (marker-1 unit per year) and \(\alpha_2=-2.0\) per (marker-2 unit per year). Find the slope contribution to the log hazard at \(t=3\) years, relative to zero slopes for both markers.

Differentiate each trajectory: \[ \dot m_{i1}(t)=0.40,\qquad \dot m_{i2}(t)=-0.10+0.040t. \] At \(t=3\), the slopes are \(0.40\) and \(-0.10+0.040(3)=0.020\) marker units per year, respectively. The total log-hazard contribution is \[ 0.50(0.40)+(-2.0)(0.020)=0.20-0.040=0.160. \]

The slope-related hazard ratio relative to zero slopes is \(\exp(0.160)=1.174\). At this time, the combined slope terms correspond to a conditional hazard about \(17.4\%\) higher than the zero-slope comparison, with covariates and other predictors held fixed. The second marker’s slope is small and positive, so its negative coefficient contributes a small negative term.

Assumptions, Diagnostics, and Alternatives

Interpretation depends on assumptions from both parts of the joint model. The longitudinal submodels must provide an adequate representation of each latent trajectory over the times at which the hazard is evaluated, and the trajectory must be differentiable wherever its slope is used. The survival component assumes the stated hazard form: the baseline hazard and covariates are modeled appropriately, and each slope enters linearly on the log-hazard scale with a constant association coefficient unless the model explicitly specifies otherwise. The joint model must also represent dependence between marker histories and event times adequately; censoring should be non-informative conditional on the modeled information and assumptions.

Diagnostics should examine more than whether an optimizer returned estimates. Check convergence and identifiability evidence, including whether slope-coefficient estimates are stable and their uncertainty is plausible. Compare fitted longitudinal trajectories with observed marker histories, especially near event times and in regions with sparse observations, where derivatives can be poorly determined. Examine whether estimated slopes or hazard contributions are dominated by a small number of subjects. A coefficient with a very large standard error, unstable estimates across reasonable fits, or extreme sensitivity to a few subjects can indicate weak information about the slope association. A good-looking longitudinal fit alone does not establish that the survival association is well identified.

A slope association is one possible link between longitudinal and survival processes. A current-value association instead relates the hazard to latent marker levels; a shared-random-effects specification links the hazard to longitudinal random effects. These alternatives answer different modeling questions and need not produce the same association estimate. Choosing among them requires a scientific rationale and an adequate fit, not simply selecting whichever gives the strongest association. A model with slope terms alone also does not adjust for current marker levels unless those levels are included separately.

A common mistake is to interpret a positive slope coefficient as meaning that every rising trajectory has a higher hazard than every falling trajectory. That conclusion ignores the fitted coefficient’s sign, the sizes of the slopes, and the other terms in the hazard. The correct comparison is explicit: for a slope difference \(\Delta\), calculate \(\exp(\alpha_k\Delta)\) while holding the other predictors fixed. A further limitation is that these are conditional model-based associations, not causal effects. Unmeasured factors, misspecified trajectories, or inadequate handling of informative observation and censoring can undermine a causal interpretation.

Key takeaway: Each marker has its own slope coefficient, and its contribution to the log hazard is \(\alpha_k\dot m_{ik}(t)\). Interpret the sign and magnitude together, state the marker and time units, and specify which other predictors are held fixed in any hazard comparison.

Check Your Understanding

Answer each question, then check the solutions below.

  1. A marker’s slope coefficient is \(0.20\) per (unit per year). What is the conditional hazard ratio for a slope difference of \(-0.50\) unit per year?
  2. For a marker with a negative slope coefficient, explain whether a slope of \(-0.1\) or \(+0.2\) contributes more to the log hazard, holding other predictors fixed.
  3. A latent trajectory is \(m(t)=3+0.5t-0.1t^2\), with time in years. Find its instantaneous slope at \(t=2\) years.
  4. Why is a marker-specific slope association not interpreted as the causal effect of changing a patient’s marker trajectory?

Solutions. (1) The log-hazard difference is \(0.20(-0.50)=-0.10\), so the hazard ratio is \(\exp(-0.10)=0.905\). The subject with the lower slope has about \(9.5\%\) lower conditional hazard for this comparison. (2) The slope \(+0.2\) is more positive than \(-0.1\). With a negative coefficient, the more positive slope contributes less to the log hazard; subtracting the contributions gives \(\alpha\{0.2-(-0.1)\}=0.3\alpha<0\). (3) Differentiate to obtain \(\dot m(t)=0.5-0.2t\); at \(t=2\), the slope is \(0.1\) marker unit per year. (4) The coefficient is a conditional association in a specified joint model. It does not establish that an intervention changing the trajectory would change survival, because confounding, model misspecification, and other assumptions may prevent a causal interpretation.

Clinical Biostats