Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Sensitivity to the Cumulative Exposure Window

Sensitivity to the Association Structure · Tutorial 221 of 697

Sensitivity to the Cumulative Exposure Window

See how changing the prespecified exposure window changes cumulative burden, the fitted association, and the clinical contrast used to interpret it.

Advanced 10 min read

What You'll Learn

  • Define cumulative exposure over a fixed look-back window, including when follow-up is shorter than the window.
  • Calculate exposure from a continuous trajectory, including one reconstructed by piecewise-linear interpolation.
  • Interpret a window-specific coefficient through a hazard ratio for a stated exposure contrast.
  • Compare window lengths using a common clinical contrast rather than raw coefficients alone.
  • Identify assumptions, diagnostics, and limitations of window-sensitivity analyses.

Why the Exposure Window Matters

A cumulative-exposure association asks whether a person’s biomarker history over a specified period is associated with the event hazard. But “history” depends on how far back the calculation reaches. A one-month window and a one-year window summarize different portions of the trajectory, and a person’s cumulative burden can change substantially when the window changes. The estimated association may change too.

The aim of a window-sensitivity analysis is not to find whichever window gives the strongest association. It is to assess how conclusions change across clinically justified, prespecified windows, while keeping the other parts of the joint model fixed. A window is a modeling choice about which part of the trajectory contributes to the association; it is not, by itself, evidence that the biomarker causes the event.

Definition and Hazard Interpretation

Definition: Let \(m_i(s)\) denote subject \(i\)’s latent biomarker value at time \(s\), and let \(w>0\) be a prespecified window length. The cumulative exposure at event-process time \(t\) is $$ A_i(t;w)=\int_{\max(0,t-w)}^t m_i(s)\,ds. $$ It is the area under the latent biomarker trajectory over the available part of the interval from \(t-w\) to \(t\). Its units are biomarker units multiplied by time units.

If \(t\geq w\), the integration interval has length \(w\). If \(t<w\), it begins at time zero, so only the observed follow-up period contributes. This convention avoids requiring biomarker history before the defined start of follow-up. When the scientific question concerns mean level rather than total area, one can instead use the cumulative average \(A_i(t;w)/\min(w,t)\). That is a different exposure summary and has different units.

For a window-specific association model, write the hazard as

$$ h_i(t\mid m_i,\mathbf{W}_i) = h_0(t)\exp\!\left\{\boldsymbol{\gamma}^{\mathsf T}\mathbf{W}_i+ \alpha_w A_i(t;w)\right\}. $$

Here \(h_0(t)\) is the baseline hazard, \(\mathbf{W}_i\) is the vector of included covariates, and \(\alpha_w\) is the association parameter for window length \(w\). Holding other covariates and the baseline hazard fixed, a difference \(\Delta A\) in cumulative exposure corresponds to a hazard ratio of \(\exp(\alpha_w\Delta A)\). The units of \(\alpha_w\) are the reciprocal of biomarker-units multiplied by time-units.

This interpretation is conditional on the specified model. It compares hazards at time \(t\) for subjects whose cumulative exposures differ by \(\Delta A\), with the other modeled quantities held equal. It does not assert that changing the biomarker would cause that hazard difference.

How Window Length Changes the Exposure

For two windows \(w_2>w_1\) and a time \(t\geq w_2\), the longer window adds the earlier segment from \(t-w_2\) to \(t-w_1\):

$$ A_i(t;w_2)-A_i(t;w_1) = \int_{t-w_2}^{t-w_1}m_i(s)\,ds. $$

Thus the difference between window summaries depends on the biomarker values in the additional segment, not merely on the two window lengths. If the biomarker is nonnegative, the longer-window total is at least as large; if the biomarker has been centered around a reference value, that ordering need not hold. Near the beginning of follow-up, a longer nominal window may add no exposure at all because both integrals start at zero.

A useful local justification follows from changing the lower limit. When \(t>w\) and \(m_i\) is continuous, the fundamental theorem of calculus gives

$$ \frac{\partial A_i(t;w)}{\partial w}=m_i(t-w). $$

Increasing the window slightly adds a thin slice at its older boundary, so the rate of increase is the biomarker value at that boundary. This explains why longer windows do not have a uniform effect across subjects: their older biomarker histories can differ.

Worked Example: Calculating Two Windows From a Linear Trajectory

Suppose a hypothetical subject has a latent biomarker trajectory \(m_i(s)=4+0.5s\) mg/L, where \(s\) is measured in months. At \(t=8\) months, calculate cumulative exposure for \(w=2\) months and \(w=5\) months.

For the two-month window, integrate from month 6 to month 8:

$$ A_i(8;2)=\int_6^8(4+0.5s)\,ds =\left[4s+0.25s^2\right]_6^8 =(32+16)-(24+9)=15\ \text{mg/L-months}. $$

For the five-month window, integrate from month 3 to month 8:

$$ A_i(8;5)=\int_3^8(4+0.5s)\,ds =\left[4s+0.25s^2\right]_3^8 =48-(12+2.25)=33.75\ \text{mg/L-months}. $$

The longer window adds \(33.75-15=18.75\) mg/L-months, which is exactly the area from month 3 to month 6. The result is not simply a rescaled version of the two-month total; it includes additional trajectory history.

Making Window-Specific Associations Comparable

Each prespecified window generally has its own fitted coefficient, denoted \(\alpha_w\). A smaller coefficient for a longer window does not automatically mean a weaker clinical association. The cumulative exposure itself usually changes scale with window length, and its distribution may change as well. A one-unit increase in total exposure is not necessarily a clinically comparable contrast across windows.

One useful comparison is the hazard ratio for a specified sustained biomarker difference. Suppose the trajectory is higher by \(c\) biomarker units throughout the full window, at a time \(t\geq w\). The cumulative-exposure difference is then \(cw\), and the corresponding hazard ratio is

$$ \operatorname{HR}_{w}(c)=\exp(\alpha_w c w). $$

For \(t<w\), the available interval has length \(t\), so the same sustained difference gives \(\exp(\alpha_w c t)\). Alternatively, investigators may report hazard ratios for a common, explicitly chosen increment in cumulative exposure or use a cumulative-average summary. The comparison must state which contrast it uses.

Worked Example: Comparing Coefficients on a Sustained-Difference Scale

In a hypothetical analysis, two otherwise identical models give \(\alpha_2=0.040\) per mg/L-month for a two-month window and \(\alpha_5=0.018\) per mg/L-month for a five-month window. Compare the hazard ratios associated with a sustained 1 mg/L difference throughout each full window.

For two months, the cumulative-exposure difference is \(1\times2=2\) mg/L-months. Therefore,

$$ \operatorname{HR}_{2}(1)=\exp(0.040\times2)=\exp(0.08)\approx1.083. $$

For five months, the difference is \(1\times5=5\) mg/L-months, giving

$$ \operatorname{HR}_{5}(1)=\exp(0.018\times5)=\exp(0.09)\approx1.094. $$

Under these hypothetical estimates, the fitted hazard ratios are about 1.083 and 1.094 for the stated contrasts. The five-month coefficient is numerically smaller, but the corresponding sustained-difference hazard ratio is slightly larger. These estimates do not establish that either window is scientifically correct; they show why the raw coefficients alone do not answer the clinical comparison.

Calculation From Visit Data and Early Follow-Up

In a joint model, the exposure is defined using the latent trajectory \(m_i(s)\), not by treating noisy visit measurements as the trajectory itself. If a fitted trajectory is represented by piecewise-linear interpolation between visits, its integral over each segment is the trapezoid area: segment length multiplied by the average of the two endpoint values. Summing the segment areas gives the window total. The fitted trajectory must cover the requested interval; extrapolation beyond well-supported data can make a nominally precise window summary unreliable.

Worked Example: Integrating a Piecewise-Linear Trajectory

Consider a hypothetical fitted trajectory observed at months 0, 2, 4, 6, and 8, with values \(2,3,5,4,6\) mg/L, respectively. Assume linear interpolation between these points. At month 8, find the four-month and eight-month cumulative exposures.

For the four-month window, use months 4 to 8. The segment from month 4 to month 6 contributes \(2(5+4)/2=9\) mg/L-months. The segment from month 6 to month 8 contributes \(2(4+6)/2=10\) mg/L-months. Thus \(A_i(8;4)=9+10=19\) mg/L-months.

For the eight-month window, also include the first two segments. From month 0 to month 2 the area is \(2(2+3)/2=5\) mg/L-months; from month 2 to month 4 it is \(2(3+5)/2=8\) mg/L-months. Adding the last two areas gives

$$ A_i(8;8)=5+8+9+10=32\ \text{mg/L-months}. $$

The difference is \(32-19=13\) mg/L-months, the area from month 0 to month 4. This calculation assumes the stated piecewise-linear fitted trajectory; it does not imply that the underlying biomarker changed linearly in reality.

Worked Example: A Nominal Window Longer Than Follow-Up

Suppose a hypothetical subject is followed to month 3, with fitted trajectory \(m_i(s)=2+s\) mg/L. Compare a two-month window with a six-month window at \(t=3\).

The two-month window starts at month 1:

$$ A_i(3;2)=\int_1^3(2+s)\,ds =\left[2s+0.5s^2\right]_1^3 =10.5-2.5=8\ \text{mg/L-months}. $$

The six-month window cannot extend before time zero, so it uses the available interval from month 0 to month 3:

$$ A_i(3;6)=\int_0^3(2+s)\,ds =\left[2s+0.5s^2\right]_0^3 =6+4.5=10.5\ \text{mg/L-months}. $$

The six-month window adds only the month 0-to-1 segment, with area \(10.5-8=2.5\) mg/L-months. It does not represent six months of exposure. The available duration is three months, so the average over that available interval is \(10.5/3=3.5\) mg/L. Reporting the window definition and the available duration prevents an incorrect interpretation.

Assumptions, Diagnostics, and Alternatives

A meaningful sensitivity comparison requires more than calculating several integrals. The windows should be selected in advance for scientific reasons, and each model should use the same longitudinal trajectory specification, covariates, baseline-hazard approach, and event-time information, changing only the exposure window and its associated coefficient. This is the controlled comparison emphasized in the earlier material on link-sensitivity analysis. The hazard model must also be adequate for the data, and the estimated longitudinal trajectory must represent the relevant biomarker history well enough over each window.

Check whether the data support each window. A long window may reach into periods with sparse visits or require substantial extrapolation, while short windows may be dominated by measurement noise or a small number of observations. Compare fitted trajectories and exposure distributions across windows, inspect visit coverage near the older boundaries, and check whether a few subjects account for much of the added area. A window-specific result that changes sharply when poorly supported history is included warrants caution.

The main alternatives summarize different features of the trajectory. A current-value link uses the biomarker level at \(t\); a cumulative-average link summarizes average level over the available window; a cumulative-total link uses area and therefore incorporates duration; and an observed sum uses measured values rather than integrating the fitted latent trajectory. These are not interchangeable estimands. The earlier material on current value versus cumulative exposure addresses the distinction between an instantaneous level and a history summary; here the question is how the specified history interval changes that summary.

Exposure summaryWhat it representsKey interpretation issue
Current value \(m_i(t)\)Latent biomarker level at time \(t\)Does not directly summarize earlier exposure
Cumulative total \(A_i(t;w)\)Area over the available windowScale grows with duration as well as biomarker level
Cumulative average \(A_i(t;w)/\min(w,t)\)Mean level over the available windowRemoves duration scaling but answers a different question
Observed sumAggregate of recorded visit valuesDepends on visit timing and does not itself integrate a latent trajectory

A common mistake is to say, “The longer-window coefficient is smaller, so long-term exposure matters less.” This reasoning compares coefficients without accounting for the exposure scale. The correction is to report each coefficient’s units and compare hazard ratios for a common, clinically interpretable contrast, such as a stated sustained biomarker difference. Another mistake is to treat the largest estimated association as proof that its window is the true biological window. Window sensitivity assesses robustness to a modeling choice; it cannot identify the correct biological mechanism on its own.

Limitations remain even when the analysis is carefully conducted. Results depend on the trajectory model, the window choices, and the hazard model. Longer windows can be weakly supported by the visit schedule, and different windows can summarize highly overlapping histories. A change in association across windows may reflect genuine differences in relevant history, but it can also reflect estimation uncertainty or model misspecification. Interpret the pattern alongside the data support and clinical rationale, not as a ranking based only on point estimates.

1
Specify windows before comparison.
Choose durations that correspond to the scientific question and state the time origin and units.
2
Calculate latent-trajectory summaries.
Integrate the fitted biomarker trajectory over each available window, using the same trajectory model.
3
Fit controlled alternatives.
Keep the other model components fixed so the window is the intended difference between specifications.
4
Interpret comparable contrasts.
Report coefficient units and hazard ratios for an explicitly stated exposure difference, and qualify conclusions by data support.

Check Your Understanding

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

  1. At \(t=10\) months, what additional interval contributes to an eight-month cumulative exposure compared with a three-month cumulative exposure?
  2. If a biomarker is 0.5 mg/L higher throughout a four-month window and \(\alpha_4=0.03\) per mg/L-month, calculate the hazard ratio for that sustained difference.
  3. At \(t=2\) months, what interval is integrated for a five-month window under the time-zero boundary convention?
  4. Why is it insufficient to claim that a longer window has a weaker association just because its fitted \(\alpha_w\) is numerically smaller?

Solutions. (1) The added interval is month 2 to month 7: the longer window starts at \(10-8=2\), while the shorter starts at \(10-3=7\). (2) The cumulative difference is \(0.5\times4=2\) mg/L-months, so the hazard ratio is \(\exp(0.03\times2)=\exp(0.06)\approx1.062\). (3) The interval is month 0 to month 2, because follow-up has not yet lasted five months. (4) The exposure scale and the clinically meaningful contrast depend on window length. Compare hazard ratios for a stated common or scientifically justified contrast rather than comparing raw coefficients alone.

Clinical Biostats