Tutorials › Adaptive Clinical Trial Design › Continuous Biomarkers And Treatment-Effect Gradients

Population Enrichment and Subgroup Selection · Tutorial 413 of 799

Continuous Biomarkers And Treatment-Effect Gradients

Learn to model and interpret treatment-effect gradients across a continuous biomarker without reducing it to arbitrary categories.

Advanced 12 min read

What You'll Learn

  • Define a conditional treatment effect at a specified value of a continuous biomarker.
  • Derive treatment-effect predictions from a linear treatment-by-biomarker interaction.
  • Extend linear gradients with spline basis functions and treatment interactions.
  • Calculate uncertainty for predicted effects using the variance of a linear contrast.
  • Choose clinically relevant biomarker values while checking data support and model fit.
  • Recognize why dichotomizing a continuous biomarker can obscure a treatment-effect gradient.

Why Model a Continuous Biomarker?

A biomarker measured on a continuous scale may carry information about how treatment effect changes across patients, not merely whether a patient falls above or below a chosen threshold. A model of that pattern can estimate treatment effects at clinically relevant biomarker values while retaining the scale and information of the measurement. The aim is to describe and estimate the gradient, not to turn every estimated difference into a treatment rule.

The earlier material on treatment-by-biomarker interaction models establishes the role of an interaction: treatment effects may vary with a biomarker. Here the key task is to represent that variation when the biomarker is continuous, and to interpret model-based effects at specific values.

Definition: Let \(Z\) be a pretreatment continuous biomarker and let \(T=1\) denote assignment to the experimental treatment and \(T=0\) assignment to control. The conditional treatment effect at biomarker value \(z\) is the difference in mean outcome under the two treatments for patients with \(Z=z\): \(\tau(z)=E(Y\mid T=1,Z=z)-E(Y\mid T=0,Z=z)\). For a higher-is-better outcome, a positive value favors experimental treatment; the direction reverses if lower values are better.

In a randomized trial, this conditional mean contrast can represent a causal treatment effect at \(z\), provided treatment assignment is randomized, treatment and outcome are well defined, there is no interference between participants, and both treatment groups are represented at the biomarker values being interpreted. The biomarker must be measured before treatment; conditioning on a post-treatment measurement can change the estimand and introduce bias.

A Linear Treatment-Effect Gradient

For a continuous outcome on its original measurement scale, a simple model is

$$ E(Y\mid T,Z=z)=\beta_0+\beta_T T+\beta_Z(z-c)+\beta_{TZ}T(z-c), $$

where \(c\) is a chosen centering value, such as a clinically familiar value or the sample mean biomarker level. The term \(\beta_Z(z-c)\) allows the outcome to vary with the biomarker in the control group, while \(\beta_{TZ}T(z-c)\) allows the treatment contrast to vary with it. Subtracting the model prediction under control from the prediction under treatment gives

$$ \begin{aligned} \tau(z) &= \left[\beta_0+\beta_T+\beta_Z(z-c)+\beta_{TZ}(z-c)\right]\\ &\quad-\left[\beta_0+\beta_Z(z-c)\right]\\ &=\beta_T+\beta_{TZ}(z-c). \end{aligned} $$

Thus \(\beta_T\) is the modeled treatment effect at \(z=c\), and \(\beta_{TZ}\) is the change in treatment effect per one-unit increase in the biomarker. Centering changes the interpretation of the treatment main-effect coefficient, but not the fitted treatment-effect curve.

Worked Example: Estimating Effects From a Linear Interaction

Suppose a hypothetical randomized trial measures a symptom score where higher scores indicate greater improvement, in points. The pretreatment biomarker is measured in units and centered at \(c=4\). The fitted model has \(\hat{\beta}_T=1.2\) points and \(\hat{\beta}_{TZ}=0.30\) points per biomarker unit. Calculate the predicted treatment effect at biomarker values \(z=2,4,\) and \(6\).

The model implies \(\hat{\tau}(z)=\hat{\beta}_T+\hat{\beta}_{TZ}(z-c)\). At \(z=2\),

$$ \hat{\tau}(2)=1.2+0.30(2-4)=1.2-0.60=0.60\text{ points}. $$

At the centering value \(z=4\), \(\hat{\tau}(4)=1.2+0.30(0)=1.2\) points. At \(z=6\), \(\hat{\tau}(6)=1.2+0.30(2)=1.8\) points. Under this model, the estimated treatment effect increases by 0.30 improvement points per biomarker unit. These are conditional model estimates, not proof that a patient's biomarker value determines their individual response.

A predicted effect is a contrast, so its uncertainty depends on the covariance between the estimated coefficients. At a specified \(z\), let \(x=z-c\). The estimated contrast is \(\hat{\beta}_T+x\hat{\beta}_{TZ}\), with estimated variance

$$ \widehat{\operatorname{Var}}\{\hat{\tau}(z)\} =\widehat{\operatorname{Var}}(\hat{\beta}_T) +x^2\widehat{\operatorname{Var}}(\hat{\beta}_{TZ}) +2x\widehat{\operatorname{Cov}}(\hat{\beta}_T,\hat{\beta}_{TZ}). $$

A confidence interval can then be formed using the contrast estimate and its standard error, with an appropriate critical value for the fitted model. Reporting only the interaction coefficient does not give the uncertainty for the treatment effect at a particular biomarker value.

Worked Example: Uncertainty at a Clinically Relevant Value

Continue the hypothetical trial above. Suppose the estimated variances are \(\widehat{\operatorname{Var}}(\hat{\beta}_T)=0.16\) points squared and \(\widehat{\operatorname{Var}}(\hat{\beta}_{TZ})=0.01\) points squared per biomarker unit squared, and their covariance is \(-0.02\) points squared per biomarker unit. At \(z=6\), \(x=6-4=2\), and the predicted effect is 1.8 points.

The estimated variance and standard error are

$$ \widehat{\operatorname{Var}}\{\hat{\tau}(6)\} =0.16+2^2(0.01)+2(2)(-0.02) =0.12, \qquad SE=\sqrt{0.12}=0.3464\text{ points}. $$

Using a normal critical value of 1.96, the approximate 95% confidence interval is

$$ 1.8\pm1.96(0.3464)=1.8\pm0.679 =[1.121,\ 2.479]\text{ points}. $$

Under the model and its inferential assumptions, this interval is a procedure that would cover the true treatment effect at \(z=6\) in 95% of repeated comparable trials. It is not a statement that there is a 95% probability the fixed effect lies in this particular interval. The covariance term matters: omitting it would give a different standard error.

Allowing Curvature With Flexible Functions

A straight-line gradient is useful when the change in effect per biomarker unit is plausibly constant across the observed range. If the pattern may bend, a flexible function can represent curvature without dividing the biomarker into groups. For example, choose a set of basis functions \(B_1(z),\ldots,B_K(z)\), such as spline basis functions, and fit

$$ E(Y\mid T,Z=z)=\alpha+f(z)+T\{\tau_0+g(z)\}, \qquad f(z)=\sum_{k=1}^{K}a_kB_k(z),\quad g(z)=\sum_{k=1}^{K}\gamma_kB_k(z). $$

Here \(f(z)\) describes the biomarker pattern in the control group and \(g(z)\) describes how the treatment contrast changes with the biomarker. The resulting conditional treatment effect is \(\tau(z)=\tau_0+\sum_{k=1}^{K}\gamma_kB_k(z)\). Including the biomarker basis terms in both treatment groups is important: a biomarker can be prognostic even when it does not modify treatment effect.

A simple example of a piecewise-linear basis is the hinge function \(h(z)=\max(0,z-k)\), where \(k\) is a prespecified knot. A treatment-effect curve \(\tau(z)=\tau_0+\gamma_1(z-c)+\gamma_2h(z)\) has slope \(\gamma_1\) below the knot and slope \(\gamma_1+\gamma_2\) above it. Spline models extend this idea with multiple basis terms and usually impose constraints that keep the fitted curve smooth. Knots and model complexity should be chosen with clinical knowledge and available information in mind, rather than adjusted repeatedly until a favorable pattern appears.

Worked Example: Calculating a Piecewise-Linear Gradient

Suppose a hypothetical trial uses biomarker units with \(c=4\) and a knot \(k=5\). Its estimated treatment-effect curve, on a higher-is-better outcome measured in points, is

$$ \hat{\tau}(z)=0.5+0.40(z-4)-0.25\max(0,z-5). $$

At \(z=3\), the hinge is zero, so \(\hat{\tau}(3)=0.5+0.40(-1)=0.10\) points. At the knot \(z=5\), it is also zero, giving \(\hat{\tau}(5)=0.5+0.40(1)=0.90\) points. At \(z=7\), the hinge is \(7-5=2\), so

$$ \hat{\tau}(7)=0.5+0.40(3)-0.25(2)=0.5+1.20-0.50=1.20\text{ points}. $$

Below \(z=5\), the estimated slope is 0.40 points per biomarker unit. Above \(z=5\), it is \(0.40-0.25=0.15\) points per unit. The curve still increases above the knot, but more gradually. The knot is a feature of this chosen model, not evidence of a biological discontinuity at exactly that value.

Choosing Values, Checking Fit, and Interpreting Results

Predictions are easiest to interpret when reported at values selected for clinical relevance before examining the results—for example, a typical value and values representing meaningful low and high measurements. Report the biomarker value and units, the estimated treatment effect and outcome units, and uncertainty for each contrast. Ensure the selected values lie within the range with adequate observations in both randomized groups. A fitted curve at sparsely observed extremes can be mathematically calculable but scientifically unreliable.

A model-based crossing of a clinically important effect threshold can summarize a curve, but it is not automatically an eligibility cutoff or a validated decision rule. For instance, in the previous example, solving \(\hat{\tau}(z)=1.0\) above the knot gives \(0.15+0.15z=1.0\), or \(z\approx5.67\). That is the point where this estimated curve reaches 1.0 points under its assumptions. Uncertainty in the curve and the clinical consequences of decisions would need consideration before using such a value to guide treatment.

Model assessment should examine whether the assumed shape is credible and whether data support it. Useful checks include plotting outcomes and fitted treatment contrasts against the biomarker, examining residual patterns, checking the number of participants in each treatment group across the biomarker range, and comparing prespecified linear and flexible specifications. Large changes in predictions under modest changes in spline complexity or knot placement indicate that the gradient is weakly determined. A significant interaction test does not guarantee a well-estimated effect at every biomarker value.

ApproachWhat it representsMain trade-off
Linear interactionA constant change in treatment effect per biomarker unitSimple to interpret, but can miss curvature
Spline or other smooth interactionA potentially curved treatment-effect gradientMore adaptable, but needs more information and careful specification
Dichotomized biomarkerSeparate effects above and below a selected thresholdEasy to describe, but discards within-group information and can hide gradients

For a binary outcome or a model using a nonlinear link, an interaction coefficient is generally on the model's link scale. It should not be described directly as a difference in event probabilities. Instead, calculate predicted outcomes under each treatment at the biomarker value and subtract them on the clinically relevant scale, such as a risk difference. This distinction prevents a correct model coefficient from being given the wrong clinical interpretation.

Common Pitfalls and Limitations

  • Assuming the interaction must be linear. A straight line is a modeling assumption, not a consequence of using a continuous biomarker. Check plausible alternatives and report the specification.
  • Using the treatment main effect as the effect for everyone. In a linear interaction model, \(\beta_T\) is the treatment effect at \(z=c\), not at all biomarker values.
  • Ignoring prognostic variation. Omitting a needed biomarker main-effect function can misrepresent outcome patterns and make the treatment model less credible.
  • Extrapolating beyond support. Predictions outside the observed biomarker range, or in regions with few participants in one arm, rely heavily on functional-form assumptions.
  • Treating a fitted gradient as individual response certainty. A conditional average effect describes a group defined by biomarker value; it does not reveal both potential outcomes for an individual.
  • Searching among many curves or thresholds. Data-driven choices can overstate evidence for effect modification. Prespecification, transparent reporting, and independent validation help limit this problem.
Key takeaway: A continuous-biomarker treatment-effect model estimates a conditional contrast as a function of the biomarker. Interpret the function at prespecified, clinically meaningful values, quantify uncertainty for those contrasts, and verify that the model shape and data support the predictions.

Check Your Understanding

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

  1. In a linear interaction model centered at \(c=10\), \(\hat{\beta}_T=2\) outcome points and \(\hat{\beta}_{TZ}=-0.20\) points per biomarker unit. What is the estimated treatment effect at \(z=13\)?
  2. In a hinge model, the treatment-effect slope is 0.3 points per unit below a knot and the hinge coefficient is \(-0.5\). What is the slope above the knot?
  3. Why should the biomarker main-effect function generally be included when modeling treatment-effect variation?
  4. What is a key problem with reporting a treatment effect at a biomarker value far beyond the observed range?
  5. In a logistic model, why may the treatment-by-biomarker coefficient not equal a risk-difference gradient?

Solutions. (1) \(\hat{\tau}(13)=2-0.20(13-10)=2-0.60=1.40\) points. (2) The slope above the knot is \(0.3-0.5=-0.2\) points per biomarker unit. (3) The biomarker may predict outcome in the control group independently of treatment-effect modification; including its main-effect function represents that prognostic pattern separately. (4) The estimate is extrapolated and depends strongly on the assumed curve where there may be little or no data, so its uncertainty and credibility can be poor. (5) The coefficient is on the log-odds scale; obtain predicted event probabilities under both treatments and subtract them to estimate a risk difference at the specified biomarker value.

Clinical Biostats