Why Covariate Adjustment Matters for Sample Size
A randomized trial may measure baseline characteristics that predict the primary outcome, such as a baseline score or disease severity. Adjusting the primary analysis for suitable baseline covariates can reduce residual variation and improve precision. If that reduction is substantial, the planned sample size for an adjusted analysis may differ meaningfully from a calculation based on the outcome’s unadjusted variability.
The important constraint is that the update must concern precision, not redefine the clinical question. The planned treatment effect, outcome scale, target population, and primary estimand remain fixed. Interim data can inform a nuisance quantity such as the variance remaining after adjustment; they should not be used to replace the planned effect with a more favorable observed effect.
Variance and Sample Size for an Adjusted Analysis
Consider a two-arm randomized trial with a continuous primary outcome measured once per participant. Let \(A_i=1\) for assignment to treatment and \(A_i=0\) for control. A standard planning model is
Here \(X_i\) contains prespecified baseline covariates, \(\gamma\) gives their common prognostic effects, and \(\tau\) is the treatment contrast under the common-effect model. The planning calculation below assumes randomization, an approximately equal allocation ratio, a common residual variance across arms, a correctly specified linear covariate relation, and a treatment effect that is constant across the covariate values for the target population. It also uses a large-sample normal approximation.
With \(N\) participants and equal allocation, the variance of the difference between two unadjusted arm means is approximately \(4\sigma_Y^2/N\). With a prespecified, correctly specified adjustment, the corresponding variance is approximately \(4\sigma_e^2/N\). Since \(\sigma_e^2=\sigma_Y^2(1-R^2)\), the variance reduction is summarized by the factor \(1-R^2\). For a two-sided test at level \(\alpha\), a target power \(1-\beta\), and a planned treatment effect \(\delta\), this gives the approximate total sample size:
The sample size is rounded up to an even number for equal allocation. Here \(z_q\) is the \(q\) quantile of the standard normal distribution, and \(\delta\) is in the units of the primary outcome. The formula assumes that the adjusted analysis will actually use the covariates and model used to define \(R^2\). If the calculation is based directly on a residual variance estimate \(\sigma_e^2\), use that estimate in place of \(\sigma_Y^2(1-R^2)\).
The reasoning is that adjustment removes predictable variation from the outcome. Under randomization, the treatment indicator is, on average, not explained by baseline covariates. Its information is approximately \(N/4\) with equal allocation. The variance of the adjusted treatment estimate is therefore approximately \(\sigma_e^2/(N/4)=4\sigma_e^2/N\). Requiring the signal-to-standard-error ratio to reach \(z_{1-\alpha/2}+z_{1-\beta}\) under the planned effect gives the sample size formula above.
Worked Example: Planning With a Prespecified Covariate Model
Suppose a hypothetical trial compares two treatments on a continuous score. The clinically relevant difference is \(\delta=5\) points. Planning assumptions are \(\sigma_Y=15\) points, \(R^2=0.36\), two-sided \(\alpha=0.05\), and 90% power. Assume equal allocation and that the primary analysis will use the same prespecified baseline covariates and linear model.
The normal quantiles are \(z_{0.975}=1.960\) and \(z_{0.90}=1.282\). The residual variance implied by the assumptions is \(\sigma_e^2=15^2(1-0.36)=225(0.64)=144\) points squared.
Round up to an even total of 244 participants, or 122 per arm. The calculation targets 90% power for a 5-point difference under the stated model and variance assumptions. It does not guarantee that the trial will achieve that power if those assumptions are inaccurate.
Using Interim Data for a Sample Size Update
At an interim point, investigators may estimate how much variation the prespecified baseline covariates explain. The update should use a rule set in advance: define the interim data included, the covariate model, how the estimate is calculated, the allowable sample size range, and the final analysis. The planned effect \(\delta\) and significance level are not replaced by interim estimates.
For example, if the design variance was based on an anticipated \(R^2\) of \(0.20\), but an appropriately calculated interim estimate is \(0.30\), the estimated residual variance is lower. Holding the other planning inputs fixed, the sample size ratio is \( (1-0.30)/(1-0.20)=0.875\). This suggests a smaller requirement under the model, but a protocol may prohibit reducing the sample size or may specify a minimum. Conversely, a smaller interim \(R^2\) can imply a larger requirement.
An interim \(R^2\) is itself uncertain, especially when few participants have complete primary outcomes. It can also be optimistic if many candidate covariates are considered and only the most predictive are retained. A prespecified model prevents outcome-driven variable selection from being treated as a reliable source of precision. The protocol can also specify a conservative rule, such as a lower bound on the \(R^2\) used for planning, rather than allowing a noisy high estimate to drive a large reduction.
Worked Example: Updating From an Interim Estimate
In a hypothetical trial, the planned difference is \(4\) mmHg, the assumed unadjusted standard deviation is \(12\) mmHg, and the target is 90% power with two-sided \(\alpha=0.05\). The interim analysis estimates \(R^2=0.25\) for the baseline covariates that will be used in the primary analysis. Assume the estimate is based on the prespecified model, and that the protocol permits a sample size update using this nuisance estimate.
The estimated residual variance is \(12^2(1-0.25)=144(0.75)=108\) mmHg squared. With \(z_{0.975}=1.960\) and \(z_{0.90}=1.282\):
Rounding up to an even number gives 284 participants, or 142 per arm. For comparison, using the unadjusted variance would give \(4(144)(10.51)/16\approx378.4\), requiring 380 participants after rounding up to an even number. This comparison describes the planning consequence of the assumed variance reduction; it does not establish that the interim estimate is accurate. The actual update must follow the prespecified limits and preserve the trial’s final inference procedure.
Preserving the Estimand
An estimand specifies the treatment effect the trial intends to estimate, including the population and outcome being compared. Covariate adjustment can improve precision without changing that target when it uses baseline covariates and the adjusted treatment contrast corresponds to the same target as the planned unadjusted contrast. Under the common-effect model above, \(\tau\) is both the conditional treatment difference at fixed \(X\) and the marginal treatment difference averaged over the target population.
That equivalence needs care when treatment effects vary across covariate values. Suppose the treatment effect is 1 outcome unit for participants with \(X=-1\) and 3 units for participants with \(X=1\). If the target population has equal proportions at those two values, the marginal treatment effect is \((0.5)(1)+(0.5)(3)=2\) units. If instead the target population has proportions 0.75 and 0.25, the marginal effect is \((0.75)(1)+(0.25)(3)=1.5\) units. Thus a marginal effect depends on the target covariate distribution when effects differ.
In that setting, the protocol should define the target estimand and the analysis that estimates it, for example by specifying how conditional effects are averaged over the target population. The sample size update may use predictive information from baseline covariates, but should not silently switch between a conditional coefficient and a marginal treatment contrast. Nor should it adjust for post-randomization variables as if they were baseline prognostic factors: doing so can change the scientific question and introduce bias.
Worked Example: Checking Whether an Update Changes the Target
A hypothetical trial plans to estimate the average treatment difference in a target population with equal proportions of two baseline-risk groups. The expected treatment effects are 1 point in the lower-risk group and 3 points in the higher-risk group. A proposed interim update uses baseline risk to improve the precision calculation.
The planned marginal treatment effect is \(0.5(1)+0.5(3)=2\) points for the specified target population. Using baseline risk to estimate residual variance does not itself change that target, provided the primary analysis still estimates the effect averaged over the same population and the covariate model is prespecified.
If the trial instead changes the target weights to 0.75 and 0.25, the corresponding marginal effect is \(0.75(1)+0.25(3)=1.5\) points. That is a different estimand, not merely a more efficient sample size calculation. The update must therefore retain the planned population weights and treatment-effect definition.
Diagnostics, Alternatives, and Limitations
Before using an interim variance estimate, check whether the analysis matches the assumptions behind the calculation. Examine whether the covariates are baseline measurements, whether the planned functional forms are adequate, and whether residual variability appears substantially different across treatment groups. A strong residual pattern or marked heteroscedasticity means the simple common-variance formula may not describe the primary analysis well. If the interim sample is small, unstable \(R^2\), influential observations, missing outcomes, or incomplete covariate measurements may also make the estimate unreliable.
Covariate adjustment is not guaranteed to reduce realized variance in every finite sample. Its expected precision advantage relies on prognostic covariates and an appropriate model. An unadjusted analysis is simpler and may be less sensitive to model misspecification, but it can be less precise when baseline covariates strongly predict the outcome. The appropriate choice is to prespecify an analysis that matches the estimand and use planning assumptions consistent with that analysis, rather than selecting a method after seeing which produces a more favorable result.
A sample size change based on interim nuisance estimates does not automatically preserve the type I error rate of the final test. The final testing procedure and the adaptation rule must be compatible; earlier material on maintaining a fixed final test explains why this requires explicit planning. Also, the normal approximation may be inadequate with small samples, and the formula does not account for extra sample needs from attrition, missing outcomes, or other design features unless those are added separately.
Common Mistake
A tempting but incorrect argument is: “The interim analysis shows a large \(R^2\), so we can reduce enrollment and use the observed treatment difference as the new effect for the power calculation.” The first part may overstate precision if the estimate is unstable or selected; the second changes a nuisance-parameter update into an effect-based update. The correction is to use a prespecified, suitably cautious estimate of residual variance, keep the planned treatment effect and estimand fixed, and apply the protocol’s specified final inference method. A high \(R^2\) is evidence about prediction in the fitted model, not proof of a larger treatment benefit.
Check Your Understanding
Answer each question, then compare with the brief solutions.
- If \(\sigma_Y^2=100\) and the prespecified baseline model has \(R^2=0.40\), what residual variance does the planning formula use?
- For equal allocation, two-sided \(\alpha=0.05\), 80% power, \(\delta=2\), and residual variance \(64\), calculate the approximate total sample size and round up to an even number. Use \(z_{0.975}=1.960\) and \(z_{0.80}=0.842\).
- Why should a sample size update generally retain the planned treatment effect rather than use the interim observed treatment difference?
- Give one reason an interim estimate of \(R^2\) may overstate the precision gain expected in the final trial.
- In a population with equal proportions of two baseline groups, treatment effects are 2 and 4 outcome units. What is the marginal treatment effect for that population?
Solutions. 1. \(\sigma_e^2=100(1-0.40)=60\) outcome-units squared. 2. \(N=4(64)(1.960+0.842)^2/2^2=256(7.851)/4\approx502.5\), so round up to 504 participants. 3. The observed interim difference is a noisy estimate of treatment effect; using it can change the design based on random variation rather than the prespecified target effect. 4. For example, a small interim sample or selection among many covariates can produce an unstable, overly large \(R^2\). 5. The marginal effect is \(0.5(2)+0.5(4)=3\) outcome units.