Correctly checking for confounders in models
A significant association is not automatically a robust finding. If you want to control for confounders in models, you must decide whether an observed effect can plausibly be attributed to the exposure under investigation or whether a third variable distorts the result. This decision is methodologically central, especially in theses, medical studies, and publication projects: an inappropriately adjusted model can look convincing and yet answer the wrong research question.
What a confounder actually is
A confounder, also known as a confounding variable, is causally related to both the independent variable, such as a treatment or exposure, and the outcome. It does not lie on the causal pathway between the two variables. As a result, it can create, weaken, or even reverse the direction of an association.
A classic example comes from health services research: you are investigating whether physical activity is associated with lower blood pressure. Age often influences both activity levels and blood pressure. If age is not taken into account, part of the observed effect of activity may actually be an age effect.
The key point is: a variable is not a confounder simply because it correlates with multiple variables. Statistical correlation is an indication, but not proof of a causal confounding structure. Whether a variable should be controlled depends on the substantive and temporal logic of your research model.
Why control for confounders in models?
Controlling for confounders is intended to represent the estimated association between exposure and outcome as free from bias as possible. In linear regression, this means, for example, that the regression coefficient of the exposure is interpreted under otherwise comparable values of the included confounding variables. The same basic principle applies to logistic regression, Cox regression, and multilevel models, even though the metrics and their interpretation differ.
Without appropriate adjustment, two typical errors are likely. First, an effect may appear significant even though it is largely explained by age, sex, socioeconomic status, duration of illness, or other factors. Second, a real association may remain hidden because a strongly influential third variable is not included in the model.
For scientific papers, it is not enough to include a control variable simply because it is common practice. Examiners, co-authors, and reviewers expect a clear rationale: Why was this variable adjusted for? Why were other variables deliberately not controlled? This is precisely the logic that turns a regression analysis into a methodologically robust evaluation.
The most important distinction: confounder, mediator, or collider?
The most common source of error is not omitting an obvious confounder, but controlling for the wrong variable. Three roles must be clearly distinguished.
A confounder precedes the exposure in time and influences both the exposure and the outcome. Age, for example, can influence educational attainment and health status. When estimating a direct association between educational attainment and health status, adjusting for age may be appropriate.
A mediator lies on the causal pathway. If a training program improves fitness, which in turn increases performance, fitness is a mediator. If you control for fitness, you are no longer estimating the overall effect of the training program on performance, but rather the effect that is not mediated through fitness. This can be a meaningful question, but it is a different research question.
A collider is influenced by two variables. If both stress and sleep deprivation increase the likelihood of being signed off work sick, being signed off work sick is a collider. Adjusting for it can create an artificial association between stress and sleep deprivation. More variables in the model therefore do not automatically mean greater scientific quality.
Causal diagrams, also known as directed acyclic graphs or DAGs, are particularly helpful for making these distinctions. They make visible which variables precede the exposure, which mechanisms mediate, and where adjustment could create new biases.
How to select control variables based on substantive reasoning
Do not start with an automatic variable selection procedure, but with your research question. State precisely which effect you want to estimate: the overall effect of an exposure, a direct effect, or a purely predictive association? Only then can you assess which variables belong in the model.
Next, check three questions for each potential control variable: Did it occur before the exposure? Does it plausibly influence the exposure? Does it independently influence the outcome? If these conditions are met, there are strong reasons to adjust for it.
Scientific literature, clinical experience, and the study design are often more informative than a p-value. A variable can be a relevant confounder even if it is not significantly associated with the outcome in your sample. Conversely, a highly significant variable is not necessarily a confounder. Significance tests do not answer causal questions.
In smaller samples, you must also model sparingly. Every additional parameter reduces estimation precision. Especially in logistic regression with few events, an overfitted model can lead to unstable estimates and very wide confidence intervals. Here, a reasoned prioritization of the most important confounders is needed instead of a long list of available variables.
Practical implementation in regression models
For continuous outcomes, control is usually implemented using multiple linear regression. In addition to the main variable, the identified confounders are included as covariates. For dichotomous outcomes, logistic regression is often used, and for survival times, Cox regression.
Make sure to model variables appropriately. Age does not always have to enter linearly. If the association with the outcome is curved, splines or polynomial terms may be more appropriate. Categorical variables require a transparent reference group. For continuous confounders, arbitrary dichotomization, such as "young" versus "old", is usually detrimental: it loses information and can promote residual confounding.
In observational studies, propensity score methods may also be useful in addition to classic covariate adjustment. These include matching, weighting, or stratification. They are not a shortcut for missing substantive considerations. Here too, the quality of the result depends on whether the relevant confounders were measured and correctly included in the model.
Unmeasurable or uncollected confounders remain a risk. This should be openly stated in the discussion section. Sensitivity analyses can show how stable the key results remain under alternative adjustment sets, model assumptions, or sample definitions.
What you should check before interpretation
Compare an unadjusted model with an adjusted model. If the effect of the main variable changes significantly, this is an indication that confounding may be relevant. A fixed threshold, such as a ten percent change in the coefficient, can serve as a guide, but it does not replace a substantive rationale.
Also check for multicollinearity. If age, work experience, and years of service are highly correlated, individual coefficients will quickly become imprecise and difficult to interpret. This does not automatically mean that a variable must be removed. The key is which variable best represents the confounding structure from a substantive perspective and how transparently the model decision is documented.
Interactions must be distinguished from confounding. If a treatment effect differs between women and men, this may be an effect modification. Sex can therefore be both a confounder and an effect modifier. A simple control term may not be sufficient - an interaction term or separate analyses may be required.
Report results in a transparent manner
In the methods section, you should provide a rationale for the selection of confounders in advance, ideally based on literature, clinical plausibility, or a causal diagram. State the model used, the coding of key variables, the handling of missing values, and the planned sensitivity analyses.
In the results section, unadjusted and adjusted effect estimates with confidence intervals should be presented side by side. Formulate your findings cautiously: an adjusted association is not automatically proof of causality. Especially with cross-sectional data and non-randomized designs, selection bias, measurement error, and unmeasured confounding remain possible explanations.
If you are still unsure about the selection of covariates, the model form, or the interpretation of your effects, a methodological review before final submission is worthwhile. At Easy Statistik, you will receive an individual assessment from PhD statisticians - discreetly, transparently, and tailored to your specific research question. Use the contact form for this purpose. A well-reasoned control of confounders not only creates better tables but also gives your scientific statement the confidence it needs.