Tutorials › Regression Analysis (Undergraduate) › Treatment Benefit Across Baseline Fitness Levels

Integrated Applied Case Studies · Tutorial 968 of 991

Treatment Benefit Across Baseline Fitness Levels

Use an interaction model to estimate how exercise-treatment benefits vary with baseline fitness, quantify uncertainty at specific fitness levels, and report the comparisons cautiously.

Advanced 11 min read

What You'll Learn

  • Set up a treatment-by-baseline-fitness regression model and interpret its coefficients
  • Calculate the treatment effect at a specified baseline fitness level
  • Include coefficient covariance when finding the standard error of a conditional effect
  • Interpret an interaction estimate and its confidence interval in outcome units
  • Distinguish evidence about a treatment effect at one fitness level from evidence of effect modification
  • Limit conclusions to the baseline-fitness values and assumptions supported by the trial

Why Treatment Effects May Vary With Baseline Fitness

An exercise program may not yield the same improvement for everyone. Participants with different starting fitness levels might benefit by different amounts. A regression interaction lets us estimate how the treatment contrast changes with baseline fitness, rather than assuming one common contrast for all participants.

This tutorial uses a hypothetical randomized trial. Participants are assigned to an exercise program or control, and their endurance-test distance is measured after 12 weeks. The outcome is distance in metres; larger values indicate better performance. Baseline fitness is measured before randomization in millilitres of oxygen per kilogram per minute. Random assignment supports comparisons of treatment groups, while the interaction model describes how those comparisons vary with baseline fitness.

The Interaction Model and Its Assumptions

Let \(T=1\) indicate assignment to the exercise program and \(T=0\) indicate assignment to control. Let \(x\) be baseline fitness. We center and scale baseline fitness as \(z=(x-30)/5\), so that \(z=0\) corresponds to a baseline score of 30, and a one-unit increase in \(z\) corresponds to an increase of 5 baseline-score units.

Definition: The treatment-by-baseline-fitness interaction model is \(Y=\beta_0+\beta_1T+\beta_2z+\beta_3(Tz)+\varepsilon\), where \(Y\) is 12-week endurance distance in metres. The coefficient \(\beta_1\) is the treatment contrast at baseline fitness 30; \(\beta_3\) is how much that contrast changes for each 5-unit increase in baseline fitness. At a baseline value represented by \(z\), the model’s treatment contrast is \(\beta_1+\beta_3z\).

The control-group regression line is \(\beta_0+\beta_2z\). The exercise-group line is \((\beta_0+\beta_1)+(\beta_2+\beta_3)z\). Subtracting the control line from the exercise line at the same \(z\) gives \(\beta_1+\beta_3z\). Thus, \(\beta_3\) describes a difference between the groups’ slopes; it is not the treatment effect at every fitness level.

Interpretation depends on assumptions. The conditional mean of the outcome must be adequately represented by a linear function of baseline fitness within each treatment group. Errors should have mean zero conditional on treatment and baseline fitness, be independent across participants, and have a common variance for the standard errors used here. Normal errors support the exact small-sample \(t\) calculations; with a sufficiently large sample, approximate inference may be reasonable without exact normality. A useful causal interpretation also requires that assignment was randomized, baseline fitness was measured before treatment, and the treatment contrast corresponds to the assigned treatments being compared. These assumptions do not justify extrapolating beyond the baseline-fitness values represented in the trial.

The interaction is scale-specific: it concerns differences in mean endurance distance, measured in metres. A changing difference in metres need not imply the same pattern on another outcome scale.

Worked Trial Results

Suppose 120 participants were randomized, 60 to each group. The observed baseline-fitness scores ranged from 22 to 38. A hypothetical linear-model fit gives the following estimates. The standard errors use the model’s residual degrees of freedom, \(df=120-4=116\), because four coefficients were estimated.

CoefficientEstimateStandard errorInterpretation in this model
\(\hat{\beta}_0\)510 m—Predicted control mean at baseline fitness 30
\(\hat{\beta}_1\)42 m10 mTreatment contrast at baseline fitness 30
\(\hat{\beta}_2\)25 m—Control-group change per 5 baseline-score units
\(\hat{\beta}_3\)18 m7 mChange in treatment contrast per 5 baseline-score units

For calculating treatment-effect uncertainty, suppose the fitted model also gives \(\operatorname{Cov}(\hat{\beta}_1,\hat{\beta}_3)=-20\) square metres. This covariance matters because both estimates contribute to treatment contrasts away from baseline fitness 30.

Worked Example: Interpreting the Interaction

The estimated interaction is \(\hat{\beta}_3=18\) m per 5 baseline-score units, with standard error 7 m. Test whether the treatment contrast changes linearly with baseline fitness using a two-sided test of \(H_0:\beta_3=0\) against \(H_a:\beta_3\ne0\), at \(\alpha=0.05\).

The test statistic is

$$ t=\frac{\hat{\beta}_3-0}{SE(\hat{\beta}_3)} =\frac{18\text{ m}}{7\text{ m}}=2.571,\qquad df=116. $$

The two-sided \(p\)-value is approximately 0.011. Since \(0.011<0.05\), these hypothetical data provide evidence that the mean treatment contrast changes with baseline fitness, under the model assumptions. The estimate says that for each 5-unit increase in baseline fitness, the exercise-versus-control contrast is estimated to increase by 18 m. It does not say that every participant gains 18 m, nor does it establish why the contrast varies.

A 95% confidence interval for the interaction uses \(t^* \approx 1.981\):

$$ 18 \pm 1.981(7) =18\pm13.87 =(4.13,\ 31.9)\text{ m per 5 baseline-score units}. $$

In repeated studies using this procedure and its assumptions, 95% of intervals constructed this way would cover the true interaction coefficient. Here the interval indicates that the change in treatment contrast is estimated to be positive over the stated 5-unit increment.

Conditional Treatment Effects and Their Uncertainty

To estimate the treatment effect at a chosen baseline value, substitute its \(z\) value into \(\hat{\beta}_1+\hat{\beta}_3z\). Its standard error must account for the uncertainty in both coefficient estimates and their covariance. For any fixed \(z\),

$$ \widehat{\operatorname{Var}}(\hat{\beta}_1+z\hat{\beta}_3) =\widehat{\operatorname{Var}}(\hat{\beta}_1) +z^2\widehat{\operatorname{Var}}(\hat{\beta}_3) +2z\widehat{\operatorname{Cov}}(\hat{\beta}_1,\hat{\beta}_3). $$

This follows by expanding the variance of a sum: for random quantities \(A\) and \(B\), \(\operatorname{Var}(A+zB)=\operatorname{Var}(A)+z^2\operatorname{Var}(B)+2z\operatorname{Cov}(A,B)\). A \(t\)-based 95% confidence interval for the conditional treatment contrast is the estimate plus or minus \(t^*SE\), using the model’s residual degrees of freedom.

Worked Example: Estimating the Contrast at Baseline Fitness 25

At \(x=25\), \(z=(25-30)/5=-1\). The estimated exercise-versus-control contrast is

$$ \hat{\beta}_1+\hat{\beta}_3z =42+18(-1)=24\text{ m}. $$

The variance estimate includes the covariance term:

$$ \widehat{\operatorname{Var}}(\hat{\beta}_1-\hat{\beta}_3) =10^2+(-1)^2(7^2)+2(-1)(-20) =100+49+40=189\text{ m}^2. $$

Therefore \(SE=\sqrt{189}=13.75\) m, and the 95% confidence interval is

$$ 24\pm1.981(13.75) =24\pm27.24 =(-3.24,\ 51.2)\text{ m}. $$

The estimated contrast is 24 m in favour of exercise, but this interval includes zero. At the 5% two-sided level, the trial does not provide clear evidence of a nonzero treatment contrast specifically at baseline fitness 25. The interval is also compatible with a small negative contrast and with a larger positive one; it should not be reported as proof of no benefit.

Worked Example: Estimating the Contrast at Baseline Fitness 35

At \(x=35\), \(z=(35-30)/5=1\). The estimated treatment contrast is

$$ \hat{\beta}_1+\hat{\beta}_3z =42+18(1)=60\text{ m}. $$

Its estimated variance and standard error are

$$ \widehat{\operatorname{Var}}(\hat{\beta}_1+\hat{\beta}_3) =10^2+1^2(7^2)+2(1)(-20) =100+49-40=109\text{ m}^2, \qquad SE=\sqrt{109}=10.44\text{ m}. $$

The 95% confidence interval is

$$ 60\pm1.981(10.44) =60\pm20.68 =(39.3,\ 80.7)\text{ m}. $$

For participants with baseline fitness 35, the fitted model estimates an exercise-versus-control mean difference of 60 m in 12-week endurance distance. The interval is entirely above zero, providing evidence of a positive conditional contrast at this baseline value under the model and trial assumptions. This is a model-based contrast for participants at that baseline level, not a claim about each individual’s outcome.

Worked Example: Comparing the Contrasts at 25 and 35

The difference between the treatment contrasts at baseline values 35 and 25 is

$$ (\hat{\beta}_1+\hat{\beta}_3(1)) -(\hat{\beta}_1+\hat{\beta}_3(-1)) =2\hat{\beta}_3=2(18)=36\text{ m}. $$

Its standard error is \(2SE(\hat{\beta}_3)=2(7)=14\) m. Thus the 95% confidence interval is

$$ 36\pm1.981(14) =36\pm27.73 =(8.27,\ 63.7)\text{ m}. $$

This interval supports a larger treatment contrast at baseline fitness 35 than at 25, by an estimated 36 m, with a positive difference supported at the 5% level. This comparison is consistent with the interaction test: the two baseline values are 10 units apart, or two increments of 5, so the fitted contrast changes by \(2\beta_3\).

What the Trial Supports—and What It Does Not

The examples separate two questions. First, is there evidence that the treatment contrast changes with baseline fitness? The interaction estimate and its interval address that question. Second, what is the estimated contrast at a particular baseline value? The conditional estimate and its interval address that question. A clear positive contrast at one value does not, by itself, prove that contrasts differ across values; the interaction comparison is the direct evidence about change.

The model predicts control means of 485 m, 510 m, and 535 m at baseline values 25, 30, and 35, respectively. Its corresponding fitted treatment contrasts are 24 m, 42 m, and 60 m. These are estimated group mean comparisons, not guaranteed outcomes for individuals. The observed baseline range of 22 to 38 includes all three values, so the examples do not require extrapolation beyond the trial’s range. Even within that range, the linear interaction assumption should be considered when interpreting the pattern.

Because treatment was randomized, conditional comparisons can have a causal interpretation as effects of assignment at a given pre-treatment fitness value, provided the trial’s conduct and model assumptions support that interpretation. The results do not show that changing a person’s baseline fitness would cause their treatment benefit to change. Baseline fitness was measured, not randomly assigned.

Common Mistake: Comparing Separate Significance Results

A common mistake is to say, “The effect is significant at fitness 35 but not at fitness 25, so the effects must differ.” That reasoning is not valid: one interval excluding zero and another including zero does not itself test the difference between the effects. The relevant comparison is the interaction, or a direct contrast such as the estimated 36 m difference between fitness 35 and 25 with its own standard error and interval. In this hypothetical trial, that direct interval is positive; in another trial it might not be.

Key takeaway: In a treatment-by-baseline-fitness model, the conditional treatment contrast is \(\beta_1+\beta_3z\). Its uncertainty depends on the variances and covariance of the coefficient estimates. Report the baseline value, outcome units, interval, and the limits of the trial evidence.

Check Your Understanding

Use the model and hypothetical results in this tutorial.

  1. What does \(\beta_1\) represent when baseline fitness is 30?
  2. What does a positive \(\beta_3\) mean for the fitted treatment contrast as baseline fitness increases?
  3. Why must the covariance between \(\hat{\beta}_1\) and \(\hat{\beta}_3\) be included when calculating a conditional standard error?
  4. At baseline fitness 25, the 95% interval includes zero. What conclusion is warranted, and what stronger conclusion is not warranted?
  5. Why is the difference between the separate significance results at baseline fitness 25 and 35 not a substitute for testing the interaction?