Durgical
EN
Open the app

Controlling confounding

  • Concept

Confounding can be prevented when designing a study (chance, restriction, matching) or corrected when analysing it (strata and models).

Updated

What it is

Confounding is controlled at two moments. At design, with randomisation (balances known and unknown factors), restriction (including only one level of the confounder) and matching (pairing exposed and unexposed, or cases and controls, on the confounder). In the analysis, with stratification, the Mantel-Haenszel method, which combines strata into one adjusted measure, and multivariable models such as logistic regression. Only what was measured, and measured well, can be adjusted for.

Worked example

  1. Case-control study of diabetes (cases) and a sedentary lifestyle (exposure), stratified by obesity.
  2. Obese: a = 60, b = 40, c = 30, d = 40 (n = 170). Not obese: a = 20, b = 80, c = 20, d = 160 (n = 280).
  3. Crude OR (strata added: a = 80, b = 120, c = 50, d = 200) = (80 × 200) / (120 × 50) = 16 000 / 6 000 ≈ 2.7.
  4. Stratum ORs: obese (60 × 40) / (40 × 30) = 2.0; not obese (20 × 160) / (80 × 20) = 2.0.
  5. Mantel-Haenszel: numerator = 60 × 40 / 170 + 20 × 160 / 280 ≈ 14.1 + 11.4 = 25.5.
  6. Denominator = 40 × 30 / 170 + 80 × 20 / 280 ≈ 7.1 + 5.7 = 12.8. MH OR ≈ 25.5 / 12.8 ≈ 2.0.
  7. Reading: the crude OR of 2.7 was inflated by obesity; the adjusted OR is 2.0.

Methods for controlling confounding

MethodStageHow it worksLimitation
RandomisationDesignChance spreads confounders evenlyOnly in experimental studies
RestrictionDesignOnly one level of the confounder is included (for example, non-smokers only)Less generalisable; that factor cannot be studied
MatchingDesignGroups are paired on the confounderNeeds a matched analysis; risk of overmatching
Stratification and Mantel-HaenszelAnalysisCompare within each stratum and combineFew confounders at a time
Multivariable regressionAnalysisAdjusts for several confounders at onceRelies on model assumptions; residual confounding

Markers

  • MH
  • Adjusted OR
  • Strata

In practice

  • In an observational paper, check which variables were adjusted for and whether an important confounder is missing.
  • Age standardisation of rates is a way to control confounding by age when comparing populations.

Common pitfalls

  • Pooling strata with Mantel-Haenszel when the stratum ORs are very different: that is effect modification and is reported by stratum.
  • Adjusting for everything available, including intermediate variables or consequences of the outcome.

Test yourself

Think of the answer, then tap the question to see it.

Which method controls confounding by unknown factors?

Randomisation, because it spreads both measured and unmeasured factors between groups by chance.

What does the Mantel-Haenszel method do?

It combines the measures of association from several strata into one summary measure adjusted for the stratifying variable.

Crude OR 2.7 and OR 2.0 and 2.0 in each stratum. What does this show?

That the stratifying variable was a confounder inflating the crude association; the adjusted measure is 2.0.

What is the drawback of restriction?

It limits generalisability and the effect of the restricted factor cannot be studied.

Add to my cards (4)

Connections

← All of epidemiology

Educational content on epidemiological and statistical methods; the examples use made-up numbers to teach the calculation. Not a clinical or legal guide: current Colombian rules are in the official sources.

Sources: Chapter 25: Assessing risk of bias in a non-randomized study (Cochrane, 2024); Chapter 10: Analysing data and undertaking meta-analyses (Cochrane, 2024); Confounding | Catalog of Bias (Catalogue of Bias Collaboration, 2018).

Spotted a mistake?We are always improving for the community. Tell us what is wrong and our team will review it.Report a mistake

Representative model, for educational purposes only.