Skip to main content
|6 min read|Analysez AI

Confounders: The Hidden Effect in Your Results and How Regression Controls It

A study showed that cities with more pharmacies have higher death rates.

Does that mean pharmacies cause death?

No. Larger cities have more pharmacies and more residents, and naturally more deaths.

A confounder is a hidden variable that makes us see a relationship that does not exist, or hides one that does.

What Exactly Is a Confounder?

A confounding variable is a variable that has the following features:

  1. It is associated with the exposure (the independent variable).
  2. It is associated with the outcome (the dependent variable).
  3. It does not lie on the causal pathway between the two.

The classic example: the relationship between grey hair and heart disease. The confounder here is age, which affects both.

Why Is Confounding a Danger to Your Research?

Because it can lead to conclusions that are the opposite of the truth.

In epidemiology, confounding is a leading cause of misleading results in observational studies.

Simpson's Paradox: the result reverses when the data are split by a third variable. It is a vivid example of the effect of confounding.

How Does Regression Control for Confounders?

Multivariable regression is the main tool for controlling confounders in observational studies.

The idea: instead of measuring the relationship between smoking and lung cancer on its own, you enter age, sex, exposure to chemicals and family history in the model. Regression then holds the confounders constant and gives you the "purified" effect of smoking.

The Practical Steps

1. Identify the possible confounders in theory before the analysis

Base this on the literature and on the logic of the biological or social relationships.

2. Enter them in the model as covariates

In logistic regression this gives an adjusted odds ratio (adjusted OR), and in linear regression an adjusted coefficient.

3. Compare the crude and adjusted estimates

If the odds ratio changes by more than 10% after you add the confounder, that is evidence of real confounding.

4. Report the adjusted results

Crude (unadjusted) results alone are not enough in observational studies.

The Limits of Regression in Dealing With Confounding

Regression controls only for measured confounders. Unmeasured variables (residual confounding) may remain.

For this reason, observational studies, even with a good regression model, do not establish causation the way randomised controlled trials (RCTs) do.

Dealing with confounding properly reduces it. It does not remove it completely.

What Should You Do Now?

In your observational study, list the possible confounders before the analysis, and make sure you report the adjusted results and name the variables you controlled for.

The Analysez AI team specialises in analysing observational studies, including dealing with confounding correctly and writing up the results in a form acceptable for publication.

Subscribe to «نشرة أناليسيز»

One statistical concept a week, with a worked example and a sentence you can adapt for your paper.

Subscribe on LinkedIn

Need help with your statistical analysis?

Run your analysis on Analysez AI: data cleaning, descriptive and inferential statistics, and a publication-ready report.