PUBH-310 · Lesson 6 of 12 · 25 min
Stratification and standardization
▶ Video coming soon A video version of this lesson is on the way.
While the main cohort data were being cleaned, the regional environmental health office asked the Brannock Valley team for help with a smaller problem. A hospital laboratory supervisor had noticed that several technologists who had worked with an older solvent-based tissue processor had later developed a chronic respiratory condition. A case-control study across regional laboratories had already been done by a graduate student, who reported an odds ratio of 3.2. Priya asked one question before reading further: “Was smoking accounted for?” It had not been. The data were still available, and the team decided to use them to teach Tomás the oldest and most transparent methods for controlling confounding: stratification and standardization.
Regression models (taught in PUBH-311) can adjust for many variables at once, but they hide the data behind coefficients. Stratification and standardization show the data directly: the reader sees the tables within each level of the confounder, judges whether the stratum-specific estimates agree, and sees how the pooled estimate was formed. Every epidemiologist should be able to do these calculations by hand, because they are the best way to understand what adjustment does.
Step one: stratify and look
Stratification divides the data into levels (strata) of the confounder and estimates the exposure-outcome association separately within each. If the confounder is fully captured by the strata, there is no confounding by it within any stratum. The first step is always to look at the stratum-specific estimates and ask two questions. Are they similar to each other? If they differ meaningfully, there may be effect modification (lesson 7), and a single pooled estimate may hide important information. Do they differ from the crude estimate? If the stratum-specific estimates are similar to each other but different from the crude one, the crude estimate was confounded, and a pooled adjusted estimate is appropriate.
| Stratum | Exposed cases | Exposed controls | Unexposed cases | Unexposed controls | Total | Odds ratio |
|---|---|---|---|---|---|---|
| Smokers | 60 | 40 | 40 | 60 | 200 | (60 × 60) ÷ (40 × 40) = 2.25 |
| Non-smokers | 20 | 80 | 40 | 320 | 460 | (20 × 320) ÷ (80 × 40) = 2.00 |
| Crude (combined) | 80 | 120 | 80 | 380 | 660 | (80 × 380) ÷ (120 × 80) = 3.17 |
Table 1 shows the data. The crude odds ratio is 3.17. Within smokers it is 2.25; within non-smokers, 2.00. The stratum-specific estimates are similar to each other and both well below the crude estimate. Smoking was a confounder: among controls, 40 percent of smokers (40 of 100) but only 20 percent of non-smokers (80 of 400) had worked with the solvent processor, and smoking independently raises the risk of the respiratory condition. Some of the crude association reflected smoking, not the solvent.
Pooling: the Mantel-Haenszel method
To summarize the stratum-specific estimates in a single adjusted estimate, the stratum estimates must be averaged with weights. The Mantel-Haenszel (MH) method, published by Nathan Mantel and William Haenszel in 1959, remains the standard for stratified analysis. For case-control data, with a, b, c and d being exposed cases, exposed controls, unexposed cases and unexposed controls in each stratum and n the stratum total, the MH odds ratio is:
OR(MH) = Σ (a × d ÷ n) ÷ Σ (b × c ÷ n)
The method gives more weight to larger and more informative strata, and it has a valuable property: it remains valid even when individual strata are small or sparse, as in matched data, where each matched set is a stratum. For matched pairs, the MH odds ratio reduces to the ratio of discordant pairs that PUBH-210 taught.
Worked problem
Calculating the Mantel-Haenszel odds ratio
Using the data in Table 1, calculate the Mantel-Haenszel odds ratio for solvent exposure adjusted for smoking.
Show solution
- Smokers: a × d ÷ n = 60 × 60 ÷ 200 = 18.0; b × c ÷ n = 40 × 40 ÷ 200 = 8.0.
- Non-smokers: a × d ÷ n = 20 × 320 ÷ 460 = 13.9; b × c ÷ n = 80 × 40 ÷ 460 = 7.0.
- Numerator sum = 18.0 + 13.9 = 31.9. Denominator sum = 8.0 + 7.0 = 15.0.
- OR(MH) = 31.9 ÷ 15.0 = 2.13.
Answer: The smoking-adjusted Mantel-Haenszel odds ratio is 2.13, between the two stratum-specific values and well below the crude 3.17. The solvent still appears to roughly double the odds of the condition after accounting for smoking, but the graduate student’s estimate was inflated by confounding.
Mantel-Haenszel for risk ratios and rate ratios
The same idea extends to cohort data. With a and c the cases among exposed and unexposed, n1 and n0 the numbers exposed and unexposed, and N the stratum total, the MH risk ratio is Σ (a × n0 ÷ N) ÷ Σ (c × n1 ÷ N). For person-time data, with exposed and unexposed person-time PT1 and PT0 and total person-time T, the MH rate ratio is Σ (a × PT0 ÷ T) ÷ Σ (c × PT1 ÷ T).
Worked problem
Mantel-Haenszel risk ratio in a cohort
A cohort study of an exposure stratifies by age. Younger: 200 exposed with 4 cases, 800 unexposed with 8 cases. Older: 800 exposed with 80 cases, 200 unexposed with 10 cases. Calculate the crude risk ratio, the stratum-specific risk ratios and the MH risk ratio.
Show solution
- Crude: exposed 84 ÷ 1,000 = 0.084; unexposed 18 ÷ 1,000 = 0.018; RR = 4.67.
- Younger: 4 ÷ 200 = 0.02 versus 8 ÷ 800 = 0.01; RR = 2.0. Older: 80 ÷ 800 = 0.10 versus 10 ÷ 200 = 0.05; RR = 2.0.
- Numerator: (4 × 800 ÷ 1,000) + (80 × 200 ÷ 1,000) = 3.2 + 16.0 = 19.2.
- Denominator: (8 × 200 ÷ 1,000) + (10 × 800 ÷ 1,000) = 1.6 + 8.0 = 9.6.
- RR(MH) = 19.2 ÷ 9.6 = 2.0.
Answer: Age confounding more than doubled the crude risk ratio (4.67), because older people were both more often exposed and at higher baseline risk. The MH risk ratio of 2.0 matches the identical stratum-specific estimates.
Testing homogeneity
Before pooling, analysts often assess whether stratum-specific estimates differ more than chance would explain, using a test of homogeneity such as the Breslow-Day test for odds ratios. These tests have low power when strata are small, so a non-significant result does not prove homogeneity, and with very large data sets trivial differences become significant. The judgment about whether to report a pooled estimate should rest mainly on whether the stratum-specific estimates differ by an amount that matters, guided by prior knowledge, not on a p-value alone.
The limits of stratification
Stratification works well for one or two confounders with a few levels each. It breaks down quickly as the number of confounders grows. With age in five groups, sex, three job types and smoking in three levels, there are 5 × 2 × 3 × 3 = 90 strata; many will contain no exposed or no unexposed people and contribute nothing. Continuous confounders must be categorized, which leaves residual confounding within categories, as lesson 5 showed. These limits are why regression and propensity score methods are used for adjustment in most modern studies. Even then, a stratified table for the most important confounder is a valuable check that the model is not doing something strange.
Standardization
Standardization takes a different route to adjustment. Instead of averaging stratum-specific ratios, it applies stratum-specific rates or risks to a common standard population, answering the question: what would the overall rate be if each group had the same distribution of the confounder? PUBH-210 introduced age standardization of mortality rates. Here we look more closely at the two methods and at a modern reinterpretation that links standardization to causal effects.
Direct standardization
In direct standardization, the stratum-specific rates of each study population are applied to one standard population. The result, the directly standardized rate, is the rate each study population would have if it had the standard population’s structure. Comparing directly standardized rates gives a comparative rate ratio. Direct standardization requires reliable stratum-specific rates in every population being compared, which needs adequate numbers in each stratum.
Worked problem
Direct standardization of two regions
Two regions report hospitalization rates for a chronic condition. Region A’s rates per 1,000 are 2 (under 40), 6 (40 to 64) and 30 (65 and over); its population of 100,000 is 20,000, 40,000 and 40,000 in those groups. Region B’s rates are 3, 8 and 36 per 1,000; its population of 100,000 is 60,000, 30,000 and 10,000. Calculate the crude rates and the directly standardized rates using a standard population of 50,000, 35,000 and 15,000.
Show solution
- Crude A: (20,000 × 0.002) + (40,000 × 0.006) + (40,000 × 0.030) = 40 + 240 + 1,200 = 1,480 per 100,000, or 14.8 per 1,000.
- Crude B: (60,000 × 0.003) + (30,000 × 0.008) + (10,000 × 0.036) = 180 + 240 + 360 = 780, or 7.8 per 1,000.
- Standardized A: (50,000 × 0.002) + (35,000 × 0.006) + (15,000 × 0.030) = 100 + 210 + 450 = 760 per 100,000, or 7.6 per 1,000.
- Standardized B: (50,000 × 0.003) + (35,000 × 0.008) + (15,000 × 0.036) = 150 + 280 + 540 = 970, or 9.7 per 1,000.
- Comparative rate ratio, B to A: 9.7 ÷ 7.6 = 1.28.
Answer: The crude rates suggest Region A has almost twice Region B’s rate (14.8 versus 7.8 per 1,000), but Region B has higher rates in every age group. After standardization, Region B’s rate is 28 percent higher. Region A’s crude excess reflects its older population, not a higher risk at any age.
The choice of standard population changes the standardized rates but should rarely change their ordering, unless the stratum-specific rate ratios vary a lot across strata (which is effect modification). Agencies use fixed standards so that rates can be compared across reports: the National Center for Health Statistics uses the projected 2000 US standard population for age-adjusted rates. Standardized rates are artificial numbers useful for comparison only; they should never be presented as the actual burden in a population.
Indirect standardization and the SMR
When stratum-specific rates in the study population are unreliable because numbers are small, as in an occupational cohort or a small town, indirect standardization is used instead. The stratum-specific rates of a standard population are applied to the study population’s own structure to compute the expected number of events. The standardized mortality (or morbidity, or incidence) ratio is observed ÷ expected. An SMR of 1.5 means 50 percent more events than expected if the study population had experienced the standard rates.
Worked problem
An SMR and its approximate confidence interval
Among laboratory technologists in the region, 30 cases of the respiratory condition were observed over ten years. Applying provincial age- and sex-specific incidence rates to the technologists’ person-years gives 20 expected cases. Calculate the SMR and an approximate 95 percent confidence interval, treating the observed count as Poisson.
Show solution
- SMR = 30 ÷ 20 = 1.5.
- A simple approximation for the 95 percent limits of a Poisson count O is O ± 1.96 × √O: 30 ± 1.96 × 5.48 = 30 ± 10.7, giving 19.3 to 40.7.
- Divide by expected: 19.3 ÷ 20 = 0.97 and 40.7 ÷ 20 = 2.04.
Answer: SMR 1.5, approximate 95 percent CI 0.97 to 2.04. Exact Poisson limits for 30 events, which are preferable for small counts, are about 20.2 to 42.8, giving an SMR interval of 1.01 to 2.14 that only just excludes 1. The two methods disagree at the margin, a reminder that the excess is real but imprecise and that nothing important should hinge on whether an interval barely includes or excludes 1.
A subtle but important property of SMRs is that SMRs from different study populations should not be compared directly with each other. Each SMR is standardized to its own population’s structure, so two SMRs can differ simply because the study populations have different age distributions, even if their age-specific rates are identical relative to the standard. Indirect standardization compares each study population with the standard, not with each other. SMRs in occupational studies are also affected by the healthy worker effect, which PUBH-210 described: working populations are healthier than the general population used as the standard, which pushes SMRs below 1.
Standardization as a causal method
Standardization has a modern interpretation that links it to the counterfactual questions of lesson 1. Suppose, in the age-stratified cohort example above, we ask: what would the risk be if everyone in the cohort were exposed, and what if no one were? Using the whole cohort (1,000 younger and 1,000 older) as the standard, the risk if everyone were exposed is (0.5 × 0.02) + (0.5 × 0.10) = 0.06, and the risk if no one were exposed is (0.5 × 0.01) + (0.5 × 0.05) = 0.03. The standardized risk ratio is 2.0 and the standardized risk difference is 3 percentage points: the population-average causal effect, assuming age is the only confounder.
This is a simple case of the g-formula (standardization over the confounder distribution), the foundation of many modern causal methods. It produces marginal effects, averaged over the population, which are often what policy makers need: how many cases would be prevented if the exposure were removed from this population? It also gives absolute effects, not only ratios. The same logic, carried out with regression models instead of stratum tables, is how the Brannock team planned to report standardized eight-year risks of diabetes for night and day workers.
Common mistakes
MistakePool stratum-specific estimates without looking at them.
InsteadFirst check whether the stratum estimates are similar; if they differ meaningfully, report them separately as effect modification.
MistakeA non-significant homogeneity test proves the strata have the same effect.
InsteadHomogeneity tests have low power; judge by the size of the differences and prior knowledge.
MistakeDirectly standardized rates show the true burden of disease in a population.
InsteadStandardized rates are artificial values for comparison; crude and stratum-specific rates describe actual burden.
MistakeTwo SMRs from different occupational cohorts can be ranked against each other.
InsteadEach SMR is weighted by its own population’s structure; compare each with the standard, not with each other.
MistakeStratification can handle many confounders at once.
InsteadStrata become sparse quickly; regression or propensity methods are needed for many confounders.
Summary and key terms
- Stratify first and compare the stratum-specific estimates with each other and with the crude estimate.
- The Mantel-Haenszel method pools stratum-specific odds ratios, risk ratios or rate ratios with weights that remain valid in sparse strata.
- Similar stratum estimates that differ from the crude estimate indicate confounding; differing stratum estimates suggest effect modification.
- Direct standardization applies each population’s rates to a common standard population; indirect standardization applies standard rates to the study population to produce an SMR.
- SMRs from different study populations should not be compared with each other.
- Standardizing risks over the confounder distribution estimates marginal causal effects, the basis of the g-formula.
- Stratification
- Analyzing an association separately within levels of another variable.
- Mantel-Haenszel estimator
- A weighted pooled estimate of an odds, risk or rate ratio across strata.
- Test of homogeneity
- A statistical test of whether stratum-specific estimates differ more than expected by chance.
- Direct standardization
- Applying a study population’s stratum-specific rates to a standard population.
- Indirect standardization
- Applying a standard population’s rates to the study population to calculate expected events.
- Standardized mortality ratio (SMR)
- Observed events divided by expected events under standard rates.
- Marginal effect
- A population-average effect, such as the difference in risk if everyone versus no one were exposed.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Stratum 1: a = 10, b = 20, c = 5, d = 40 (n = 75). Stratum 2: a = 30, b = 30, c = 20, d = 60 (n = 140). Calculate each stratum odds ratio and the MH odds ratio.
Show answer
Stratum 1: (10 × 40) ÷ (20 × 5) = 4.0. Stratum 2: (30 × 60) ÷ (30 × 20) = 3.0. MH numerator = 400 ÷ 75 + 1,800 ÷ 140 = 5.33 + 12.86 = 18.19; denominator = 100 ÷ 75 + 600 ÷ 140 = 1.33 + 4.29 = 5.62. OR(MH) = 3.24.
A crude risk ratio is 1.1. Stratum-specific risk ratios are 0.5 in women and 2.4 in men. Should a single MH risk ratio be reported?
Show answer
No. The stratum estimates differ markedly and even point in opposite directions, indicating effect modification by sex; report the sex-specific estimates.
A town has 12 cancer deaths; applying national age-specific rates to its population gives 8 expected deaths. Calculate the SMR.
Show answer
SMR = 12 ÷ 8 = 1.5, or 50 percent more deaths than expected from national rates.
Why might a factory cohort have an all-cause SMR of 0.8 even if its work is harmful?
Show answer
The healthy worker effect: people well enough to be employed have lower mortality than the general population used as the standard.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.