Tutorials › Regression Analysis (Undergraduate) › Choosing Baseline Covariates Before Analysis

Regression in Randomized Studies · Tutorial 900 of 991

Choosing Baseline Covariates Before Analysis

Use the trial protocol and prior knowledge to choose baseline covariates before seeing outcome results, and recognize the risks of outcome-driven selection.

Intermediate 11 min read

What You'll Learn

  • Distinguish pre-treatment covariates from variables observed after treatment begins.
  • Identify baseline measurements that are plausibly prognostic for the outcome.
  • Build a small adjustment set from the protocol and subject-matter knowledge.
  • Explain why repeatedly screening covariates against observed outcomes can mislead.
  • Describe what a pre-specified regression analysis should record.

Why Decide on Covariates Before Looking at Outcomes?

In a randomized trial, the primary goal is to estimate the treatment effect defined by the trial’s estimand. Baseline covariates can be included in a regression model to improve precision when they predict the outcome, as discussed in the earlier material on baseline adjustment. The practical question is not simply which available variables can be entered into software. It is which small set can be justified before examining the trial outcomes.

A pre-analysis choice helps keep the analysis connected to the trial protocol and to knowledge about the outcome. It also limits the temptation to search through many possible adjustments until one produces a preferred treatment estimate, a smaller standard error, or a more impressive test result. Such searching makes the reported analysis harder to interpret: the results reflect both the trial data and the choices prompted by those data.

Definition: A baseline covariate is a measured characteristic of a trial participant recorded before treatment assignment or before the assigned treatment can affect it. A covariate is prognostic when its value contains useful information about the outcome, regardless of which treatment is assigned. A pre-specified adjustment set is the small set of covariates chosen using the protocol and prior knowledge before the outcome results are examined.

For example, a participant’s baseline value of the outcome is often prognostic for a later measurement of that outcome. A baseline severity measure might also be useful if clinical knowledge or prior evidence indicates that severity predicts the endpoint. By contrast, a variable should not be included just because it happens to show an interesting pattern in the current trial’s outcome data.

A Practical Basis for Choosing the Set

Start with the protocol and the trial’s measurement plan. Then use subject-matter knowledge and relevant prior evidence to identify a few baseline variables expected to predict the primary outcome. A good selection is not a mechanical rule that every trial must adjust for the same variables. It is a documented rationale for why particular measurements are relevant to this outcome and available for the intended participants.

  • Prioritize strong predictors. Prefer variables with a clear rationale for predicting the outcome, such as a baseline measurement of that outcome when appropriate.
  • Use a short, purposeful list. Each additional term uses information from the data and may make estimates less stable, especially in a small trial. Do not enter every recorded variable merely because it is available.
  • Check that measurement timing is genuinely baseline. Choose characteristics established before treatment could affect them. The distinction is important even when a variable’s name sounds like a participant characteristic.
  • Respect the protocol. Record the intended covariates, outcome, and analysis approach in advance. If a change becomes necessary, explain what prompted it and distinguish the revised analysis from the original plan.
  • Consider whether the measurements can be used as planned. Availability, coding, and substantial missingness can affect whether a proposed covariate can be included consistently. These practical concerns should be addressed before outcome-based comparisons are made.

For an ordinary common-slope ANCOVA analysis, the stated model should match the planned covariates. In its simplest form, with \(T_i=1\) for assignment to treatment and \(T_i=0\) for assignment to control, it is

$$ Y_i=\beta_0+\tau T_i+\gamma_1X_{i1}+\cdots+\gamma_qX_{iq}+\varepsilon_i. $$

Here \(Y_i\) is the outcome for participant \(i\), the \(X\) variables are the selected baseline covariates, and \(\tau\) is the treatment contrast represented by this model. For the usual regression-based uncertainty calculations, the model must also be used with an appropriate account of the trial’s design and dependence, and its assumptions must be considered. In particular, this form assumes the covariate relationships are represented adequately by the included terms and uses a common treatment contrast across the modeled covariate values. The selection question in this tutorial is about choosing the baseline covariates—not about choosing a model by inspecting which version gives the most favorable result.

Worked Example: Turning a Protocol Into a Short Adjustment Set

Consider a hypothetical randomized trial of a program intended to reduce a symptom score measured at follow-up. Before outcomes are examined, the team lists four candidate baseline variables. Prior evidence and clinical knowledge suggest the baseline symptom score explains about 36% of outcome variation, and baseline severity explains a further 12% after accounting for the baseline score. The expected additional contributions from age and a general health checklist are 1% and 0.5%, respectively. These are hypothetical planning estimates, not results from the trial.

Choose the strongest supported predictors. The baseline score and severity have the clearest expected predictive value. Their approximate combined explained variation, using the stated sequential contributions, is \(36\%+12\%=48\%\). The expected contribution from age is much smaller at 1%, and the checklist’s is smaller still at 0.5%.

Apply the protocol and measurement checks. Suppose both the baseline score and severity measure are specified in the protocol and collected before assignment. The planned adjustment set can include these two variables. Age and the checklist need not be added just because they are recorded.

State the choice without using trial outcome comparisons. The rationale is that the baseline score and severity were selected before outcome results were available and were expected, based on prior information, to predict follow-up symptoms. The calculation \(36\%+12\%=48\%\) summarizes the stated planning evidence; it does not guarantee that the trial will achieve exactly that amount of explained variation.

Why Outcome-Driven Screening Is Risky

Suppose analysts examine the outcome data, compare many candidate covariates, and then keep the ones that appear most predictive. Even if every candidate is unrelated to the outcome in the population, some will show an apparently strong association by chance. If the same data are used to find a pattern and then report an analysis that treats the chosen model as if it had been fixed in advance, the usual interpretation of the model’s uncertainty can be misleading. The reported standard error and test do not, by themselves, account for the search that produced the selected model.

Outcome-driven selection can also change the estimated treatment contrast. In a particular randomized sample, treatment assignment may happen to be associated with a candidate covariate. Adjusting for that covariate can then move the treatment coefficient. If the variable was chosen after examining outcome patterns, that movement may reflect the selection process as well as a defensible prognostic adjustment. A moved estimate is not automatically wrong, and a pre-specified adjustment is not guaranteed to equal the unadjusted estimate. The concern is that a choice made in response to observed results can be presented as though it were independent of those results.

A simple calculation illustrates how many opportunities for chance findings can accumulate. If 20 independent candidate tests are each conducted at a 5% false-positive rate when their null hypotheses are true, the chance of at least one false positive is

$$ 1-(1-0.05)^{20}=1-0.95^{20}\approx 0.6415. $$

Thus, under the stated independence and null assumptions, the chance is about 64.15% that at least one test will appear positive. This calculation does not say that every covariate search has exactly this error rate. Candidate variables may be related, and a real trial may include genuinely prognostic covariates. It does show why a result selected from many opportunities should not be interpreted as though only one pre-planned comparison had been made.

Worked Example: A Search Produces a “Best” Candidate

In a hypothetical trial, an analyst considers 20 baseline variables after seeing the outcome data. For illustration, assume all 20 tests are independent and all corresponding null hypotheses are true. Each test uses a 5% threshold.

Calculate the chance of no false positives. For any one test, the probability of not obtaining a false positive is \(1-0.05=0.95\). Under the independence assumption, the probability that all 20 tests avoid a false positive is \(0.95^{20}\approx0.3585\).

Calculate the chance of at least one false positive. The complement is \(1-0.3585=0.6415\), or about 64.15%. If the analyst chooses the most impressive-looking candidate, its apparent predictive strength is selected partly because it stood out among many opportunities.

Interpret the result. A small p-value for the chosen candidate cannot be read as if that candidate had been specified before the search. Nor does the calculation prove that the chosen covariate is useless. It shows why the search process must be acknowledged and why the primary adjustment set should not be selected by screening outcomes for favorable associations.

A Small Numerical Example of Estimate Movement

The following hypothetical data make the effect of adjustment visible. They are not evidence that an analyst should choose a covariate after looking at outcomes. They show why a pre-specified, scientifically justified choice matters: adjustment can change the treatment estimate when the realized groups differ on a baseline predictor.

Worked Example: Raw and Adjusted Contrasts

Suppose four participants are assigned to each group. \(X\) is a baseline score, and \(Y\) is a follow-up outcome. Assume, just for this illustration, that \(X\) was specified in advance and that the common-slope linear relationship is appropriate.

AssignmentBaseline \(X\)Outcome \(Y\)
Control112
Control214
Control316
Control418
Treatment013
Treatment115
Treatment217
Treatment319

Find the unadjusted difference. The control mean outcome is \((12+14+16+18)/4=15\), and the treatment mean is \((13+15+17+19)/4=16\). The treatment-minus-control difference is \(16-15=1\) outcome unit.

Find the baseline imbalance. The control mean of \(X\) is \((1+2+3+4)/4=2.5\); the treatment mean is \((0+1+2+3)/4=1.5\). Thus the treatment-minus-control difference in \(X\) is \(1.5-2.5=-1\) baseline-score unit.

Fit the specified common-slope relationship. In these constructed data, every row satisfies \(Y=10+3T+2X\). For example, a treated participant with \(X=0\) has \(Y=10+3(1)+2(0)=13\), and a control participant with \(X=4\) has \(Y=10+3(0)+2(4)=18\). The adjusted treatment contrast is therefore 3 outcome units.

The adjustment changes the contrast because treatment-assigned participants have a baseline mean one unit lower, and the fitted slope is 2 outcome units per baseline-score unit. In this example, the adjusted contrast equals the raw contrast minus the fitted slope times the baseline difference: \(1-2(-1)=3\). This illustrates estimate movement, not a reason to select \(X\) because it produces a preferred estimate. The defensible reason to adjust would be that \(X\) was chosen in advance as a relevant predictor and that the model is suitable.

Document the Decision and Avoid Common Pitfalls

A useful analysis plan makes the decision reproducible. It names the outcome, treatment coding, baseline covariates, and intended regression form. It gives a short reason for each covariate, such as prior evidence of prognostic value or a protocol-defined measurement. It also records any constraints that could prevent the planned analysis, such as unavailable or unusable measurements. If the plan must change, the report should state what changed and why, rather than obscuring that the choice followed inspection of the outcomes.

Common mistake: “We measured 30 baseline variables, so we tried them all and retained the ones with the strongest outcome associations. The final standard error is small, so the selected model is reliable.”

Correction: Availability alone is not a reason to include a variable. Screening many candidates on the observed outcomes creates opportunities for chance findings and makes ordinary uncertainty calculations incomplete if they ignore the search. Choose a small set using the protocol and prognostic knowledge before examining outcomes. If outcome-informed exploration is conducted, label it exploratory and do not present it as the untouched, pre-specified primary adjustment.

This practice does not mean that a randomized trial’s treatment effect can only be estimated with one particular adjustment set. It means that a primary analysis is more interpretable when its covariates have an independent rationale, are measured before treatment can affect them, and are declared in advance. The result can then be understood as an analysis of the trial under a stated plan rather than as the most favorable model found among many alternatives.

Key takeaway: Select a small set of genuinely baseline, plausibly prognostic covariates using the trial protocol and prior knowledge before examining outcome results. Outcome-driven screening can exaggerate apparent predictive value, shift the treatment estimate, and make standard uncertainty summaries misleading when the search is ignored.

Check Your Understanding

Try these questions before reviewing the tutorial.

  1. What makes a covariate a baseline covariate, and how does that differ from being prognostic?
  2. A protocol names a baseline outcome measure and a prior study supports its predictive value. Why is this a stronger basis for adjustment than selecting a variable because it correlates with the outcome in the current trial?
  3. Under the assumptions in the 20-test example, calculate the probability of no false positives and explain why it is relevant to screening.
  4. In the numerical example, why does the adjusted treatment contrast differ from the raw difference in means?
  5. What information should an analysis plan record about the adjustment set?