Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Which Variables Should Be Measured to Control for Confounding?

Confounding control requires more than adding demographic characteristics to a regression model. Learn how to identify relevant confounders using causal assumptions, distinguish confounders from mediators and colliders, and determine which variables must be measured to support a defensible causal estimate.

765
Selecting Variables for Confounding Control Guide 765 of 1272
01 · The Question

How Do You Know Which Variables Actually Need to Be Controlled?

You are investigating whether students who use generative AI tools achieve better academic writing performance than students who do not.

The initial analysis shows an association between AI use and writing scores. However, students who choose to use AI may differ from nonusers in prior writing proficiency, motivation, technological access, and other characteristics.

Some of these differences could explain part or all of the observed association. Others may have little relevance to confounding, while adjusting for certain variables could actually introduce bias.

Should you control for age, gender, socioeconomic status, motivation, baseline writing proficiency, and every other variable available in the dataset? Would a stepwise regression procedure identify the correct controls? Could you simply include all variables significantly associated with the outcome?

The difficulty is that confounding is not defined by statistical significance alone. It concerns the causal relationships that make an observed association differ from the effect researchers intend to estimate.

Choosing variables for confounding control therefore requires an explicit understanding of the research question, temporal ordering, and plausible causal structure.

02 · The Short Answer

Measure Confounders According to a Defensible Causal Model

In Brief

Researchers should select variables for confounding control using substantive knowledge and explicit causal assumptions about the exposure, outcome, and their common causes. Directed acyclic graphs and related causal reasoning can help identify appropriate adjustment sets and avoid controlling for variables that may introduce bias.

Not every variable associated with an outcome is a confounder, and measuring every available covariate does not guarantee unbiased estimates. The appropriate variables depend on the causal estimand, study design, timing of measurements, and whether the assumptions required for identification are credible.

03 · What You Need to Know

Identifying Confounders Without Introducing New Sources of Bias

What Is Confounding?

Confounding occurs when an observed association between an exposure and outcome is distorted by other causal relationships, so that the association does not represent the causal effect of interest.

Consider a study examining the effect of voluntary AI tool use on writing performance.

Students with stronger prior writing proficiency may be more likely to adopt AI tools. Prior proficiency may also influence subsequent writing scores.

Under this assumed causal structure, prior proficiency creates a pathway connecting AI use and writing performance that does not represent the effect of AI use itself.

If the pathway is not addressed, the observed association may reflect both the effect of AI use and differences in prior proficiency.

Confounding is therefore a problem of causal structure rather than merely an imbalance in observed characteristics.

Why the Traditional Confounder Checklist Is Incomplete

Confounders are often described as variables associated with both exposure and outcome that are not consequences of the exposure.

This description can be useful as an introductory heuristic, but it is not a complete causal definition.

A variable may be statistically associated with both exposure and outcome without being appropriate for adjustment.

Conversely, a variable may be important to a causal adjustment strategy even when its association is weak or imprecisely estimated in the available sample.

Modern causal inference emphasizes identifying the causal pathways that create noncausal associations and determining which variables must be conditioned on to block those pathways.

The distinction matters because statistical association alone cannot reveal the direction of causation or identify whether a variable is a mediator, collider, or confounder.

Start With the Causal Estimand

Before selecting confounders, researchers should define the effect they intend to estimate.

For example, the question may concern the total effect of AI tool use on writing performance.

Alternatively, it may concern the effect of AI use not operating through writing self-efficacy, or the effect among a particular subgroup.

These are different causal quantities and may require different analytical strategies.

Adjusting for a mediator may be inappropriate when estimating a total effect but relevant to a carefully specified direct-effect analysis under additional assumptions.

Researchers should therefore avoid treating covariate selection as a generic step independent of the estimand.

ICH E9(R1) provides a formal framework for specifying estimands in clinical trials, while broader causal inference literature extends these principles to other study designs.

Directed Acyclic Graphs Can Clarify Confounding Assumptions

A directed acyclic graph, or DAG, represents assumed causal relationships using variables and directed arrows.

For example, consider the following simplified causal structure:

Conceptual Illustration
Prior writing proficiency → AI tool use → Writing performance
The proposed causal effect runs from AI tool use to writing performance.
An additional pathway is assumed: Prior writing proficiency → Writing performance.

Together, these relationships create the backdoor path:

AI tool use ← Prior writing proficiency → Writing performance.

Under this simplified DAG, conditioning appropriately on prior proficiency can block the backdoor path.

However, the DAG is an expression of assumptions, not evidence that the assumed relationships are true.

Researchers should develop the graph using substantive knowledge, theory, and relevant empirical evidence.

An incomplete or incorrect DAG can lead to an inappropriate adjustment set.

What Is a Backdoor Path?

A backdoor path is a path connecting exposure and outcome that begins with an arrow entering the exposure.

Some backdoor paths transmit noncausal association and must be blocked for identification of a total causal effect under the backdoor criterion.

For example, if prior proficiency causes both AI use and writing performance, the path through prior proficiency is open unless appropriately conditioned on.

However, not every backdoor path is open, and not every variable appearing along a path should be adjusted for.

Colliders can block paths unless conditioning or other selection mechanisms open them.

Researchers should therefore use the formal rules of d-separation or appropriate causal graph tools rather than merely counting arrows or adjusting for every connected variable.

What Is a Sufficient Adjustment Set?

A sufficient adjustment set is a collection of variables that, under specified causal assumptions and an applicable identification criterion, allows relevant noncausal pathways to be blocked.

More than one sufficient set may exist.

For example, a causal graph may permit adjustment for one common cause or for another combination of variables that blocks the same problematic pathways.

The smallest set by variable count is not necessarily the most practical or statistically efficient choice.

Measurement quality, missingness, sample size, and the precision of the resulting estimate may also matter.

Researchers should distinguish a theoretically sufficient adjustment set from one that can actually be measured adequately in the proposed study.

In some causal structures, no sufficient adjustment set of available observed variables exists.

Measure Important Confounders Before Exposure When Appropriate

Temporal ordering is central to causal interpretation.

For many studies, measuring potential confounders before the exposure or intervention helps establish that the measured characteristics were not consequences of the exposure.

For example, baseline writing proficiency measured before AI tool adoption may be more suitable for confounding control than writing proficiency measured after extensive AI use.

However, not every variable measured after exposure is necessarily caused by that exposure, and not every baseline variable is a confounder.

The causal role depends on the actual relationships, not merely the calendar date of measurement.

Time-varying confounding requires additional care because confounders may change over time and may themselves be affected by earlier exposure.

Conventional regression adjustment can be inappropriate for some such structures, and methods such as marginal structural models may be needed under suitable assumptions.

Distinguish Confounders From Mediators

A mediator lies on a causal pathway through which an exposure influences an outcome.

Suppose AI tool use increases students' opportunities to revise their writing, and revision activity subsequently improves writing performance.

Revision activity may then be a mediator.

If the primary objective is to estimate the total effect of AI tool use, adjusting for revision activity may remove part of the effect of interest.

This is sometimes called overadjustment.

However, mediation analysis may legitimately involve the mediator when the objective is to investigate causal mechanisms and the necessary assumptions are addressed.

The key distinction is whether the variable represents a cause of both exposure and outcome or a consequence of exposure along the pathway to the outcome.

The same observed variable may occupy different causal roles in different research settings.

Distinguish Confounders From Colliders

A collider is a variable that receives causal arrows from two other variables along a path.

Consider a hypothetical structure in which both AI tool use and writing difficulty influence whether a student seeks additional academic support.

Seeking support is then a common effect of AI use and writing difficulty under the assumed model.

If writing difficulty also influences final writing performance, conditioning on support-seeking may create an association between AI use and writing difficulty that was not present through that path before conditioning.

This is an example of collider stratification bias.

Researchers should not assume that controlling for a variable makes groups more comparable simply because it is associated with both the exposure and outcome.

Its position within the causal structure determines whether adjustment is appropriate.

Why Adjusting for Every Available Variable Can Be Harmful

Including every available covariate in a regression model may appear conservative.

However, unnecessary adjustment can introduce several problems.

  • Collider bias: Conditioning on a common effect may open a noncausal pathway.
  • Overadjustment: Conditioning on a mediator may remove part of the total effect.
  • Reduced precision: Unnecessary variables may increase estimation uncertainty in some models.
  • Measurement error: Poorly measured covariates may fail to control confounding adequately and can complicate interpretation.
  • Missing-data losses: Including variables with substantial missingness may reduce the analyzed sample under complete-case procedures.

These problems are context-dependent. Some prognostic covariates can improve precision, and additional measurements can be valuable when appropriately used.

The principle is to select adjustment variables through causal and statistical reasoning rather than indiscriminate inclusion.

Statistical Significance Is Not a Reliable Confounder Selection Rule

Researchers sometimes select covariates using bivariate p-values or stepwise regression procedures.

For example, they may include only variables significantly associated with the outcome or exposure.

This approach can omit important confounders whose associations are estimated imprecisely.

It can also include variables that should not be adjusted for under the assumed causal structure.

A nonsignificant association does not establish that a variable is causally irrelevant.

Likewise, a statistically significant association does not establish that a variable is a confounder.

Statistical procedures may help evaluate model performance or estimate parameters, but they cannot replace the substantive assumptions needed to identify causal effects.

Confounding Control Depends on the Research Design

Randomized experiments and observational studies face different confounding considerations.

In an appropriately randomized trial, treatment assignment is independent of baseline potential outcomes and baseline characteristics in expectation, subject to the randomization design.

Consequently, baseline confounding of assignment is addressed by the design rather than by measuring every possible confounder.

Baseline covariates may still be collected to improve precision, support planned subgroup analyses, or address other methodological objectives.

In observational research, exposure assignment is not controlled by the investigator, and confounding may require a more substantial identification strategy.

However, observational studies do not become causally valid merely by collecting many background variables.

Researchers must consider whether important common causes are measured and whether the necessary assumptions are credible.

Selection Bias and Confounding Are Different Problems

Confounding concerns noncausal associations arising from the causal structure connecting exposure and outcome.

Selection bias can arise when inclusion in the sample or analysis depends on variables that create distorted associations.

For example, conditioning on participation may introduce collider bias when participation is influenced by exposure-related and outcome-related factors.

Adjusting for baseline confounders does not necessarily resolve selection bias introduced through recruitment or missing outcomes.

Researchers should therefore evaluate sampling bias and selection mechanisms separately from confounding control.

Some variables may be relevant to both problems, but the corresponding analytical assumptions are not identical.

Measurement Error Can Leave Residual Confounding

Even when a relevant confounder is included in the dataset, poor measurement may prevent adequate adjustment.

For example, prior writing proficiency measured through a single unvalidated self-rating may not adequately represent actual baseline writing ability.

If the measured variable captures the confounder imperfectly, residual confounding may remain.

Researchers should therefore consider validity, reliability, timing, and the level of detail required for important confounders.

In some circumstances, multiple indicators or more appropriate instruments may improve measurement.

However, no measurement strategy guarantees complete control of confounding.

Researchers should distinguish the presence of a covariate in the model from evidence that the relevant causal pathway has been adequately addressed.

Unmeasured Confounding May Remain

Researchers rarely have perfect information about every relevant causal factor.

Some confounders may be unknown, difficult to measure, or unavailable in existing datasets.

Consequently, an adjusted observational estimate may remain vulnerable to unmeasured confounding.

Sensitivity analyses can examine how strong an unmeasured confounding mechanism would need to be to alter particular conclusions under specified assumptions.

Negative controls, instrumental variables, and other identification strategies may also be useful in suitable settings, but each requires its own assumptions.

Researchers should not describe an observational association as definitively causal merely because several measured covariates were included in regression.

What About Variables Associated Only With the Outcome?

A variable that predicts the outcome but does not create a relevant confounding pathway may still be useful for statistical precision.

For example, baseline writing proficiency may strongly predict final writing performance in a randomized trial.

Adjusting for it in an appropriate prespecified analysis may improve precision even though randomization addresses confounding of treatment assignment.

This is different from measuring the variable because it is required to block a backdoor path.

Researchers should distinguish covariates selected for causal identification from those selected for precision or other analytical purposes.

The distinction helps explain why the appropriate adjustment set depends on both causal assumptions and statistical objectives.

Can a Proxy Variable Control for an Unmeasured Confounder?

Researchers sometimes use proxy variables when a confounder cannot be measured directly.

For example, prior academic grades might be used as an imperfect indicator of earlier writing proficiency.

However, a proxy does not automatically block the confounding pathway created by the underlying construct.

Its usefulness depends on the measurement relationship, causal structure, and analytical method.

Ordinary regression adjustment for a noisy proxy may leave residual confounding.

Specialized proxy-based identification approaches exist, but they require additional assumptions and suitable data.

Researchers should not claim that a confounder has been fully controlled merely because a related variable was included.

Use a Causal Variable Selection Matrix

A variable selection matrix can document why particular covariates are measured and how they will be used.

Candidate variable Assumed causal role Potential analytical decision
Prior writing proficiency Possible common cause of voluntary AI use and final performance Consider adjustment under the specified DAG
Baseline technological access Possible cause of AI adoption and performance-related opportunities Evaluate as a potential confounder
Post-exposure revision activity Possible mediator Do not automatically adjust when estimating the total effect
Support-seeking after exposure Possible collider under a specified structure Avoid inappropriate conditioning
Academic program Potential contextual or confounding factor Evaluate causal relevance rather than adjust automatically
Participant study identifier Data linkage variable Use for appropriate data structure, not as a substantive confounder

The classifications are hypothetical. Their appropriateness depends on the actual causal relationships in the population.

Researchers should not transfer the table mechanically to another study.

The matrix should be developed alongside the causal diagram, measurement plan, and primary analysis specification.

Measure Confounders Before Finalizing the Analysis Plan

Confounding control should be considered during study design rather than after the data have been collected.

Researchers should identify the causal effect of interest, develop a plausible causal model, determine which variables are needed for identification, and evaluate whether they can be measured adequately.

These decisions should be aligned with identifying variables essential to the primary research question.

If essential confounders cannot be measured or addressed through another credible strategy, the study may need to limit its claims to association rather than causation.

Transparent acknowledgment of identification limitations is preferable to presenting extensive statistical adjustment as proof that confounding has disappeared.

Watch Out

Do not select confounders solely because they are statistically significant or commonly reported in previous studies. Causal adjustment requires explicit assumptions about the relationships among exposure, outcome, and other variables. Inappropriate adjustment can introduce bias rather than remove it.

04 · A Practical Example

Selecting Confounders for an Observational Study of AI Tool Use

Hypothetical Example

Does Voluntary AI Tool Use Improve Writing Performance?

A research team investigates whether students who voluntarily use generative AI tools achieve different argumentative writing scores from students who do not use these tools.

The researchers intend to estimate a causal effect, but AI use is not randomly assigned.

Students may differ in prior writing proficiency, technological access, motivation, and other characteristics that influence both adoption and performance.

The team therefore develops a causal diagram before deciding which variables to measure.

Evaluating Candidate Variables

Variable Hypothesized role Planning implication
Prior writing proficiency Common cause of AI adoption and later writing performance Measure before exposure and consider adjustment
Baseline technological access Potential cause of AI use and learning opportunities Evaluate relevant backdoor pathways
Baseline learning motivation Possible common cause Assess conceptual relevance and measurement validity
Revision activity after AI use Potential mediator Do not automatically control when estimating the total effect
Seeking additional support Potential collider or other causal role depending on structure Specify relationships before adjustment
Academic program Possible contextual cause of adoption and performance Evaluate rather than include automatically

The team recognizes that the correct adjustment set cannot be established from the variable names alone.

It depends on the causal assumptions represented in the diagram.

Developing the Adjustment Strategy

Define the estimand. The researchers specify the total causal effect of voluntary AI tool use on final writing performance.
Develop causal assumptions. They use theory and previous evidence to identify plausible common causes and other pathways.
Identify a sufficient set. The team evaluates which measured variables could block relevant noncausal paths under the assumed DAG.
Check measurement timing. Candidate baseline confounders are measured before the relevant exposure whenever appropriate.
Avoid inappropriate controls. Proposed mediators and colliders are not automatically included in the primary adjustment model.
Assess remaining uncertainty. The researchers discuss possible unmeasured confounding and plan sensitivity analyses where suitable.

Suppose the adjusted association differs from the unadjusted association.

This difference may be consistent with confounding, but it does not independently establish that the adjusted estimate is unbiased or causal.

The credibility of the conclusion depends on the causal model, measurement quality, positivity, consistency, exchangeability, and other assumptions relevant to the design.

The researchers should report these assumptions and avoid claiming that statistical adjustment has definitively eliminated confounding.

05 · What Researchers Often Get Wrong

Common Misconceptions About Confounding Control

Misconception

Every Variable Associated With the Outcome Is a Confounder

Outcome association alone does not establish confounding. The variable's causal relationship with exposure and outcome determines whether it belongs in an adjustment strategy.

Misconception

Including More Covariates Always Reduces Bias

Additional adjustment can introduce collider bias, remove mediated effects, or create other analytical problems. Covariate selection should follow a defensible causal model.

Misconception

Only Statistically Significant Variables Should Be Controlled

Statistical significance does not determine causal relevance. Important confounders may have imprecisely estimated associations in the available sample.

Misconception

Every Baseline Variable Is Safe to Adjust For

Baseline timing does not automatically establish that a variable is an appropriate control. Its role depends on the causal structure and intended estimand.

Misconception

Adjusting for a Mediator Always Improves the Estimate

When estimating a total effect, adjustment for a mediator may remove part of the effect of interest. Direct-effect analyses require separate objectives and assumptions.

Misconception

A Regression Model With Many Controls Establishes Causation

Regression adjustment does not guarantee that all relevant confounding pathways have been blocked. Causal interpretation requires credible identification assumptions and appropriate measurement.

06 · What This Means for You

Select Confounders Through Causal Reasoning Before Statistical Modeling

Begin by defining the causal effect of interest and specifying the exposure and outcome.

Then identify plausible causal relationships using substantive knowledge and an explicit conceptual or graphical model.

A Simple Decision Framework

If a variable is a plausible common cause of exposure and outcome
Evaluate whether it belongs in a sufficient adjustment set and can be measured appropriately.
If a variable is caused by the exposure
Determine whether it is a mediator, collider, or another post-exposure variable before considering adjustment.
If a variable is associated with the outcome but has no relevant confounding role
Consider whether it serves a precision or descriptive purpose rather than treating it automatically as a confounder.
If an important confounder cannot be measured
Assess alternative identification strategies, sensitivity analyses, and limitations on causal claims.
If several adjustment sets are possible
Evaluate causal sufficiency, measurement quality, missingness, precision, and practical feasibility.

Document the selected adjustment strategy before examining the main outcome associations whenever possible.

Where uncertainty exists about the causal structure, consider how alternative plausible assumptions affect the adjustment set and resulting conclusions.

The objective is not to control for the greatest number of variables. It is to identify and address the sources of confounding relevant to the causal question.

07 · A Quick Checklist

Before Selecting Variables for Confounding Control

Review the proposed adjustment strategy:
Define the causal estimand, exposure, outcome, and target population.
Develop explicit causal assumptions using substantive evidence and theory.
Identify plausible common causes and relevant noncausal pathways.
Use a DAG or another defensible causal framework to evaluate adjustment sets.
Distinguish confounders from mediators, colliders, and other variable roles.
Consider temporal ordering and measure relevant confounders appropriately.
Evaluate measurement error, missingness, and the feasibility of collecting important covariates.
Avoid relying solely on p-values or automatic stepwise selection.
Plan appropriate sensitivity analyses for consequential unmeasured confounding.
08 · Frequently Asked Questions

Frequently Asked Questions About Selecting Confounding Variables

How do researchers identify confounding variables?

They use substantive knowledge and explicit causal assumptions to identify variables involved in noncausal pathways between exposure and outcome. DAGs can help determine appropriate adjustment sets.

Should every variable associated with the outcome be controlled?

No. Outcome association alone does not establish confounding. Some variables may be mediators, colliders, or predictors that are not required for causal identification.

Can controlling for too many variables introduce bias?

Yes. Inappropriate adjustment can open collider paths or remove parts of a total effect. Additional covariates may also create precision or missing-data problems.

Should confounders be selected using p-values?

Not as the sole criterion. Statistical significance does not establish causal relevance, and important confounders may fail conventional significance thresholds.

Must confounders be measured before exposure?

Pre-exposure measurement is often preferable for baseline confounders, but timing alone does not determine causal role. Time-varying confounding may require specialized designs and methods.

What is the difference between a confounder and a mediator?

A confounder contributes to a noncausal association between exposure and outcome, while a mediator lies along a causal pathway from exposure to outcome. Their treatment in analysis depends on the estimand and causal structure.

Can a proxy variable eliminate confounding?

Not automatically. A proxy may incompletely represent the underlying confounder, leaving residual confounding. Specialized methods may be useful under additional assumptions.

Does adjusting for confounders prove a causal relationship?

No. Causal interpretation depends on assumptions about the causal structure, measurement, selection, positivity, and other design features. Statistical adjustment alone cannot guarantee unbiased causal estimates.

09 · The Bottom Line

Confounding Control Requires the Right Variables, Not the Most Variables

The Bottom Line

Variables for confounding control should be selected through explicit causal reasoning, with attention to the intended estimand, relevant backdoor pathways, measurement quality, and the consequences of inappropriate adjustment.

Use substantive knowledge and causal diagrams to identify defensible adjustment sets. Do not assume that statistical significance or the availability of additional covariates establishes their suitability. Even carefully planned adjustment may leave uncertainty from unmeasured confounding, which should be reflected in the interpretation of findings.

10 · Sources and Further Reading

Authoritative Sources on Confounding and Causal Adjustment

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes