Designing Against Bias: Validity and Confounding in Study Protocols
Fundamental Epidemiological Concepts and Approaches
Learning objectives for this lesson:
- Explain the three threats to internal validity (selection bias, information bias and confounding), distinguish internal from external validity, and identify a variable in a described study as a confounder, a mediator or a collider.
- Explain when unequal participation or loss to follow-up biases an odds ratio and in which direction, calculate the odds ratio of the sampling fractions and the corrected odds ratio, and name protocol decisions on the sampling frame, response, retention and what to record that prevent selection bias.
- Calculate the table that non-differential exposure misclassification produces, explain which way non-differential and differential misclassification move an estimate, explain why a protocol favours a specific outcome definition, and name protocol decisions that prevent differential misclassification.
- Explain what back-correcting a table does and why its result depends on validation data, plan a validation sub-study, and explain why outcome misclassification requires a larger sample size.
- Choose among restriction, matching, stratification and regression adjustment for a confounder and state the cost of each, calculate a matched odds ratio and interpret McNemar's test, and select an adjustment set from a causal diagram.
- Calculate stratum-specific and Mantel-Haenszel odds ratios, use the change-in-estimate check on the log scale to judge confounding, and distinguish confounding from effect modification and from non-collapsibility.
- Explain why methods for measured confounders, such as propensity scores, cannot remove an unmeasured confounder, interpret external adjustment, a planned sensitivity analysis and the E-value, and write a threats to validity and mitigation entry that states the mechanism, likely direction, prevention, assessment and residual risk of a threat, including missing data.
This course was developed by Dr. Kiffer G. Card, Faculty of Health Sciences, Simon Fraser University based on Dohoo, I. R., Martin, S. W., & Stryhn, H. (2012). Methods in Epidemiologic Research. VER Inc.
Glossary: Key Terms, People & Concepts
📚 Reference page, available throughout the lesson
This glossary collects the key concepts, methods and people in this lesson. Use it as a reference while you work through the material, or as a review before assessments. Type in the search box to filter entries.
Validity in the Protocol and Selection Bias
Overview
HSCI 230 taught the vocabulary of validity. Its Lessons 7 to 11 defined selection bias, information bias and confounding, named their common forms, and showed how each appears on a causal diagram. In a course on designing research, the vocabulary leads to two practical questions: which decisions in a study protocol prevent each bias, and how the protocol can show, with numbers, how large the bias that remains could be. A protocol often gathers the answers in a subsection titled "threats to validity and mitigation", and this lesson supplies the tools that subsection uses. This section begins with a recap of internal and external validity and the three threats, pairs each threat with the protocol decisions that address it, and checks the distinction between a confounder, a mediator and a collider. It then treats the first threat a protocol plans for, selection bias: when it biases an odds ratio and in which direction, how its size is computed and bounded with sampling fractions, and which decisions about the sampling frame, response, retention and records keep it small.
Learning Objectives for this section
- 1.1 Explain the three threats to internal validity, locate each in HSCI 230 Lessons 7 to 11, and distinguish internal from external validity.
- 1.2 Distinguish a confounder from a mediator and from a collider in a described study.
- 2.1 Explain when unequal participation or loss to follow-up biases an odds ratio and in which direction, and why a low response rate is not, by itself, evidence of selection bias.
- 2.2 Calculate the odds ratio of the sampling fractions, state the direction of the selection bias it implies, and correct an observed odds ratio for assumed sampling fractions.
- 2.3 Specify protocol decisions on the sampling frame, response, retention and what to record that keep selection from depending jointly on exposure and outcome.
1.1 Internal Validity, External Validity and the Three Threats
1.1.1 The Three Threats and Where HSCI 230 Teaches Them
A study is internally valid when the association it reports, apart from random error, equals the association in the source population, the population that actually produced the participants. By this we mean that, if the study could be repeated many times in the same source population, its estimates would scatter around the true association rather than around some other value. A study is externally valid when that association also holds in a target population beyond the source. For example, a survey of students at five British Columbia institutions could be internally valid for those students and still tell us little about students in another country, where the causes of loneliness and depression may differ. The two kinds of validity therefore answer different questions: the first asks whether the estimate is right for the people who could have been studied, and the second asks whether it can be carried to other people. Bias is a systematic difference between the estimate and the truth. Because it is systematic, it pushes every repetition of the study in the same direction, and so, unlike random error, it does not shrink as the sample grows: a larger sample gives a more precise estimate of the wrong value. Three threats account for most bias in observational research, and HSCI 230 treated each of them in depth. Selection bias arises when entry into the study, or remaining in it, depends on both the exposure and the outcome. Information bias arises when the exposure, the outcome or the covariates are measured with error. Confounding arises when the groups compared differ in other causes of the outcome. All three make the estimate wrong for the people actually studied, so all three are threats to internal validity, whereas a concern that a correct estimate may not transfer to another population is a question of external validity. Table 7.1 serves as the whole recap. Where a definition is unfamiliar, the HSCI 230 lesson named in its third column is the place to review it, and the last column names the tools this lesson adds for each threat.
Table 7.1. The threats to internal validity, how each arises, where HSCI 230 teaches it, and what this lesson adds.
| Threat | How it arises | Where HSCI 230 teaches it | What this lesson adds |
|---|---|---|---|
| Selection bias | Entry into the study, or remaining in it, depends on both exposure and outcome. | Lesson 8 (selection mechanisms, transportability, and missing data from unit non-response and loss to follow-up), Lesson 7 (colliders) and Lesson 11 Section 2 (missing data mechanisms) | Sampling fractions, bounds, and decisions on the sampling frame, response and retention |
| Information bias | Exposure, outcome or covariates are measured with error. | Lesson 9 (misclassification, recall, observer and detection bias), Lesson 7 (measurement) and Lesson 11 Section 2 (item missingness) | The misclassified table, back-correction, validation sub-studies and sample size inflation |
| Confounding | The groups compared differ in other causes of the outcome. | Lesson 11 (confounding, Simpson's paradox) and Lesson 7 (causal diagrams, overadjustment) | Restriction, matching, adjustment sets, Mantel-Haenszel stratification and sensitivity analysis |
| Design-specific and temporal biases | The timing of exposure, outcome and follow-up is mishandled. | Lesson 10 (for example, immortal time and lead time) | Cross-referenced where a protocol has follow-up; Lesson 8 of this course takes up time-to-event data |
1.1.2 Bias Is Decided When the Protocol Is Written
Most of the decisions that determine whether a study is biased are made before any data are collected. The sampling frame and the recruitment method decide who can enter the study. The instruments, their mode of administration and the timing of measurement decide how much misclassification there will be. The list of variables to be measured decides which confounders can ever be controlled, because an analysis can adjust only for what was recorded. Restriction and matching are design choices, and stratification and adjustment, although carried out in the analysis, must be planned in the protocol so that the necessary variables are collected and the analysis is not chosen after the results are seen. Temporal threats belong in the plan as well. Reverse causation arises when the exposure and the outcome are measured at the same time, or the outcome begins first, so that the outcome may cause the exposure rather than the reverse. A protocol prevents it by measuring the exposure before the outcome, for example in a cohort that excludes people who already have the outcome at baseline, or by asking when the outcome began. It assesses it with a secondary analysis that excludes people whose outcome began before the exposure, and when the order cannot be established it describes the estimate as a cross-sectional association and states reverse causation as a limitation. Table 7.2 pairs each threat with the protocol decisions that prevent it and the analysis steps that check or correct it.
Table 7.2. Protocol decisions and analysis steps for each threat to validity.
| Threat | Decided in the protocol by | Checked or corrected in the analysis by |
|---|---|---|
| Selection bias | The sampling frame, the sampling strategy, the recruitment message, contact and reminder schedules, incentives, and retention procedures | Comparing responders with the frame, weighting, and bounding the bias with assumed sampling fractions |
| Information bias | The choice of instrument, its validity evidence, the mode and timing of measurement, blinding of assessors, and a validation sub-study | Back-correction from sensitivity and specificity, regression calibration, and a sample size that allows for misclassification |
| Confounding | The causal diagram, the list of confounders to measure, restriction, and matching | Stratification, adjustment, the change-in-estimate check, and sensitivity analysis for unmeasured confounders |
| Temporality (reverse causation) | Measuring the exposure before the outcome, excluding people who already have the outcome at baseline, and asking when the outcome began | A secondary analysis that excludes people whose outcome began before the exposure; otherwise a cross-sectional estimand with reverse causation stated as a limitation |
The protocol therefore carries a plan for each threat, often written in a subsection titled threats to validity and mitigation. Each section of this lesson ends with the decisions it contributes to that subsection, and Section 4 shows a complete example. Before the first of those threats is taken up, one distinction from HSCI 230 needs to be secure, because selection bias and confounding both depend on it.
1.2 Telling a Confounder from a Mediator and a Collider
A third variable can be associated with both the exposure and the outcome in three different ways, and the data alone cannot tell them apart. In each case the variable will be correlated with the exposure and with the outcome, so a table of correlations looks the same for all three. What separates them is the direction of the arrows in a causal diagram, which records what the investigator believes causes what, and this is why the diagram has to be drawn from subject-matter knowledge rather than read off the data.
A confounder is a common cause of the exposure and the outcome. By this we mean that it sits upstream of both, with one arrow running from it to the exposure and another running from it to the outcome. Because it causes both, it creates an association between them even when the exposure has no effect, which is what a backdoor path means. A confounder is therefore controlled in the protocol, by design or in the analysis, so that this non-causal association is removed. A mediator is different, because it lies on the path from the exposure to the outcome: the exposure changes the mediator, and the mediator in turn changes the outcome. It carries part of the effect the study wants to estimate, so adjusting for it would remove part of that effect. For this reason it is left out of the adjustment set when the target is the total effect. A collider is a common effect of the exposure and the outcome (or of their causes), so that the arrows point into it rather than out of it. Left alone, a collider does no harm. An analysis that conditions on it, however, for example by analyzing only the people who completed a survey, creates or distorts an association, because among the people selected in this way the exposure and the outcome become linked through their shared influence on being selected. Timing matters as well. A covariate measured after the exposure can be a mediator, while the same characteristic measured before the exposure could be a confounder, which is why a protocol states when each covariate is measured.
Most people who have studied these threats can define them, and the most common error is to describe a variable on the causal pathway as a confounder. The ungraded check below targets that confusion. It takes two or three minutes, and three of its four items use the Campus Connection Study and a shift-work cohort that recur in this lesson.
Confounder, mediator or collider?
Each item describes a third variable in a study. Choose its role. Feedback appears as soon as you choose. A confounder is a common cause of the exposure and the outcome, a mediator lies on the path from the exposure to the outcome, and a collider is a common effect of the exposure and the outcome (or of their causes).
1. A survey of university students studies loneliness (the exposure) and depressive symptoms (the outcome). Loneliness lowers the social support a student perceives, and low perceived support raises depressive symptoms.
2. In the same survey, financial strain makes students less able to take part in social activities, which raises loneliness, and it also raises depressive symptoms through worry and insecurity. Financial strain is present before either.
3. Lonely students are less likely to complete the survey, and so are students with depressive symptoms. Only students who complete the survey are analyzed.
4. A cohort study examines years of night-shift work (the exposure) and type 2 diabetes (the outcome). Night-shift work raises body mass index, and a higher body mass index raises the risk of diabetes. Body mass index is measured after the shift-work history.
The four items turn on the direction of the arrows. Financial strain is a confounder, perceived social support and body mass index measured after shift work are mediators, and completing the survey is a collider on which an analysis of completers conditions. That last structure is the one behind selection bias, which the rest of this section develops.
2.1 When Selection Biases an Odds Ratio
HSCI 230 described selection bias as conditioning on a common effect. When both the exposure and the outcome influence who takes part, restricting the analysis to participants creates an association between them, or distorts one that exists. Figure 7.1 shows this collider structure in general and in the study that serves as this lesson's running example, the Campus Connection Study, a worked example that this lesson shares with Lesson 8. That study is a survey of loneliness and depressive symptoms among students aged 18 to 29 at five public post-secondary institutions in British Columbia.
The diagram shows that selection bias is possible, and the key word in its structure is "both". HSCI 341 Lesson 2 Section 3 called selection that depends on the outcome the formal criterion for selection bias, and that criterion holds for a descriptive estimate such as a prevalence, which is biased whenever cases and non-cases take part at different rates. A measure of association such as the odds ratio behaves differently, because it is a comparison between groups rather than a single proportion. Selection that depends on the exposure alone, or on case status alone, leaves the odds ratio unbiased and costs only precision. For example, a case-control study deliberately samples cases at a far higher rate than non-cases, yet its odds ratio is valid, because the over-sampling of cases affects the exposed and the unexposed cases equally and cancels when the two groups are compared. In the same way, if exposed people respond less often than unexposed people but the shortfall is the same among cases and non-cases, the comparison within each exposure group is untouched. Selection that depends on the outcome therefore biases the odds ratio only when it depends on the outcome differently in the exposed and the unexposed. By this we mean that participation depends on the exposure and the outcome jointly, so that one particular combination, such as exposed cases, is missing more often than the separate effects of exposure and outcome would predict. The sampling fractions introduced next turn this condition into a number.
The direction of the bias can often be reasoned out without any numbers by asking which cell of the two-by-two table is under-represented. Suppose that in a case-control study nearly all cases take part, but exposed controls are less willing to take part than unexposed controls. The controls who take part then contain too few exposed people, so the exposure odds among controls are too low, and the observed odds ratio, which divides the cases' exposure odds by the controls', is too large: for a harmful exposure the bias is away from the null. If instead exposed controls were more willing to take part, the controls would look too exposed and the odds ratio would be biased toward the null. If exposed and unexposed controls took part at the same rate, the odds ratio would be unbiased, however low that rate. The same reasoning applies to loss to follow-up in a cohort: when exposed people who develop the disease are the ones most often lost, the risk or rate among the exposed is underestimated, and the ratio is biased toward the null, while a loss that depends on exposure only leaves the ratio unbiased and costs only precision.
One consequence is a frequent exam trap, worth stating on its own.
Common trap: a low response rate is not, by itself, evidence of selection bias
A meta-analysis of studies that measured both found only a weak relationship between survey response rates and the size of non-response bias (Groves & Peytcheva, 2008). What matters is whether response depends on the exposure and the outcome jointly, not how low it is, and a larger sample recruited the same way leaves the bias unchanged.
To judge how large such a bias could be, the reasoning about under-represented cells has to be made quantitative, which is the purpose of the sampling fractions in the next subsection.
2.2 Measuring Selection Bias with Sampling Fractions
2.2.1 The Odds Ratio of the Sampling Fractions
Sampling fractions show how large a selection bias is and in which direction it runs. Imagine the source population arranged in the usual two-by-two table, with exposure in the columns and disease in the rows. Upper-case letters denote counts in the source population and lower-case letters denote the counts that end up in the study. Table 7.3 sets out the source population in this form.
Table 7.3. The source population as a two-by-two table of exposure and disease, with counts in upper-case letters.
| Source population | Exposed | Unexposed | Total |
|---|---|---|---|
| Cases | A1 | A0 | M1 |
| Non-cases | B1 | B0 | M0 |
| Total | N1 | N0 | N |
Each cell has a sampling fraction, the proportion of that cell of the source population that entered the study and stayed in it to the analysis. Equation 7.1 defines the four fractions, each as the study count divided by the source count for one cell.
sf21 = b1/B1 sf22 = b0/B0Eq 7.1
Equation 7.2 combines the four fractions into a single quantity, the odds ratio of the sampling fractions (ORsf). The observed odds ratio equals the source-population odds ratio multiplied by the odds ratio of the sampling fractions:
Three consequences follow, and together they give the direction of the bias. When ORsf equals 1, the observed odds ratio is unbiased, even when the four fractions differ from each other. When ORsf is above 1, the observed odds ratio is larger than the true one, which for a harmful exposure is a bias away from the null value of 1. When ORsf is below 1, the observed odds ratio is smaller, which for a harmful exposure is a bias toward the null. The same information can be expressed as sampling odds. The selection odds among the exposed (sf11 ÷ sf21) compare how readily exposed cases enter the study with how readily exposed non-cases enter it, and the selection odds among the unexposed (sf12 ÷ sf22) make the same comparison for the unexposed. Each of these odds therefore describes how strongly selection favours or disfavours cases within one exposure group. There is no selection bias in the odds ratio when these two odds are equal. In other words, cases may be over-sampled or under-sampled, but if they are over-sampled or under-sampled to the same degree among the exposed and the unexposed, the distortion cancels. This is the joint-dependence condition of 2.1 written as a formula. The result applies exactly to the odds ratio. For a risk ratio it holds approximately when the outcome is rare, because the risk ratio and the odds ratio are then close to each other.
Worked Example 7.1 applies Equation 7.2 to non-response in a source population of 10,000 people, first when non-response depends on exposure alone and then when it also depends on disease, so that both halves of the condition can be seen in numbers.
Worked Example 7.1: Non-Response That Depends on Exposure and Outcome
A source population of 10,000 people contains 1,000 exposed people, of whom 250 develop the disease (a risk of 25%), and 9,000 unexposed people, of whom 1,080 develop it (12%). The true risk ratio is 0.25 ÷ 0.12 = 2.08 and the true odds ratio is 2.44.
If 30% of the exposed and 10% of the unexposed fail to respond, and non-response is unrelated to the disease, every risk within an exposure group is unchanged and so are the risk ratio and odds ratio. The fractions are 0.70 for both exposed cells and 0.90 for both unexposed cells, and ORsf = (0.70 × 0.90) ÷ (0.90 × 0.70) = 1.
Suppose instead that, within each exposure group, the risk of disease among non-responders is twice the risk among responders. Among the exposed, the 700 responders then have a risk of 250 ÷ (700 + 2 × 300) = 0.192, and among the unexposed the 8,100 responders have a risk of 1,080 ÷ (8,100 + 2 × 900) = 0.109. The four sampling fractions are 0.538 for exposed cases, 0.754 for exposed non-cases, 0.818 for unexposed cases and 0.911 for unexposed non-cases.
- ORsf = (0.538 × 0.911) ÷ (0.818 × 0.754) = 0.80.
- The observed odds ratio is 2.44 × 0.80 = 1.94, and the observed risk ratio is 0.192 ÷ 0.109 = 1.76, against a true value of 2.08.
Both measures are biased toward the null, because the people missing from the study are disproportionately exposed cases.
The first scenario confirms that unequal response by exposure alone gives ORsf = 1, and the second shows a value of 0.80 pulling the odds ratio toward the null, exactly as the under-represented cell (exposed cases) predicts. In this example the true fractions were known. In a real study they are not, which is the problem the next part addresses.
2.2.2 Bounding the Bias When the Fractions Are Unknown
The true sampling fractions are almost never known, because the source population is not observed cell by cell. The formula is still useful as a sensitivity analysis, by which we mean an analysis that asks how the result would change under assumptions the data cannot check. The investigator assigns plausible fractions to the four cells, computes ORsf, and divides the observed odds ratio by it to see what the estimate would have been without the selection. Plausible values can come from the records of who responded, from response rates reported by similar studies, or from the investigator's knowledge of who is hard to recruit. Assigning one set of values, or a few sets that span the plausible range, is a deterministic analysis; drawing the fractions from distributions and repeating the calculation many times is a probabilistic one, which Section 4 describes as part of quantitative bias analysis. Worked Example 7.2 applies a deterministic analysis to a case-control study of daycare attendance and childhood respiratory disease.
Worked Example 7.2: Bounding Selection Bias in a Daycare Study
A case-control study of childhood respiratory disease and regular daycare attendance observed an odds ratio of 2.33 (95% CI 1.04 to 5.19). Suppose cases were easier to recruit than controls, and that exposed controls were especially hard to recruit, with assumed sampling fractions of 0.5 for exposed cases, 0.6 for unexposed cases, 0.05 for exposed controls and 0.1 for unexposed controls.
- ORsf = (0.5 × 0.1) ÷ (0.6 × 0.05) = 0.05 ÷ 0.03 = 1.67.
- Corrected odds ratio = 2.33 ÷ 1.67 = 1.40, which is 40% lower than the observed value.
Under these assumptions the association would be considerably weaker than reported. A protocol for such a study would describe how controls are to be recruited so that their participation does not depend on daycare use, and would plan this bounding calculation for the report.
Because the corrected value is the observed odds ratio divided by ORsf, a value of ORsf above 1 lowers the estimate and a value below 1 raises it, which is a quick check that the correction moves in the direction the reasoning about missing cells predicts. Calculator 7.1 applies Equation 7.2 to any four sampling fractions and an observed odds ratio. Its presets include the daycare study of Worked Example 7.2 and the two Campus Connection cases of Worked Example 7.3 in 2.3.
A bounding calculation shows how large the bias could be, but it does not remove it. Selection bias can be corrected fully in only two situations. In the first, the factors that drive selection are measured, precede both exposure and outcome, and have a known distribution in the source population, so that they can be handled like confounders, for example by weighting. By this we mean that each participant is given more weight when people like them were less likely to take part, so that the weighted sample resembles the source population again. For example, if older students responded half as often as younger students, and age is the only thing driving response, each older respondent can be counted twice. In the second situation, the investigator can identify and measure a variable that carries the whole dependence of selection on exposure and outcome (sometimes called a bias breaker) and can obtain unbiased estimates of its distribution in the source population. Such a variable breaks the bias because, once it is accounted for, participation no longer depends on the exposure and the outcome together. Both situations require information collected by design, which is why the protocol decisions in the next subsection include what to record as well as how to recruit.
2.3 Protocol Decisions That Prevent Selection Bias
The aim of the design is to keep ORsf close to 1: selection may depend on exposure or on outcome, but it should not depend on their combination. The decisions fall into four groups. The sampling frame decides who can enter the study, and a frame that is independent of the exposure and the outcome, such as a registrar's enrolment list, allows probability sampling with a known denominator. Response decisions, such as a neutral invitation and repeat contact with non-responders, reduce the room for response to depend on the exposure and the outcome. Retention decisions do the same for loss to follow-up in a cohort. Records of who was invited, who responded and who was lost let the analysis compare responders with non-responders, weight the data and choose the sampling fractions for a bounding analysis. Recruiting extra participants or replacing those who drop out does not help, because it changes how many people are analyzed, not who is missing.
The four tabs below give the detail behind each group of decisions. Open each tab in turn to see what a protocol states about the sampling frame, response, retention and what to record. The Response tab also recalls the strategies for raising response from HSCI 341 Lesson 3 and ends with a retrieval question to try before you reveal the answer.
The sampling frame is the list from which participants are drawn, and it defines who can enter the study. A protocol states the frame, how completely it covers the source population, and how people are selected from it. A frame that is independent of the exposure and the outcome, such as a registrar's enrolment list or a provincial health insurance registry, allows probability sampling, and each person's chance of selection is known. Recruitment through advertisements, social media or clinics produces volunteers whose decision to take part may depend on the study topic, and therefore on the exposure and the outcome. In a case-control study the frame for controls must represent the population that produced the cases, so that controls reflect the exposure distribution of that population. Using incident cases, and drawing controls from the same base as the cases, also keeps selection from depending on survival with the disease.
Recall: Strategies That Raise Response
HSCI 341 Lesson 3, Section 4 (Response Rates and Data Coding), listed the strategies that raise response, many of them tested in the randomized trials that Edwards et al. (2009) reviewed: repeat contact with non-responders, small incentives, short questionnaires, advance notice and personalized invitations. That lesson stated that low response increases the risk of selection bias. The odds ratio of the sampling fractions refines the statement: low response leaves room for bias, and the odds ratio is biased only when response depends jointly on the exposure and the outcome.
Retrieval question. Which strategy did Lesson 3 single out as the most consistently effective way to raise response?
Repeat contact with non-responders, through reminders and a second delivery of the questionnaire, was the most consistently effective strategy.
Response maximization reduces the room for selection to depend on exposure and outcome. The tailored design method organizes the steps above into a contact schedule (Dillman, Smyth & Christian, 2014). The protocol also controls the recruitment message. An invitation that describes a survey of student wellbeing is less likely to attract or repel students according to their loneliness than one that announces a study of loneliness and depression. The protocol states the expected response rate and the reasoning behind it, because the sample size calculation depends on it, and it states how many contacts each person will receive. It also states the denominator of the response rate it will report, usually completed responses among the eligible people sampled.
In a cohort study, loss to follow-up that depends on both exposure and outcome produces the same bias as differential non-response at entry. Retention procedures are designed in advance: several contact details collected at baseline, including an alternative contact person where ethics approval allows it; a schedule of reminders across modes; low participant burden at each wave; and incentives for completing follow-up, which a systematic review of population-based cohorts associated with higher retention (Booker, Harding & Benzeval, 2011). Equal follow-up procedures for the exposed and the unexposed keep retention from depending on exposure through the study's own actions. A cross-sectional survey has no follow-up, but a multi-page online questionnaire has its own form of attrition in the respondents who stop partway, and the protocol states how partial completions will be handled.
To assess selection afterwards, the protocol records the information that the analysis will need. This includes a flow of participants from the frame through eligibility, invitation, response and completion (the format that STROBE reporting asks for), the reasons for refusal or ineligibility where they are known, and characteristics available for everyone on the frame, so that responders can be compared with non-responders. In a cohort study it includes the baseline characteristics of those later lost, compared with those retained. These data support weighting by the inverse of the probability of response, which HSCI 341 Lesson 2 introduced for design weights, and they inform the sampling fractions assumed in a bounding analysis.
Each decision in the tabs either keeps participation from depending jointly on the exposure and the outcome or records the information needed to check whether it did.
Worked Example 7.3 applies the four groups of decisions to the Campus Connection Study and then uses Equation 7.2 to bound the selection bias that its expected response rate of 15% leaves room for.
Worked Example 7.3: Selection Decisions in the Campus Connection Study
The Campus Connection Study samples students aged 18 to 29 from a frame of about 63,800 students at five institutions, one in each regional health authority, using stratified random sampling with institutions as strata. Invitations are sent by each registrar to institutional email addresses. Recruitment through social media was considered and rejected, because the decision to answer a post about loneliness would depend on both loneliness and depressive symptoms, which makes participation the collider shown in Figure 7.1. The protocol plans 12,200 invitations, on the assumption that 95% of those invited are eligible, 15% respond and 81% of respondents complete the questionnaire, which gives about 1,400 analyzable responses.
A response rate of 15% leaves a great deal of room for selection. The protocol's response decisions are a neutral invitation that describes a survey of student health and connection, three reminders, and a short questionnaire. Its recording decisions are aggregate frame counts by institution, age group and gender from each registrar, so that respondents can be compared with the frame and weighted, and a count of partial completions.
The protocol can then bound the remaining bias. Suppose the probability of completing the survey is 0.18 for students who are neither lonely nor depressed, 0.15 for students who are lonely only, and 0.15 for students with depressive symptoms only. If lonely students with depressive symptoms respond with probability 0.125, the two reductions combine multiplicatively and ORsf = (0.125 × 0.18) ÷ (0.15 × 0.15) = 1.00, so the odds ratio is unbiased despite unequal response. If they respond with probability 0.10, ORsf = (0.10 × 0.18) ÷ (0.15 × 0.15) = 0.80, and an observed odds ratio of 2.0 would correspond to 2.0 ÷ 0.80 = 2.5 without the selection. Calculator 7.1 contains both cases as presets.
The two Campus Connection cases show the point of 2.1 in numbers: unequal response leaves the odds ratio unbiased as long as the reductions in response combine multiplicatively, and only a further drop among students who are both lonely and depressed produces bias.
Section 1 has shown that selection biases an odds ratio only when participation depends jointly on the exposure and the outcome, that the odds ratio of the sampling fractions measures the size and direction of that bias, and that a protocol keeps it small through its sampling frame, recruitment message, contact schedule, retention procedures and records of the people who do not take part. The key takeaways below summarize these points. The knowledge check that follows closes the section, and its last two questions apply the sampling fractions to a study that recruits through social media.
Key Takeaways
- 1.1 Every observational study you plan or read faces three main threats to internal validity: selection bias, information bias and confounding. Selection bias arises when entering or staying in the study depends on the exposure and the outcome together, information bias arises when the exposure, outcome or covariates are measured with error, and confounding arises when the groups being compared differ in other causes of the outcome. A study is internally valid when its association, apart from chance, equals the association in the source population that produced the participants, and externally valid when that association also holds in a target population beyond the source; because bias is a systematic error, a larger sample does not remove it. When a question lists several concerns about a study, sort each one by asking whether it would make the estimate wrong for the people actually studied (internal validity) or would only limit whether a correct estimate transfers to another group (external validity). Measurement error, unequal loss to follow-up and differences between the groups all belong to internal validity, even when they sound like general design flaws, and Table 7.1 tells you which HSCI 230 lesson to review if a definition feels shaky.
- 1.2 Confounders, mediators and colliders can all be associated with both the exposure and the outcome, so you cannot tell them apart from the data alone; what separates them is the direction of the arrows in a causal diagram. A confounder is a common cause of the exposure and the outcome (financial strain raising both loneliness and depressive symptoms), a mediator lies on the path between them (loneliness lowering perceived social support, which raises depressive symptoms), and a collider is a common effect of both (completing the survey, which lonely students and students with symptoms are both less likely to do). Only a confounder belongs in the adjustment set for a total effect: adjusting for a mediator removes part of the effect you set out to estimate, and conditioning on a collider, for example by analyzing completers only, creates selection bias. When a question describes a third variable, write the arrows out in words before you name its role, for example exposure → variable → outcome for a mediator and exposure → variable ← outcome for a collider. Check the timing as well, because a variable such as body mass index is a mediator when it is measured after the exposure but could act as a confounder when it is measured before it.
- 2.1 Selection biases an odds ratio only when taking part in the study, or staying in a cohort, depends on the exposure and the outcome together; if it depends on the exposure alone or on case status alone, the odds ratio is unbiased and the study loses only precision. You can usually reason out the direction without any numbers by asking which cell of the two-by-two table is under-represented. For a harmful exposure, missing exposed cases or unexposed non-cases pulls the odds ratio toward the null, and missing unexposed cases or exposed non-cases pushes it away from the null: if exposed controls are less willing to take part than unexposed controls, for example, the controls look too unexposed and the odds ratio is too large. The same logic applies to loss to follow-up, so a cohort that loses exposed people who develop the disease underestimates their risk and biases the ratio toward the null. A low response rate leaves room for bias but is not, by itself, evidence of it, so when a question argues that few people agreed and the estimate "must be biased", answer that what matters is whether response differs by exposure within cases and within non-cases, not how low it is.
- 2.2 To put a number on selection bias, give each cell of the source population's two-by-two table a sampling fraction, the share of that cell that reaches the analysis: sf11 for exposed cases, sf12 for unexposed cases, sf21 for exposed non-cases and sf22 for unexposed non-cases. The odds ratio of the sampling fractions is ORsf = (sf11 × sf22) ÷ (sf12 × sf21), and the observed odds ratio equals the true odds ratio multiplied by it, so a value of 1 means no selection bias even when the four fractions differ, a value above 1 means the observed odds ratio is too large, and a value below 1 means it is too small. To correct an observed odds ratio for assumed fractions, divide it by ORsf; in the daycare study of Worked Example 7.2, 2.33 ÷ 1.67 = 1.40. The usual slips are swapping sf12 and sf21 and multiplying when you should divide, so label the four fractions on the table before you calculate, and check that the corrected value moves in the direction your reasoning about the missing cells predicts. Because the true fractions are almost never known, a protocol plans this calculation as a bounding analysis with assumed values rather than as an exact correction.
- 2.3 A protocol keeps selection bias small by making sure that who takes part does not depend on the exposure and the outcome together, and it does this through four groups of decisions. The sampling frame decides who can enter: a registrar's enrolment list or a health insurance registry allows probability sampling with a known denominator, whereas recruitment through social media, advertisements or a support group lets people select themselves according to the study topic. Response decisions include a neutral invitation that does not announce the exposure and outcome, repeat contact with non-responders (the most consistently effective strategy), short questionnaires and small incentives. Retention decisions include several contact details, the same follow-up procedures for exposed and unexposed participants and incentives for completing follow-up, while recording decisions include a participant flow and characteristics of everyone on the frame, so that responders can be compared with non-responders and the analysis weighted. When a question asks for one protocol decision, name it specifically and say what it protects, for example drawing controls at random from a population registry and inviting them with a neutral description, so that exposed controls are no less likely to take part than unexposed controls. Recruiting extra participants or replacing those who drop out does not help, because it changes how many people are analyzed, not who is missing.
1. A cohort study follows 3,000 nurses in five hospitals and finds that rotating night shifts are associated with a higher risk of hypertension. A reviewer raises four concerns. Which concern is about external validity rather than internal validity?
2. In a case-control study of daily e-cigarette use and asthma attacks in teenagers, 92% of eligible cases agree to an interview, but only 48% of the controls invited agree. Interviewers record that exposed and unexposed controls refuse at the same rate, and so do exposed and unexposed cases. A colleague writes: "Fewer than half of the controls took part, so the odds ratio must be biased." Which response is correct?
3. A study of chronic back pain (the exposure) and depressive symptoms (the outcome) recruits its participants from the members of an online pain-support forum. People with severe pain are more likely to join the forum, and so are people with depressive symptoms. A colleague calls forum membership a confounder and proposes adjusting for it. What is its role, and what follows?
4. A case-control study of indoor tanning and melanoma observes an odds ratio of 1.80. The investigators suspect that cases who used tanning beds were reluctant to take part, and they assume sampling fractions of 0.60 for exposed cases, 0.80 for unexposed cases, 0.50 for exposed controls and 0.50 for unexposed controls. Using ORsf = (sf11 × sf22) ÷ (sf12 × sf21), what are ORsf, the direction of the bias and the odds ratio corrected for selection?
5. A two-year cohort protocol will study loneliness and hospital admission among 2,000 older adults and expects 25% loss to follow-up. Pilot data suggest that lonely participants who become ill are the hardest to keep in the study. Which plan does most to limit selection bias from this loss?
6. A team surveys undergraduates at one university about energy drinks and anxiety, recruiting through posts on student-club Instagram accounts that invite students "to help us learn how energy drinks affect stress and anxiety". The probability of taking part is 0.08 for daily energy-drink users with anxiety symptoms, 0.05 for daily users without symptoms, 0.04 for other students with symptoms and 0.04 for other students without symptoms. The survey finds an odds ratio of 2.4. Using ORsf = (sf11 × sf22) ÷ (sf12 × sf21), what are ORsf, the odds ratio without this selection, and the direction of the bias?
7. In the energy-drink survey of the previous question, only about 5% of the students who saw the posts took part. A colleague says: "If we post more often and recruit 3,000 students, the bias will go away." Which response, with its protocol decisions, is correct?
Misclassification and Validation Sub-Studies
Overview
HSCI 341 Lesson 5 described a measurement in terms of its sensitivity (Se), the probability that a person who truly has a characteristic is classified as having it, and its specificity (Sp), the probability that a person who truly lacks it is classified as lacking it. HSCI 230 Lesson 9 showed the consequence for a study: misclassification that is the same in the groups being compared (non-differential) tends to pull a measure of association toward the null, and misclassification that differs between them (differential) can push it either way. This section makes both statements quantitative and ties each calculation to a protocol decision. It computes the table a study would observe under non-differential exposure misclassification, shows why a protocol favours a specific outcome definition, and explains why differential misclassification has no predictable direction and how a protocol prevents it. It then runs the calculation in reverse to correct an observed table, plans the validation sub-study that supplies the sensitivity and specificity a correction needs, and inflates the sample size so that misclassification does not leave the study underpowered.
Learning Objectives for this section
- 3.1 Calculate the observed two-by-two table that non-differential exposure misclassification produces, and explain why the odds ratio moves toward the null.
- 3.2 Explain how outcome sensitivity and specificity affect a risk ratio, and why a protocol favours a specific outcome definition.
- 3.3 Define differential misclassification, explain why its direction cannot be assumed, and name protocol decisions that prevent it.
- 4.1 Back-correct an observed table from assumed sensitivity and specificity, and explain why the result depends on validation data that transfer to the study population.
- 4.2 Plan a validation sub-study, including its reference standard, sampling and size, and describe regression calibration.
- 4.3 Explain why outcome misclassification reduces power, and inflate a sample size to allow for it.
3.1 Non-Differential Exposure Misclassification
The first calculation shows what non-differential misclassification of a binary exposure does to the two-by-two table a study observes. Misclassification of exposure is non-differential when the sensitivity and specificity of the exposure measurement are the same among cases and non-cases, which is the condition Equation 7.3 states:
Each observed cell is then a mixture of correctly classified people and people who belong in the other exposure column. Among the cases, the observed exposed count contains the truly exposed cases who were correctly classified and the truly unexposed cases who were wrongly classified as exposed. The same mixing happens among the non-cases. Table 7.4 gives each observed count as a mixture of two true counts, weighted by SeE and SpE.
Table 7.4. Observed counts under non-differential exposure misclassification, in terms of the true counts, SeE and SpE.
| True count | Observed count |
|---|---|
| Exposed cases, a1 | a1′ = SeE × a1 + (1 − SpE) × a0 |
| Unexposed cases, a0 | a0′ = (1 − SeE) × a1 + SpE × a0 |
| Exposed non-cases, b1 | b1′ = SeE × b1 + (1 − SpE) × b0 |
| Unexposed non-cases, b0 | b0′ = (1 − SeE) × b1 + SpE × b0 |
Because the mixing blends the exposed and unexposed columns in the same proportions for cases and non-cases, the two columns become more alike and the odds ratio moves toward 1, provided SeE + SpE is greater than 1. By this we mean that some truly unexposed people are counted among the exposed, and some truly exposed people are counted among the unexposed, so each column ends up containing a little of the other. If the exposure raises the risk of disease, the observed exposed group is diluted with lower-risk unexposed people and the observed unexposed group is contaminated with higher-risk exposed people. The difference between the two columns therefore shrinks, much as mixing a little of two different paint colours into each other makes both look more alike. The condition on SeE + SpE matters because a measurement with a sum of exactly 1 is no better than a coin toss, and one with a sum below 1 does worse than chance and would reverse the association rather than weaken it. Misclassifying exposure moves people between the exposure columns and leaves the case and non-case totals unchanged, which is a useful check on any calculation and the property that makes back-correction possible in 4.1. Error rates that look modest, of 10% to 20%, can attenuate an association considerably. Worked Example 7.4 applies the formulas of Table 7.4 to a study whose true table is known, to show the size of that attenuation.
Worked Example 7.4: The Table a Study Would Observe
A study has 90 exposed and 70 unexposed cases, and 210 exposed and 630 unexposed non-cases, so the true odds ratio is (90 × 630) ÷ (70 × 210) = 3.86. Exposure is measured with SeE = 0.80 and SpE = 0.90 in both groups.
- Observed exposed cases: a1′ = 0.80 × 90 + 0.10 × 70 = 79.
- Observed unexposed cases: a0′ = 0.20 × 90 + 0.90 × 70 = 81.
- Observed exposed non-cases: b1′ = 0.80 × 210 + 0.10 × 630 = 231.
- Observed unexposed non-cases: b0′ = 0.20 × 210 + 0.90 × 630 = 609.
- Observed odds ratio = (79 × 609) ÷ (81 × 231) = 2.57.
Measurement that misses one exposed person in five and wrongly labels one unexposed person in ten has reduced the odds ratio from 3.86 to 2.57. The case total (79 + 81 = 160) and the non-case total (231 + 609 = 840) are unchanged.
The example confirms both properties of non-differential exposure error: the odds ratio moves toward 1, and the row totals are preserved. Calculator 7.2 reproduces the example, with a second preset for better measurement, so that other values of SeE and SpE can be tried.
The same mixing logic applies when it is the outcome, rather than the exposure, that is measured with error, but the two kinds of outcome error do very different damage.
3.2 Misclassification of the Outcome
Outcome misclassification has an asymmetry that matters for design. When the outcome is measured with error, each observed risk is p′ = Se × p + (1 − Sp) × (1 − p), the true cases the measure detects plus the people without the outcome whom it wrongly flags. Suppose the true risk of disease is 0.10 among the exposed and 0.05 among the unexposed, a risk ratio of 2.0. If the outcome measure misses some cases (sensitivity 0.80) but never labels a healthy person as a case (specificity 1), both observed risks are multiplied by 0.80, giving 0.08 and 0.04, and the risk ratio stays at 2.0. If instead the measure finds every case (sensitivity 1) but wrongly labels 5% of healthy people as cases (specificity 0.95), the observed risks become 0.145 and 0.0975, and the risk ratio falls to 1.49. The two kinds of error behave differently because of what they do to each risk. Missed cases remove the same fraction of cases from each group, so both risks shrink in proportion and their ratio is preserved. False positives, by contrast, add roughly the same number of spurious cases to each group, whatever the group's true risk. Adding the same amount to two numbers makes them closer in relative terms, so the ratio is diluted toward 1. The dilution is greatest when the outcome is rare, because a fixed number of false positives is then large compared with the small number of true cases. A protocol therefore favours a highly specific outcome definition, for example a confirmed diagnosis or a validated case-finding algorithm, even at some cost in sensitivity. That cost is real: a specific definition misses some true cases, or enrols them only later once they are confirmed, so the study has fewer cases and less precision and may need a larger sample, although with perfect specificity the ratio itself stays unbiased.
In a case-control study the same logic applies to the case definition: false-positive cases bias the odds ratio toward the null, so diagnoses are confirmed before enrolment. The reason is that a false-positive case is really a non-case, so its exposure history looks like that of a control, and including it among the cases makes the cases and controls more alike. Sensitivity and specificity estimated in the general population cannot be used directly to correct a case-control study. This is because a case-control study enrols cases and controls at very different rates, for example most of the people diagnosed with a disease but only a small fraction of the people without it. Sampling at different rates changes the proportions of true and false positives among those enrolled, so the error rates among the people actually in the study are no longer the ones measured in the general population.
Subsections 3.1 and 3.2 assumed that the error rates were the same in the groups being compared. When they are not, the predictable pull toward the null disappears.
3.3 Differential Misclassification
3.3.1 Why the Direction Cannot Be Assumed
When the accuracy of the exposure measurement differs between cases and non-cases, or the accuracy of the outcome measurement differs between exposed and unexposed people, the misclassification is differential. Equation 7.4 states the condition for differential exposure misclassification:
Its direction cannot be assumed, and its size cannot be predicted without knowing the error rates in each group. The pull toward the null in 3.1 depended on the two rows being blended in the same proportions. Once one group is measured more accurately than the other, that symmetry is lost, and the result depends on which group is made to look more exposed. Recall bias, in which cases search their memories for exposures more thoroughly than controls, is the familiar example. A parent whose child has a birth defect, for instance, may think back over every medication taken in pregnancy, while the parent of a healthy child has no reason to. HSCI 230 Lesson 9 described observer and detection bias as other examples. Because the error rates differ between groups, differential error cannot be corrected by a single pair of sensitivity and specificity values; a correction would need a separate pair for each group.
Worked Example 7.5 shows why the direction cannot be assumed. It applies the formulas of Table 7.4 one row at a time, with each group's own error rates, to the true table of Worked Example 7.4. Watch which group ends up looking more exposed than it really is.
Worked Example 7.5: Differential Misclassification of the Same True Table
Take the true table of Worked Example 7.4 (90 and 70 cases, 210 and 630 non-cases, a true odds ratio of 3.86) and apply the formulas of Table 7.4 separately to each row, with the error rates of that group.
- Cases recall more completely. Suppose that no unexposed person reports exposure (specificity 1 in both groups), but cases report a true exposure with a sensitivity of 0.95 and non-cases with a sensitivity of 0.80. The observed cases are 0.95 × 90 = 85.5 exposed and 74.5 unexposed, the observed non-cases are 0.80 × 210 = 168 exposed and 672 unexposed, and the observed odds ratio is (85.5 × 672) ÷ (74.5 × 168) = 4.59. Reported exposure is inflated among cases relative to non-cases, so the bias is away from the null.
- Non-cases over-report. Suppose instead that both groups have a sensitivity of 0.90, but 15% of truly unexposed non-cases report exposure (specificity 0.85) while cases never do (specificity 1). The observed cases are 81 exposed and 79 unexposed, the observed non-cases are 0.90 × 210 + 0.15 × 630 = 283.5 exposed and 556.5 unexposed, and the observed odds ratio is (81 × 556.5) ÷ (79 × 283.5) = 2.01, a bias toward the null.
The same true table, with a true odds ratio of 3.86, is observed as 4.59 when cases recall their exposure more completely and as 2.01 when non-cases over-report it. In the first case the cases look relatively more exposed than they are; in the second the non-cases do.
The same true table therefore gives an odds ratio above or below the truth depending on which group reports more accurately, so the direction of differential error has to be worked out, not assumed. To work out the direction in a given study, the group-specific values are needed, and they come from a validation sub-study that samples cases and non-cases separately (step 3 of the plan in 4.2). In each group, the sensitivity is the number who report exposure among those whom the reference standard shows to be exposed, and the specificity is the number who report no exposure among those whom it shows to be unexposed, exactly as in HSCI 341 Lesson 5. When the two groups' values differ, the misclassification is differential, and a group that has both the higher sensitivity and the lower specificity will appear more exposed than it truly is. Figure 7.2 contrasts the two kinds of misclassification.
3.3.2 Protocol Decisions That Prevent Differential Error
Because differential error has no fixed direction and cannot be corrected with a single pair of values, the protocol concentrates on preventing it. Table 7.5 lists the decisions that do so and what each prevents.
Table 7.5. Protocol decisions that prevent differential misclassification.
| Protocol decision | What it prevents |
|---|---|
| Measure the exposure before the outcome occurs, or take it from records made at the time | Recall that depends on outcome status |
| Use the same instrument, mode, wording and order of questions for every participant | Accuracy that differs by group because the measurement differs |
| Keep interviewers and outcome assessors unaware of exposure or case status, and train them to a written protocol | Observer bias and differential probing |
| Apply the same schedule of outcome assessment to exposed and unexposed participants | Detection bias from closer monitoring of one group |
| Describe the study to participants in neutral terms | Reporting shaped by knowledge of the hypothesis |
The second decision in Table 7.5 holds the mode of administration constant. The mode of administration is the way questions reach a respondent: on the web, on paper, by telephone or in person. HSCI 341 Lesson 3, Section 1 (Planning a Questionnaire), compared these methods by response rate, cost and the potential for interviewer bias. A mode effect is a difference in survey results that arises from the mode by which the data were collected, and it has two components. A selection effect concerns who answers by each mode: people who respond online can differ from people who respond by telephone in age, health and the outcomes under study, so a comparison across modes can mix different groups of people. A measurement effect concerns how the mode changes the answers of the same person: self-completed modes, on paper or online, tend to produce greater disclosure of sensitive behaviour, such as substance use or symptoms of depression, than interviewer-administered modes, in which the wish to give a socially acceptable answer is stronger. The measurement effect is the reason a protocol uses one mode for every participant. When a study must offer more than one mode, it records the mode of each response so that results can be compared by mode in the analysis. HSCI 207 Lesson 8, Section 2.1 (Mode Effects), treats the topic in more detail and is optional reading.
Non-differential misclassification of a binary exposure moves the odds ratio toward the null by an amount that Table 7.4 allows the analyst to compute, while differential misclassification has to be prevented by design. The calculation in Table 7.4 can also be run in reverse, which is the subject of 4.1.
4.1 Back-Correcting an Observed Table
When the sensitivity and specificity of the exposure measurement are known, or can be assumed, the true table can be recovered from the observed one. Because misclassifying exposure leaves the non-case total m0 unchanged, the true count of exposed non-cases is given by Equation 7.5:
The same reasoning applied to the case total m1 gives Equation 7.6 for the exposed cases.
The unexposed counts follow by subtraction from the totals. As an illustration, apply the formulas to the observed table of Worked Example 7.4. With the true values SeE = 0.80 and SpE = 0.90, they return the original 90, 70, 210 and 630, and the odds ratio of 3.86. With SeE = 0.90 and SpE = 0.95 applied to the same observed table, they return an odds ratio of 3.03. The corrected estimate therefore depends heavily on the assumed error rates, and for some combinations the formulas give a zero or negative cell, which shows that the assumed values are incompatible with the data. For these reasons the correction is reported over a range of plausible values, and those values come from a validation study in a population like the study population. Calculator 7.3 contains both versions of the example.
A back-corrected table is only as accurate as the sensitivity and specificity used to compute it. The next subsection describes how a protocol plans the validation sub-study that supplies those values.
4.2 Planning a Validation Sub-Study
A validation sub-study measures a subset of participants twice: once with the study's instrument and once with a reference standard that is accepted as correct or close to it. It supplies the sensitivity and specificity (or, for a continuous measure, the relationship between measured and true values) that a correction needs. Two directions of estimation should be kept apart. A validation estimate runs from truth to measurement. By this we mean that it starts with people whose true status is known and asks how the instrument classified them, for example the probability of being classified as exposed among those who are truly exposed, which is the sensitivity. A correction runs the other way, from measurement to truth. It starts with what the instrument recorded and asks what is really there, for example the probability of being truly exposed among those classified as exposed, which is a predictive value. The distinction matters because a predictive value depends on prevalence as well as on the error rates. For example, a measure with a specificity of 0.90 used in a population where almost nobody is exposed will produce many false positives relative to true positives, so most of the people it classifies as exposed are not, even though its sensitivity and specificity are unchanged. Equation 7.7 sets the two directions side by side.
4.2.1 Five Planning Steps
A protocol plans the sub-study in five steps: it chooses a reference standard, decides between internal and external validation, decides who is sampled, decides how many to verify, and states how the results will be used. The fourth step is the one most often done wrongly, because sensitivity is estimated only among people who truly have the condition, so the number to verify depends on how many of them the sub-study will contain. Expand each of the five panels below to see what the protocol states at that step, including the sample size formula for step 4.
The reference standard is the best feasible measurement of the same construct: a clinical or semi-structured diagnostic interview for a mental health screen, pharmacy dispensing records for self-reported medication use, a biomarker for self-reported smoking, or a chart review for an administrative case definition. It should be applied by people who do not know the result of the study instrument, and close enough in time that the true state has not changed.
An internal sub-study validates the measure in a subset of the study's own participants. An external estimate is taken from a published validation in another population. External estimates cost nothing but assume transportability, that is, that sensitivity and specificity are the same in the study population, which can fail when age, language, setting or the prevalence of related conditions differ. Mental health diagnoses identified from physician billing records, for example, tend to have lower sensitivity than chronic physical conditions, because many people with these conditions never generate a billing record for them. An internal sub-study removes the transportability assumption at the cost of extra measurement.
A simple random subsample of participants gives sensitivity and specificity directly. A subsample stratified by the study measurement, for example every screen-positive participant and a random tenth of the screen-negatives, is more efficient when the condition is uncommon, because it concentrates the costly reference-standard measurements on the people most likely to have the condition. The estimates must then be weighted by the inverse of the sampling fractions, so that each verified screen-negative stands for the ten screen-negatives it represents. Without the weights they will be distorted by verification bias, by which we mean that the verified group contains far more screen-positives than the full sample does, so the sensitivity calculated from it is too high. When misclassification may be differential, the sub-study samples cases and non-cases (or exposed and unexposed participants) separately, so that sensitivity and specificity can be estimated in each group. This is the two-stage design described in HSCI 341 Lesson 2.
Sensitivity is estimated only among people who truly have the condition, so the size of the sub-study is driven by how many of them it will contain (Buderer, 1996). To estimate an expected sensitivity Se within a margin d with 95% confidence, the sub-study needs Z2 × Se × (1 − Se) ÷ d2 true positives, with Z = 1.96, and the number of participants to verify is that number divided by the expected prevalence of the condition among them. The same calculation with Sp and (1 − prevalence) gives the number needed for specificity, and the protocol takes the larger of the two.
The protocol states which estimate will be corrected, by which method (back-correction of the table for a categorical variable, regression calibration for a continuous one), and how the uncertainty in the validation estimates will be carried into the corrected result, for example by repeating the correction across the confidence limits of sensitivity and specificity. It also states what will be reported if the sub-study cannot be completed, usually a correction across a range of published values.
Taken together, the five panels describe a sub-study whose results can be trusted and used: an independent reference standard, a population to which the results transfer, a sample that allows group-specific estimates, a size set by the true positives it contains, and a stated analysis.
Worked Example 7.6 applies the five steps to the PHQ-2 in the Campus Connection Study, including the sample size calculation of the fourth step.
Worked Example 7.6: Validating the Outcome Measure in the Campus Connection Study
The Campus Connection Study measures depressive symptoms with the two-item Patient Health Questionnaire (PHQ-2). Against semi-structured diagnostic interviews, a pooled analysis found a sensitivity of 0.72 and a specificity of 0.85 at the standard cut-off (Levis et al., 2020). Those values come from many populations, and their transportability to students aged 18 to 29 at five British Columbia institutions is an assumption. An internal sub-study would invite a random subsample of respondents to a semi-structured interview by video within two weeks of the survey, conducted by trained interviewers who do not see the PHQ-2 responses.
To estimate a sensitivity near 0.72 within ±0.15, the sub-study needs 1.962 × 0.72 × 0.28 ÷ 0.152 = 34.4 participants with depression. If the protocol assumes, for planning, that 15% of interviewed respondents meet the interview criteria, it needs 34.4 ÷ 0.15 = 230 interviews (rounded up). Those 230 interviews would contain about 196 participants without depression, enough to estimate a specificity near 0.85 within about ±0.05. Narrowing the margin for sensitivity to ±0.10 would require about 517 interviews, which shows why the precision of sensitivity drives the cost when the condition is uncommon. The protocol states the planning prevalence, the margin it can afford, and the analysis that will use the results.
The example shows the slip that step 4 guards against: the 34.4 participants with depression are the number of true positives needed, and the number of interviews is found only after dividing by the planning prevalence.
4.2.2 Regression Calibration for a Continuous Exposure
The fifth step names regression calibration as the method for a continuous variable. For a continuous exposure measured with error, such as dietary intake from a food-frequency questionnaire, regression calibration is the analogue of back-correction (Rosner, Willett & Spiegelman, 1989). The problem it solves is the continuous version of the one in 3.1: random error in a measured exposure spreads the measured values out more widely than the true values, so the slope of the outcome on the measured exposure is flatter than the true slope, a pattern called attenuation. Regression calibration works in two stages. First, in the validation sub-study, the reference measurement is regressed on the study measurement (and on any other covariates in the main model). This regression describes what a person's true exposure is likely to be, given what the questionnaire recorded. For example, people who report very high intakes on a food-frequency questionnaire tend, on average, to have true intakes somewhat closer to the middle, and the fitted equation captures that pull. Second, the fitted equation is used to predict a calibrated exposure value for every participant in the main study, and the outcome model is fitted with the calibrated values in place of the measured ones. Because the calibrated values no longer carry the extra spread, the slope moves away from the attenuated value toward the true association. Its standard error must be adjusted for the uncertainty in the calibration step, for example by bootstrapping. The method assumes that the measurement error is non-differential and that the calibration equation transfers from the sub-study to the whole sample. A protocol that plans regression calibration therefore plans an internal validation sub-study with both measurements, and HSCI 410 provides the regression skills to carry it out.
Validation and correction address the bias that misclassification causes. Misclassification also reduces power, and the last subsection turns to the sample size a protocol needs when its outcome measure is imperfect.
4.3 Inflating the Sample Size for Misclassification
Sample size formulas assume that the proportions entered into them are the proportions the study will observe. With an imperfect outcome measure, the observed proportions are given by Equation 7.8:
p2′ = Se × p2 + (1 − Sp) × (1 − p2)Eq 7.8
With non-differential error the difference p1′ − p2′ is smaller than p1 − p2, so a study sized with the true proportions would be underpowered. The recall box below summarizes how HSCI 341 Lesson 2 computed the sample size for comparing two proportions; try its retrieval question before you reveal the answer.
Recall: Sample Size for Comparing Two Proportions
HSCI 341 Lesson 2, Section 5 (Planning Sample Size), computed the sample size for comparing two proportions from four inputs: the Type I error (α, usually 0.05, the chance of declaring a difference that does not exist), the power (1 − β, usually 0.80, the chance of detecting a difference of the planned size), and the two proportions expected in the groups being compared. The closer the two proportions, the larger the sample needed. HSCI 230 Lesson 11, Section 2, described the same two errors from the reader's side, when a published study is appraised.
Retrieval question. An underpowered study finds no statistically significant difference, and its confidence interval runs from a small protective effect to a large harmful one. What can it conclude?
It cannot conclude that there is no difference. The interval shows that the data are compatible with no effect and with effects large enough to matter, so the question remains open, and a Type II error is a real possibility.
Power depends mainly on how far apart the two proportions are rather than on how common the outcome is (the proportions also affect the variance, but less), so observed proportions that are higher than the true ones still call for a larger sample. Misclassification enters through the last of those inputs, the two expected proportions, and the protocol therefore computes the observed proportions first and enters them into the two-proportion formula. Worked Example 7.7 applies Equation 7.8 to a cohort comparison and to the Campus Connection Study.
Worked Example 7.7: Two Sample Size Inflations
A cohort comparison. A study is planned to detect a difference between true outcome proportions of 0.15 and 0.10 with 95% confidence and 80% power, which requires 685 participants per group. If the outcome test has Se = 0.85 and Sp = 0.95, the observed proportions are 0.85 × 0.15 + 0.05 × 0.85 = 0.170 and 0.85 × 0.10 + 0.05 × 0.90 = 0.130, and the requirement rises to 1,249 per group, 1.8 times as many.
The Campus Connection Study. The protocol's planning values are positive-screen proportions of 0.34 among lonely students and 0.26 among others, which need 514 per group. Those values came from studies that used screening questionnaires, so they already describe screen-positive status. Suppose instead that the protocol defined its outcome as depression itself and treated 0.34 and 0.26 as true proportions, measured with the PHQ-2 (Se = 0.72, Sp = 0.85). The observed proportions would be 0.344 and 0.298, the observed prevalence ratio would fall from 1.31 to 1.15, and the requirement would rise to 1,643 per group, 3.2 times as many. With a specificity of 0.95 the requirement would be 1,025 per group. The example shows why a protocol defines its outcome as the construct its instrument measures, and why specificity matters as much as sensitivity when the outcome is common.
Both cases show the required sample growing because the observed proportions move closer together. Calculator 7.4 reproduces both cases, with a third preset for a perfect test.
Two further inflation factors appear in protocols. The first is the design effect from unequal weighting. When respondents carry weights that vary, because strata were sampled at different rates or because the weights were adjusted for non-response as in the Campus Connection Study, the effective sample size is smaller than the number of respondents. By this we mean that a weighted sample of 1,000 respondents carries the statistical information of a smaller unweighted sample, because a few heavily weighted people have a large influence on the estimate and make it less stable. Kish's approximation gives this design effect as 1 + CV², where CV is the coefficient of variation of the weights, that is, their standard deviation divided by their mean. The more the weights vary, the larger the design effect, and the required sample size is multiplied by it. For example, weights with a coefficient of variation of 0.5 give a design effect of 1.25, so a study needs a quarter more respondents. The second is the variance inflation factor, 1 ÷ (1 − R²), where R² is the proportion of the variance of the exposure explained by the other covariates in a regression model. The idea is that, once the analysis adjusts for those covariates, only the part of the exposure that they do not explain is left to estimate its effect, so the more of the exposure they explain, the less information remains. It is the factor in the multicollinearity formula of HSCI 230 Lesson 11 Section 2, and it applies only when a regression-adjusted analysis, taught in HSCI 410, is planned: adjustment for covariates that are correlated with the exposure inflates the variance of the exposure coefficient by this factor, so the sample size is multiplied by it.
Section 2 has shown that misclassification affects a study in two ways. It biases the estimate, which the protocol limits by measuring in the same way in every group and assesses with back-correction and a validation sub-study, and it reduces power, which the protocol offsets by sizing the study with the observed proportions. The key takeaways below summarize these calculations. The knowledge check that follows closes the section, and its last two questions apply outcome misclassification and the planning of a validation sub-study to a screen for generalized anxiety.
Key Takeaways
- 3.1 When an exposure is measured with the same sensitivity and specificity in cases and non-cases, the misclassification is non-differential, and each observed cell becomes a mixture of correctly and wrongly classified people. You can calculate the table the study would observe one row at a time: a1′ = SeE × a1 + (1 − SpE) × a0 for the exposed cases and a0′ = (1 − SeE) × a1 + SpE × a0 for the unexposed cases, with the same formulas applied to the non-cases (Table 7.4). Because the exposed and unexposed columns are blended in the same proportions in both rows, they become more alike and the odds ratio moves toward 1 on average; in Worked Example 7.4 a sensitivity of 0.80 and a specificity of 0.90 pull a true odds ratio of 3.86 down to 2.57. Two checks catch most errors: the case total and the non-case total must be the same in the observed table as in the true one, and every observed exposed count must include the (1 − SpE) term for truly unexposed people wrongly classified as exposed. The same reasoning works in reverse, so when a question tells you that a corrected odds ratio is further from 1 than the observed one, explain that removing non-differential error undoes the attenuation it caused.
- 3.2 Errors in measuring the outcome do not all do the same damage to a risk ratio. If the outcome measure misses some cases but never labels a healthy person as a case (perfect specificity), both risks shrink by the same factor and the ratio is unchanged: true risks of 0.10 and 0.05 measured with a sensitivity of 0.80 become 0.08 and 0.04, and the risk ratio stays at 2.0. If instead the measure finds every case but wrongly flags 5% of healthy people (specificity 0.95), the false positives add roughly the same number of spurious cases to both groups and dilute the ratio to 1.49, and the dilution is greatest when the outcome is rare. That is why a protocol favours a highly specific outcome definition, such as a confirmed diagnosis or a validated case-finding algorithm, even at some cost in sensitivity, and why a case-control study confirms its cases before enrolment. To check an answer, compute each observed risk with p′ = Se × p + (1 − Sp) × (1 − p) before you take the ratio, and keep the rule of thumb in mind: with perfect specificity, missed cases leave a risk ratio alone, while false positives pull it toward 1.
- 3.3 Misclassification is differential when the accuracy of measurement differs between the groups being compared, for example when reported exposure has a different sensitivity or specificity among cases than among non-cases. Recall bias is the classic example: cases search their memories more thoroughly than controls, so they report their true exposures more completely. Unlike non-differential error, differential error has no fixed direction, and the same true table can give an odds ratio above or below the truth depending on which group reports more accurately (4.59 or 2.01 in Worked Example 7.5, against a true value of 3.86). To work out the direction in a question, compute the sensitivity and specificity separately in each group from the validation data, as in HSCI 341 Lesson 5, and ask which group will look more exposed than it really is; with equal specificity, a higher sensitivity among cases makes them appear relatively more exposed, so the odds ratio is likely biased away from the null. Because no single pair of sensitivity and specificity values can correct it, the protocol prevents it by design (Table 7.5): measure exposure before the outcome or take it from records made at the time, use the same instrument, mode and wording for everyone, keep interviewers and assessors unaware of case or exposure status, apply the same outcome-assessment schedule to all, and describe the study in neutral terms.
- 4.1 Because misclassifying the exposure moves people between the exposure columns without changing the case and non-case totals, you can run the calculation in reverse and recover the true table from assumed values of sensitivity and specificity. The true exposed cases are a1 = [a1′ − (1 − SpE) × m1] ÷ (SeE + SpE − 1), the exposed non-cases follow the same pattern with b1′ and m0, and the unexposed counts come from subtracting from the totals. The corrected answer is only as good as the values you put in: the same observed table gives 3.86 with values of 0.80 and 0.90 and 3.03 with 0.90 and 0.95, a zero or negative corrected cell tells you the assumed values do not fit the data, and values borrowed from a validation study in another population assume that the error rates transport to yours. So when a question asks what back-correction does, say that it removes the expected misclassification to estimate the true table, and when it asks whether the result can be trusted, say that it depends on validation data that apply to this study population and should be reported over a range of plausible values. The common slips are dividing the observed count by the sensitivity alone, which ignores the false positives, and forgetting to divide by SeE + SpE − 1.
- 4.2 Trustworthy values of sensitivity and specificity come from a validation sub-study, in which some participants are measured twice, once with the study instrument and once with a reference standard. A protocol plans it in five steps: choose the reference standard (such as a diagnostic interview, pharmacy records or a biomarker), applied by people who do not know the study result and close enough in time; decide between internal validation in the study's own participants and published values that must transport; decide who is sampled, sampling cases and non-cases separately when the error may be differential and weighting the estimates if the subsample is stratified by the test result; decide how many; and state how the results will be used to correct the main estimate. The size is driven by sensitivity, because only people who truly have the condition inform it: you need Z2 × Se × (1 − Se) ÷ d2 true positives, and you divide that number by the expected prevalence among the people verified to find how many to verify. In Worked Example 7.6, 34.4 people with depression divided by a planning prevalence of 0.15 gives about 230 interviews, and the slip to avoid is stopping at the number of true positives. For a continuous exposure, regression calibration plays the part of back-correction: the reference measurement is regressed on the study measurement in the sub-study, and the fitted equation predicts a calibrated exposure for everyone in the main study.
- 4.3 Misclassifying the outcome does more than bias the estimate: it also reduces power, because false positives add spurious cases to both groups and missed cases remove a share of each, which pulls the observed proportions toward each other. A study sized with the true proportions would therefore be underpowered, so the protocol first computes the proportions it expects to observe, p′ = Se × p + (1 − Sp) × (1 − p), and enters those into the two-proportion sample size formula from HSCI 341 Lesson 2. In Worked Example 7.7, true proportions of 0.15 and 0.10 measured with Se = 0.85 and Sp = 0.95 become 0.170 and 0.130, and the requirement rises from 685 to 1,249 per group. Remember that power depends on how far apart the two proportions are, not on how common the outcome is, so the fact that the observed proportions are higher does not mean you need fewer participants. A protocol can also avoid the problem by defining its outcome as the construct the instrument actually measures, such as a positive screen, and using planning values that describe that construct.
1. A case-control study's true table has 100 exposed and 100 unexposed cases, and 50 exposed and 200 unexposed controls (a true odds ratio of 4.00). Exposure is measured with SeE = 0.80 and SpE = 0.90 among cases and controls alike. What odds ratio will the study observe?
2. A cohort protocol will compare the risk of foodborne illness among people who did and did not eat at a market stall, with expected true risks of 0.20 and 0.10 (a risk ratio of 2.0). Definition A, laboratory-confirmed infection, detects 70% of true cases (sensitivity 0.70) and never labels a healthy person as a case (specificity 1.00). Definition B, self-reported stomach symptoms, detects every case (sensitivity 1.00) but is also reported by 10% of healthy people (specificity 0.90). Which definition should the protocol choose, and why?
3. In a case-control study of a medication taken in early pregnancy and a birth defect, mothers are interviewed after the birth. A validation sub-study compares their reports with pharmacy records. Of 50 case mothers whom the records show to have taken the medication, 45 report it; of 50 control mothers whom the records show to have taken it, 35 report it. No mother whom the records show to be unexposed reports taking it. What kind of misclassification is this, and how is it likely to have moved the odds ratio?
4. A study observes 85 exposed among its 200 cases. Exposure was measured with a sensitivity of 0.80 and a specificity of 0.95, values taken from a published validation study in another province. Using a1 = [a1′ − (1 − SpE) × m1] ÷ (SeE + SpE − 1), how many cases were truly exposed, and what does the correction assume?
5. A protocol plans an internal validation sub-study of self-reported regular physical activity against accelerometer measurement, the reference standard. It expects a sensitivity of about 0.70 and wants to estimate it within ±0.10 with 95% confidence, and about half of the participants it verifies are expected to be truly active. The number of truly active participants needed is Z² × Se × (1 − Se) ÷ d², with Z = 1.96. How many participants should the sub-study verify?
6. A cohort protocol is sized to detect true outcome proportions of 0.20 among the exposed and 0.10 among the unexposed. The outcome will be measured with a test that has a sensitivity of 0.90 and a specificity of 0.90 in both groups. Using p′ = Se × p + (1 − Sp) × (1 − p), what proportions will the study observe, and what does this mean for the sample size?
7. A cohort protocol compares the proportion of first-year students who screen positive for generalized anxiety at the end of term between students who work 20 or more hours a week and students who do not. The true proportions are expected to be 0.25 and 0.15 (a risk ratio of 1.67). The screening scale has a sensitivity of 0.80 and a specificity of 0.90 in both groups. Using p′ = Se × p + (1 − Sp) × (1 − p), what will the study observe, and do the equal errors cancel out of the risk ratio?
8. The same team plans an internal validation sub-study of the anxiety scale against a diagnostic interview. It wants to estimate a sensitivity of about 0.80 within ±0.10 with 95% confidence, and expects about 20% of the students interviewed to have the disorder. The number with the disorder needed is Z² × Se × (1 − Se) ÷ d², with Z = 1.96. How many students should be interviewed?
Controlling Confounding by Design and Stratification
Overview
HSCI 230 Lessons 7 and 11 defined confounding, showed it on causal diagrams, and illustrated Simpson's paradox, in which an association reverses when a third variable is taken into account. In a protocol, the control of confounding is a sequence of decisions, and this section follows that sequence. It sets out what makes a variable a confounder and why the causal diagram, not a checklist of criteria, settles the question. It compares the four ways to control a confounder and works through restriction and matching, uses the causal diagram to choose the adjustment set, and carries out a stratified analysis by hand with the Mantel-Haenszel estimator. It ends by separating confounding from two phenomena that can be mistaken for it in a stratified table: effect modification and the non-collapsibility of the odds ratio.
Learning Objectives for this section
- 1.3 Define a confounder as a common cause of the exposure and the outcome, apply the classical criteria that follow from that definition, and explain why the causal diagram, not the criteria alone, settles a variable's role.
- 5.1 Choose among restriction, matching, stratification and adjustment for each confounder, state the costs of each choice, calculate a matched odds ratio, interpret McNemar's test and explain overmatching.
- 5.2 Select an adjustment set from a causal diagram by listing its backdoor paths, keeping mediators and colliders out of the set.
- 6.1 Calculate stratum-specific and Mantel-Haenszel odds ratios, interpret a homogeneity test, and use the change-in-estimate check on the log scale to judge whether a variable confounds an association and in which direction.
- 6.2 Distinguish confounding from effect modification, on the multiplicative and the additive scale, and from non-collapsibility, and state which estimate to report in each case.
1.3 What Makes a Variable a Confounder
A confounder is a common cause of the exposure and the outcome, or a proxy for such a cause, that is not on the causal pathway from the exposure to the outcome. This is the definition the diagnostic check in Section 1 used. The three classical conditions follow from it. A confounder is associated with the outcome independently of the exposure, because it causes the outcome or is a proxy for a cause. It is associated with the exposure in the source population, because it causes the exposure or shares a cause with it. And it is not caused by the exposure, so it does not lie on the path from exposure to outcome, and it is not a consequence of the outcome.
The three conditions are necessary but not sufficient. By this we mean that every true confounder meets them, but a variable can meet them and still not be a confounder, so they can rule a variable out but cannot, on their own, rule it in. A mediator satisfies the first two conditions and fails the third, which is why it is so often mistaken for a confounder: it is associated with the outcome and with the exposure, and only knowledge of the order of events shows that the exposure causes it. A subtler case is a variable measured before the exposure that is caused by two unmeasured factors, one that also causes the exposure and one that also causes the outcome. Such a variable is associated with the exposure through the first factor and with the outcome through the second, and the exposure does not cause it, so it meets all three conditions. Yet it is a collider, because two arrows point into it. Left alone, it blocks the path between the two unmeasured factors, but adjusting for it opens that path and so creates a non-causal association between the exposure and the outcome. Because the diagram of this structure looks like the letter M, the resulting bias is called M-bias. In each of these cases the causal diagram, which shows the direction of each arrow, settles the question that the three conditions leave open.
Two further distinctions affect what a protocol states. A population confounder is a variable known from previous research to confound the association in the target population. Because its role is established before the study begins, the protocol plans to control it whatever the study data show, even if in this particular sample it happens to change the estimate very little. A sample confounder, by contrast, appears to confound in the study data only. This can happen by chance, when a variable that is unrelated to the exposure in the population happens to be unevenly spread between the exposed and the unexposed in the people who were studied. The protocol states in advance how such variables will be judged. The reason is that, if every variable that happens to change the estimate were added to the adjustment set, the set would be shaped by the data rather than by prior knowledge, and the investigator could, knowingly or not, choose the adjustments that give the most appealing result.
Worked Example 7.8 introduces a study of carriage of Streptococcus pneumoniae and childhood respiratory disease in which a measured variable, RSV infection, meets these conditions. Its crude and stratified tables are used throughout this section and in Section 4.
Worked Example 7.8: STREP, Childhood Respiratory Disease and RSV
A study of 400 children examines the association between carriage of Streptococcus pneumoniae (STREP) and childhood respiratory disease (CRD). Respiratory syncytial virus (RSV) infection raises the risk of CRD and is more common among STREP carriers. The same data are used throughout this section and in Section 4. Table 7.6 gives the crude table for all 400 children and the table within each RSV stratum, with the odds ratio of each.
Table 7.6. STREP carriage and childhood respiratory disease, crude and stratified by RSV infection.
| Children | CRD | STREP+ | STREP− | Odds ratio |
|---|---|---|---|---|
| All | Yes | 70 | 30 | 5.44 (crude) |
| No | 90 | 210 | ||
| RSV+ | Yes | 52 | 11 | 3.55 |
| No | 36 | 27 | ||
| RSV− | Yes | 18 | 19 | 3.21 |
| No | 54 | 183 |
Among children without CRD, RSV is present in 36 of 90 STREP carriers (40%) and in 27 of 210 non-carriers (13%), so RSV is associated with the exposure. Within each RSV stratum the odds ratio lies between 3.2 and 3.6, well below the crude value of 5.44, so part of the crude association reflects RSV.
In the STREP example, RSV is associated with both the exposure and the outcome, and the crude odds ratio overstates the association found within each RSV stratum. Once a protocol has identified such a confounder, it has to decide how to control it, which is the subject of 5.1.
5.1 Four Ways to Control a Confounder
A protocol chooses, for each confounder, one of four approaches or a combination of them. The first two, restriction and matching, act on who is studied. The last two, stratification and regression adjustment, act on how the data are analyzed and require that the confounder be measured well. Table 7.7 compares the four approaches by how each works, what it costs and what the protocol states about it. Stratification is carried out by hand in 6.1, and regression adjustment is taught in HSCI 410, so this subsection develops the two design-stage approaches.
Table 7.7. Four approaches to controlling a confounder.
| Approach | How it works | What it costs | What the protocol states |
|---|---|---|---|
| Restriction | Only one level of the confounder is eligible, so it cannot vary. | Smaller eligible population; results apply only to that level; the restricted variable can no longer be studied as a cause or as an effect modifier. | The eligibility criterion and the reason for it |
| Matching | Comparison groups are made alike on the confounder at recruitment. | Recruitment effort; in case-control studies, a matched analysis is required and the matched variable cannot be studied. | The matching variables, the ratio, and the matched analysis |
| Stratification | The association is estimated within levels of the confounder and pooled. | Strata thin out quickly when several confounders are combined. | The strata, the pooled estimator and the homogeneity test |
| Regression adjustment | The confounder enters a model for the outcome. | Model assumptions; taught in HSCI 410. | The adjustment set and the model, named in advance |
5.1.1 Restriction
Restriction prevents confounding by admitting only one level of the confounder. Restricting a study of cervical cancer to women removes confounding by gender completely. Restricting a study to people aged 60 to 69 reduces confounding by age without removing it, because age still varies within the band. When the confounder is binary, admitting the low-risk level is usually preferred, because the exposure effect is then easier to detect and effect modification by the restricted variable is avoided. The other side of that coin is a second cost: because only one level is studied, neither the effect of the restricted variable nor effect modification by it can be examined. If the association is in fact much stronger at the excluded level, for example in children rather than adults, restriction discards the most important finding, and the variable was a modifier to be described rather than a confounder to be removed. In the STREP example, restricting to children without RSV gives an odds ratio of 3.21. That estimate is free of confounding by RSV and describes only children without RSV, which is the cost of restriction: the protocol trades the breadth of its conclusions for their internal validity.
5.1.2 Matching
Matching, the second design-stage approach, makes the distribution of a confounder the same in the groups being compared. HSCI 230 Lesson 4, Section 4 (Comparability, Analysis and Reporting), introduced matching as a way to make controls comparable to cases, and noted that a matched design requires a matched analysis. Its glossary defined overmatching as matching on a variable on the causal pathway, an effect of the exposure, or a variable unrelated to confounding, which reduces efficiency or biases the estimate toward the null. The consequences of matching differ by design, because in the two designs a different group is chosen to resemble another. In a cohort study, unexposed people are chosen to resemble the exposed on the matched variable, before the outcome occurs. The exposed and unexposed groups then have the same distribution of the confounder, so the confounder can no longer differ between the groups being compared, and matching removes confounding by it. In a case-control study, controls are chosen to resemble the cases on the matched variable, after the outcome has occurred. The groups being compared here are cases and controls, and because the matched variable is associated with the exposure, making the controls resemble the cases on it also makes the controls' exposure resemble the cases'. For example, if cases are older and older people are more often exposed, age-matched controls will be older and therefore more often exposed than a random sample of controls would be. This is a selection bias that only a matched or stratified analysis removes. A matched cohort can therefore report the crude comparison, with a stratified or matched analysis adding only precision, whereas a matched case-control study must include the matched variable in its analysis. Matching takes two forms. Frequency matching makes the overall distribution of the matched variable the same in cases and controls, for example the same share in each age group, and is analyzed by stratifying on that variable; because every level stays in the study, effect modification by the matched variable can still be examined, which restriction prevents. Pair matching links each case to one or more specific controls; with one control per case, only the pairs that differ in exposure carry information, and they give the matched odds ratio and McNemar's test in Equation 7.9.
The three tabs below set out these consequences design by design. Open each tab to compare matching in cohort studies, in case-control studies and in matched pairs; the Matched pairs tab gives Equation 7.9 and a numerical example of the matched odds ratio and McNemar's test.
In a cohort study, each exposed person is matched to one or more unexposed people with the same value of the confounder. Matching happens before the outcome occurs, so it makes the exposure independent of the matched variable in the study and removes confounding by it. The matched variable can still affect the outcome, and it does so equally in both exposure groups, so the crude comparison of the matched cohort is unconfounded by it. A stratified or matched analysis can still improve precision.
In a case-control study, controls are matched to cases, after the outcome has occurred. Matching makes the controls resemble the cases on the matched variable, and because that variable is associated with the exposure, it also makes the controls' exposure distribution resemble the cases'. This is a selection bias, usually toward the null, and it is removed only by a matched or stratified analysis that includes the matched variable. The protocol therefore states the matched analysis together with the matching. Matching on a variable that is associated with the exposure but is not a confounder, or on a consequence of the exposure, is overmatching: it costs precision, or introduces bias, without removing any confounding. The protocol matches only on variables that the causal diagram identifies as confounders.
Frequency matching makes the overall distribution of the confounder the same in the two groups and is analyzed by stratification, which allows effect modification by the matched variable to be examined. Pair matching links each case to one or more specific controls and is analyzed by a matched-pair method. With one control per case, only the discordant pairs carry information, because a pair in which both members are exposed, or both unexposed, says nothing about a difference in exposure between cases and controls. Equation 7.9 computes the matched odds ratio and McNemar's test from the counts of the two kinds of discordant pair.
For example, if 40 pairs have an exposed case and an unexposed control and 16 pairs have the reverse, the matched odds ratio is 40 ÷ 16 = 2.5 and McNemar's χ² = (40 − 16)² ÷ 56 = 10.3 on one degree of freedom (P ≈ 0.001). If exposure were unrelated to being a case, the discordant pairs would split roughly evenly between the two kinds; a large χ² and a small P-value show that the split (40 against 16) is more unbalanced than chance would readily explain, so exposure is associated with the outcome in the matched data. Little precision is gained beyond about four controls per case.
The tabs show that matching never removes the need to think about the analysis: a matched case-control study must be analyzed as matched, and the protocol states that analysis alongside the matching. They also explain why overmatching costs precision. If the matching variable is closely tied to the exposure, for example matching on employer when exposure to a solvent depends on the employer, a case and its control usually share the same exposure, so most pairs are concordant and carry no information. The few discordant pairs then give an imprecise estimate, possibly biased toward the null, and no confounding is removed, because the matching variable was not a confounder.
Common trap: analyzing matched data as if unmatched
Counting exposed cases and exposed controls in a pair-matched study, as if the data were unmatched, ignores that matching made the controls' exposure resemble the cases' and usually biases the odds ratio toward the null. Use the discordant pairs, u ÷ v, as in Equation 7.9.
Restriction and matching act on who is studied, and both depend on knowing which variables are confounders, since matching on a variable that is associated with the exposure but is not a confounder is overmatching. The causal diagram supplies that knowledge, and 5.2 shows how it determines the adjustment set.
5.2 Choosing the Adjustment Set from a Causal Diagram
A causal diagram, or directed acyclic graph (DAG), records the investigator's assumptions about what causes what. HSCI 230 Lesson 7 taught how to draw one and how conditioning on a collider or a mediator biases an estimate. For a protocol, the diagram has a specific job: it determines the adjustment set, the variables that must be measured and controlled to estimate the effect of the exposure, using the backdoor criterion (Greenland, Pearl & Robins, 1999). The criterion is applied in four steps.
- Draw the diagram from subject-matter knowledge before seeing the study data, including unmeasured variables.
- Set aside every arrow that leaves the exposure, and every variable that the exposure causes.
- List the remaining paths that connect the exposure to the outcome. Each one that begins with an arrow into the exposure is a backdoor path.
- Choose a set of measured variables that blocks every backdoor path, without including colliders on those paths (unless the path is also blocked by another variable in the set) and without including descendants of the exposure.
Figure 7.3 presents the backdoor criterion as a story in seven scenes, from the causal front door to the closing of the backdoor by conditioning on the confounder.
Watch the front door (causal) and back door (confounded) of a DAG, then close the backdoor by conditioning. Next ▶ advances scenes.
Figure 7.3. A seven-scene visualization of Pearl's backdoor criterion: the causal front door from exposure to outcome, the spurious backdoor through a confounder, and conditioning on the confounder as the door closing.
Figure 7.4 then applies the four steps to a simplified causal diagram for the Campus Connection Study.
In this simplified diagram there are two backdoor paths from loneliness to depressive symptoms, one through financial strain and one through gender, and the adjustment set {financial strain, gender} blocks both. Perceived social support is caused by loneliness, so it is excluded: adjusting for it would estimate only the part of the effect that does not pass through support. Completing the survey is a collider; it cannot be adjusted away, and Section 1 dealt with it as selection bias. Living arrangement affects loneliness and, in this diagram, affects depressive symptoms only through loneliness, so it opens no backdoor path and is not needed for control of confounding; adjusting for a variable that affects only the exposure adds imprecision without removing bias. If the investigators believed that living arrangement also affected depressive symptoms directly, they would draw that arrow and add the variable to the set. The protocol's real diagram contains more variables than this one. Its value lies in making each of these judgements visible to reviewers before the data are collected, and in ruling out the tempting rule of adjusting for everything associated with both the exposure and the outcome.
Once the diagram has named the confounders, the analysis has to control them. For one or two categorical confounders this is usually done by stratification, which 6.1 carries out by hand.
6.1 Stratified Analysis with the Mantel-Haenszel Estimator
6.1.1 Pooling the Strata
The Mantel-Haenszel procedure stratifies the data by the levels of the confounder, computes the odds ratio within each stratum, and pools the strata into one adjusted estimate with a test of whether that estimate differs from 1 (Mantel & Haenszel, 1959). In practice it is accompanied by a test of whether the stratum-specific values are similar. It is the analysis that a protocol usually plans when it has one or two categorical confounders. Equation 7.10 gives the odds ratio within one stratum, Equation 7.11 pools the strata into the Mantel-Haenszel estimate, Equation 7.12 tests whether the stratum-specific values are similar, and Equation 7.13 tests whether the pooled estimate differs from 1.
The pooled estimate weights each stratum by its size, so it is not the simple average of the stratum odds ratios, and every product is divided by its own stratum total. Worked Example 7.9 applies Equation 7.11 to the two RSV strata of Worked Example 7.8.
Worked Example 7.9: The Mantel-Haenszel Odds Ratio for STREP and CRD
The RSV+ stratum has 126 children and the RSV− stratum has 274.
- Numerator: (52 × 27) ÷ 126 + (18 × 183) ÷ 274 = 11.143 + 12.022 = 23.165.
- Denominator: (11 × 36) ÷ 126 + (19 × 54) ÷ 274 = 3.143 + 3.745 = 6.887.
- ORMH = 23.165 ÷ 6.887 = 3.36.
The stratum odds ratios (3.55 and 3.21) are similar, and the homogeneity test in Calculator 7.5 gives no evidence that they differ, so a single pooled value is appropriate. The pooled estimate is 28% lower than the crude value on the log scale, so RSV confounds the crude association, and about 3.4 is the better estimate of the association between STREP and CRD.
Calculator 7.5 reproduces the calculation, reports the homogeneity test of Equation 7.12, and has a second preset in which the strata differ.
6.1.2 Judging Confounding: Change in Estimate and Direction
The Mantel-Haenszel estimate supplies the adjusted value that the change-in-estimate approach needs. This approach compares the crude odds ratio (ORc) with the odds ratio adjusted for a candidate variable (ORa). By the common convention, a change of more than 10 percent is taken as evidence that the variable confounds the association, and a protocol that uses another threshold names it in advance as a choice. Three rules keep the check honest. The crude value is the baseline. For ratio measures the change is computed on the log scale, (ln ORc − ln ORa) ÷ ln ORc, because a halving and a doubling are changes of the same size on that scale. By this we mean that an odds ratio of 2.0 and an odds ratio of 0.5 describe associations of equal strength in opposite directions, yet on the ordinary scale the first is 1.0 above the null and the second only 0.5 below it. Taking logarithms makes the two distances equal (ln 2.0 = 0.693 and ln 0.5 = −0.693), so a change measured on this scale means the same thing whether the association is harmful or protective. For a logistic model this is the percentage change in the exposure coefficient, because the coefficient is the log odds ratio, and it is the form that HSCI 410 Lesson 3 uses. And the check is applied only to variables that the diagram allows to be confounders, because adjusting for a mediator or a collider also changes the estimate. In the STREP example the Mantel-Haenszel estimate in Worked Example 7.9 is 3.36, and the change from the crude value is (ln 5.44 − ln 3.36) ÷ ln 5.44 = 28% on the log scale, so RSV meets the criterion and the diagram supports it as a confounder. A protocol names the diagram as the primary basis for the adjustment set, states the threshold it will use for variables whose role is uncertain, and fixes both before the analysis.
The comparison of the crude and adjusted values also gives the direction of the confounding. In the STREP example the crude odds ratio (5.44) is further from 1 than the adjusted one (3.36), so the confounding was positive: RSV is more common among carriers and raises the risk of CRD, and the crude estimate overstated the association. Confounding can also be negative. When a confounder is more common among the exposed but lowers the risk of the outcome, or is less common among the exposed but raises it, the crude estimate is closer to 1 than the adjusted one and hides part of the association, as the negative-confounding preset of Interactive 7.1 shows. In both cases the adjusted estimate is the one to report, and the change-in-estimate check is computed in the same way. With the crude value as the baseline, negative confounding gives a negative change. For a crude odds ratio of 2.0 and an adjusted value of 2.5, (ln 2.0 − ln 2.5) ÷ ln 2.0 = (0.693 − 0.916) ÷ 0.693 = −0.32. The sign shows the direction, and it is the size of the change, 32%, that is compared with the 10% threshold, so this variable confounds the association. A change of −3%, by contrast, is well within 10%, and the variable would not be judged a confounder.
Interactive 7.1 simulates a study of 2,000 people in which a third variable, C, raises the risk of the outcome. Its sliders change the strength of confounding and of effect modification, so that the crude, stratum-specific and Mantel-Haenszel odds ratios can be compared as each changes. Its effect-modification slider also previews the subject of 6.2.
📊 Interactive 7.1: Mantel-Haenszel Stratified Analysis
Crude (unstratified) 2×2
| Y+ | Y− | Total | |
|---|---|---|---|
| E+ | 281 | 536 | 817 |
| E− | 198 | 985 | 1183 |
Stratum 1: C+
| Y+ | Y− | |
|---|---|---|
| E+ | 239 | 278 |
| E− | 145 | 338 |
Stratum 2: C−
| Y+ | Y− | |
|---|---|---|
| E+ | 42 | 258 |
| E− | 53 | 647 |
Crude vs. stratum-specific vs. MH-adjusted OR
In the simulator, raising the strength of confounding separates the crude odds ratio from the stratum values, while raising the effect-modification multiplier separates the stratum values from each other. That second pattern is not confounding at all, and 6.2 explains how to tell the two apart.
6.2 Effect Modification and Non-Collapsibility
6.2.1 Effect Modification
Effect modification is present when the association between exposure and outcome differs across levels of a third variable. By this we mean that the exposure genuinely does more, or less, in one group than in another, as when a drug works better in younger patients than in older ones. This makes it a different kind of thing from confounding. Effect modification is a property of the causal system, a real feature of how the exposure acts, and so it is described and reported. Confounding, in contrast, is a distortion produced by comparing groups that differ in other causes of the outcome, and so it is a bias to be removed. A single variable can be a confounder, an effect modifier, both or neither, and the analysis has to ask each question separately. Whether effect modification is present also depends on the scale of measurement: on the additive scale it is judged with the risk difference, and on the multiplicative scale with a ratio measure such as the risk ratio or odds ratio. The three cards below give the formal definitions. Click each card to see how interaction is defined on the additive scale and on the multiplicative scale, and what the terms synergism and antagonism mean.
The cards show that the multiplicative scale is the one the Mantel-Haenszel homogeneity test examines, while the additive scale bears most directly on public health, because it describes how many cases a combination of exposures adds.
The two scales can give different answers for the same data. Suppose that among younger people the risk of an outcome is 0.12 with an exposure and 0.04 without it, and among older people it is 0.24 with the exposure and 0.08 without it. The risk ratio is 3.0 in both age groups, so there is no effect modification on the multiplicative scale. The risk difference is 0.08 among younger people and 0.16 among older people, so on the additive scale the exposure adds twice as many cases per 100 people in the older group, because their baseline risk is twice as high. A program that can reach only a fixed number of exposed people would prevent more cases among the older group, which is the additive-scale question. A protocol therefore states in advance the scale on which it will assess effect modification, and the measure it will use to answer a public health question about where to act.
On the multiplicative scale, effect modification appears in a stratified analysis as stratum-specific odds ratios that differ, and the protocol has a fixed rule for that case.
When the strata differ
When the stratum-specific odds ratios differ more than chance would explain, a single Mantel-Haenszel summary hides the difference, and the stratum-specific estimates are reported instead. A protocol names in advance the variables it will examine as effect modifiers and the reason for each, because a homogeneity test on many unplanned variables will find apparent modification by chance, and because tests of homogeneity have low power, so a study designed to detect modification needs a larger sample than one designed to detect a main effect.
6.2.2 Non-Collapsibility of the Odds Ratio
The odds ratio has a property that can mimic confounding. Even when a third variable is unrelated to the exposure, so that it cannot confound, the crude odds ratio can differ from the stratum-specific odds ratios whenever that variable affects the outcome and the outcome is common (Greenland, Robins & Pearl, 1999). This property is called non-collapsibility. By this we mean that the odds ratio for the combined table is not a weighted average of the odds ratios in the strata, so collapsing the strata together can change its value even though nothing has been distorted. It is a mathematical feature of odds, not a bias, and it arises because odds grow much faster than risks as an outcome becomes common. Suppose 100 exposed and 100 unexposed people are studied in one stratum, with 80 and 50 cases, and 90 exposed and 90 unexposed in a second stratum, with 30 and 10 cases. The exposure is equally common in both strata, so the stratifying variable is unrelated to it. The odds ratio is 4.0 in each stratum and the Mantel-Haenszel estimate is 4.0, but the crude odds ratio from the combined table (110 of 190 exposed and 60 of 190 unexposed are cases) is 2.98. The change-in-estimate rule would flag a confounder where there is none. Two checks separate the explanations. The first asks whether the third variable is associated with the exposure, which it must be to confound (here it is not). The second uses the risk ratio, which is collapsible: without confounding, its crude value is a weighted average of the stratum-specific values. Here the stratum risk ratios are 1.60 and 3.00 and the crude risk ratio is 1.83, which lies between them. When the outcome is rare the odds ratio approximates the risk ratio and non-collapsibility is negligible.
Three patterns in a stratified table therefore call for three different reports. When the stratum odds ratios are similar to each other but differ from the crude value, and the third variable is associated with the exposure, the variable confounds the association and the pooled Mantel-Haenszel estimate is reported. When the stratum values differ from each other more than chance would explain, the variable modifies the effect and each stratum is reported separately. When identical stratum values differ from the crude odds ratio although the third variable is unrelated to the exposure, the difference reflects non-collapsibility rather than confounding.
Section 3 has set out the decisions a protocol makes about confounding. The protocol identifies confounders with a causal diagram, controls each one by restriction, matching, stratification or adjustment, and separates confounding from effect modification and from the non-collapsibility of the odds ratio. The key takeaways below summarize these decisions. The knowledge check that follows closes the section, and its last two questions ask for the adjustment set and a Mantel-Haenszel analysis in a cohort study of first-year students.
Key Takeaways
- 1.3 A confounder is a common cause of the exposure and the outcome, or a proxy for one, that is not caused by the exposure. The three classical criteria follow from that definition: a confounder is associated with the outcome independently of the exposure, it is associated with the exposure in the source population, and it is not caused by the exposure (nor is it a consequence of the outcome). A mediator meets the first two criteria and fails the third, which is why it is so often mistaken for a confounder, and some colliders meet all three (M-bias), so the criteria are necessary but not sufficient. When a question says a variable "is associated with both" or "meets the criteria", do not stop there: check the direction of every arrow, because the causal diagram, not the data, settles whether a variable is a confounder, a mediator or a collider. In your answer, name the arrows explicitly, for example "financial strain comes before and causes both loneliness and depressive symptoms, so it opens a backdoor path and is a confounder".
- 5.1 For each confounder the diagram identifies, a protocol chooses one of four controls, or a combination, and each has a cost. Restriction admits only one level of the confounder, which removes confounding by it but means the results describe only that level (children without RSV give 3.21); matching makes the groups alike on the confounder at recruitment, at the cost of recruitment effort and, in a case-control study, a required matched analysis and the loss of the matched variable as a factor you can study. Stratification estimates the association within levels and pools them, but the strata thin out quickly when several confounders are combined, and regression adjustment, taught in HSCI 410, depends on model assumptions. With 1:1 pair matching only the discordant pairs carry information, so the matched odds ratio is u ÷ v (pairs with an exposed case and an unexposed control, divided by pairs with the reverse), and McNemar's χ² = (u − v)² ÷ (u + v) asks whether the split departs from the even split expected if exposure were unrelated to being a case. The trap is to analyze matched data as if they were unmatched, by counting exposed cases and exposed controls, which ignores that matching made the controls resemble the cases. Matching on a variable that is not a confounder, such as a mediator or a variable related only to the exposure, is overmatching: it costs precision or biases the estimate toward the null without removing any confounding.
- 5.2 The causal diagram, drawn from subject-matter knowledge before you see the data, tells you which variables to adjust for through the backdoor criterion. Work through it in order: set aside every arrow leaving the exposure and every variable the exposure causes, list the remaining paths from the exposure to the outcome, mark each one that begins with an arrow into the exposure as a backdoor path, and choose measured variables that block every backdoor path without adding colliders or descendants of the exposure. In the simplified Campus Connection diagram, financial strain and gender each open a backdoor path, so the adjustment set is {financial strain, gender}; perceived social support is a mediator, completing the survey is a collider, and living arrangement affects loneliness only, so all three stay out. When a question asks which variables should not be adjusted for, name each one with its role and the consequence: adjusting for a mediator removes part of the total effect, conditioning on a collider opens a non-causal path, and adjusting for a variable that affects only the exposure adds imprecision without removing bias. The rule "adjust for everything associated with both" is the trap to avoid.
- 6.1 To check whether a categorical variable confounds an association, stratify by it, compute the odds ratio in each stratum with the usual cross-product, (a1j × b0j) ÷ (a0j × b1j), and pool the strata with the Mantel-Haenszel estimator, ORMH = Σ(a1j × b0j ÷ nj) ÷ Σ(a0j × b1j ÷ nj), which weights each stratum by its size; pool only when the homogeneity test gives no evidence that the stratum values differ. Then compare the crude and adjusted values on the log scale, (ln ORc − ln ORa) ÷ ln ORc, with the crude value as the baseline; by convention a change of more than 10% supports confounding, provided the causal diagram allows the variable to be a confounder. In the STREP example the crude 5.44 becomes 3.36, a 28% change, and because the crude value is further from 1 than the adjusted one, the confounding was positive and the crude estimate overstated the association; when the crude value is closer to 1 than the adjusted one, the confounding was negative and hid part of the association. The common slips are averaging the stratum odds ratios instead of using the weighted formula, forgetting to divide each product by its stratum total, and computing the change on the original scale rather than the log scale. Whichever way the confounding ran, the adjusted estimate is the one to report.
- 6.2 Three different things can make a stratified table look different from the crude one, and each calls for a different report. Confounding means the stratum odds ratios are similar to each other but differ from the crude value, and the third variable is associated with the exposure, so you report the pooled Mantel-Haenszel estimate. Effect modification means the stratum values themselves differ more than chance would explain, so a single summary would hide the difference and you report each stratum separately; whether it is present depends on the scale, because risk ratios can be equal across groups while risk differences are not (a risk ratio of 3.0 in both age groups, with risk differences of 0.08 and 0.16), and the additive scale tells a program where it would prevent more cases. Non-collapsibility means the crude odds ratio differs from identical stratum values even though the third variable is unrelated to the exposure, which happens when the outcome is common (two strata of 4.0 give a crude value of 2.98), so the change is not a sign of confounding. In a question, check three things in turn: whether the strata differ from each other, whether the third variable is associated with the exposure, and on which scale the question is asked.
1. A cohort study examines high dietary salt intake (the exposure) and stroke (the outcome). Salt intake raises blood pressure, and high blood pressure raises the risk of stroke. In the data, blood pressure is associated with both salt intake and stroke. A colleague writes: "Blood pressure meets the criteria for a confounder, so we must adjust for it." Which response is correct?
2. In a 1:1 pair-matched case-control study of 150 pairs, matched on age group and sex, both the case and the control were exposed in 20 pairs, neither was exposed in 70 pairs, only the case was exposed in 42 pairs, and only the control was exposed in 18 pairs. McNemar's χ² = (u − v)² ÷ (u + v) is 9.6 on 1 degree of freedom (P ≈ 0.002). Which statement is correct?
3. A cohort protocol will estimate the total effect of daily e-cigarette use (the exposure) on persistent cough (the outcome) among teenagers. Its causal diagram shows that parental smoking causes both e-cigarette use and cough; having friends who vape causes e-cigarette use and has no other path to cough; later cigarette smoking is caused by e-cigarette use and causes cough; and school absence is caused by both e-cigarette use and cough. Which adjustment set does the backdoor criterion give?
4. A case-control study of a sleeping medication and hip fracture in adults aged 65 and over is stratified by age group. The crude odds ratio is 3.50, and the test of homogeneity gives p = 0.48. Using ORMH = Σ(a1j × b0j ÷ nj) ÷ Σ(a0j × b1j ÷ nj) and the change on the log scale, (ln ORc − ln ORa) ÷ ln ORc, which conclusion is correct?
| Age group | Exposed cases | Unexposed cases | Exposed controls | Unexposed controls | Total |
|---|---|---|---|---|---|
| 80 and over | 45 | 15 | 20 | 20 | 100 |
| 65 to 79 | 15 | 45 | 20 | 120 | 200 |
5. A cohort study of a workplace solvent and chronic headache reports one-year risks in two age groups. Under 40: 0.10 among exposed and 0.05 among unexposed workers. Aged 40 and over: 0.30 among exposed and 0.15 among unexposed workers. Age is unrelated to solvent exposure in this workforce. Which statement is correct?
6. A cohort protocol will estimate the total effect of binge drinking in the first term on a positive depression screen in April among first-year students. Its causal diagram says: depressive symptoms at entry make binge drinking more likely and predict the April screen; gender affects both; binge drinking leads to academic difficulty at mid-year, which raises the risk of a positive screen; living in residence makes binge drinking more likely and has no other path to the outcome; and completing the April survey is less likely among binge drinkers and among students with depressive symptoms. Which adjustment set, and which treatment of the other variables, is correct?
7. In a pilot of the binge-drinking cohort (600 students), among the 200 with depressive symptoms at entry, 40 of 80 binge drinkers and 40 of 120 other students screened positive in April; among the 400 without symptoms at entry, 16 of 80 binge drinkers and 32 of 320 other students screened positive. The crude odds ratio is 2.75. Using ORMH = Σ(a1j × b0j ÷ nj) ÷ Σ(a0j × b1j ÷ nj) and the change on the log scale, (ln ORc − ln ORa) ÷ ln ORc, which conclusion is correct?
Unmeasured Confounding and the Threats-to-Validity Plan
Overview
Sections 1 to 3 dealt with biases that a protocol can prevent or correct with information it collects. Some confounders cannot be measured at all, and this section shows how a protocol reasons about them and then brings the whole lesson together. It begins with a short orientation to the model-based methods that later courses teach and the limitation they share. It then gives three computations that show how much an unmeasured confounder could change a result: external adjustment with a bias factor, a planned sensitivity analysis and the E-value. It ends with the threats to validity and mitigation subsection of a protocol, with a complete example for the Campus Connection Study.
Learning Objectives for this section
- 7.1 Describe in outline what multivariable regression, standardization, propensity scores, marginal structural models, difference-in-differences and instrumental variables do and where each is taught, and explain why all but instrumental variables (and difference-in-differences, for confounders stable over time) adjust only for measured confounders.
- 7.2 Apply and interpret external adjustment with a bias factor to estimate what an association would be if an unmeasured confounder had been measured, and state the direction of the bias in the observed estimate.
- 7.3 Plan a sensitivity analysis for a protocol, including its bias parameters, their sources and the way the results will be reported.
- 7.4 Calculate and interpret an E-value for an estimate and for its confidence interval.
- 7.5 Write a threats to validity and mitigation subsection that states, for each threat, its mechanism, likely direction, prevention, assessment and residual risk, together with the expected missing data, the mechanism assumed and how it will be handled.
7.1 Methods That Scale to Many Confounders
Stratification works well for one or two confounders. The difficulty is that every added confounder multiplies the number of strata, because each stratum must hold one combination of levels of all the confounders at once. With five confounders of three levels each there are 3 × 3 × 3 × 3 × 3 = 243 strata, many of them nearly empty. A stratum that contains no exposed people, or no cases, cannot contribute to a comparison, and the Mantel-Haenszel estimator therefore loses most of its information. Model-based methods summarize the confounders more efficiently. Instead of comparing people only within exact combinations of the confounders, they assume a pattern, such as a model in which each confounder shifts the outcome by a fixed amount, and so they can use every participant at once. Later courses teach them, and a protocol for a study with one or two confounders often plans a stratified analysis and names the model-based method that a fuller analysis would use. Table 7.8 summarizes what each method does, its key assumption and where it is taught, and it completes, at the level of orientation, the confounding-control methods that HSCI 341 Lesson 1 Section 4 previewed: propensity scores, regression and difference-in-differences.
Table 7.8. Model-based methods for many confounders: what each does, its key assumption and where it is taught.
| Method | What it does | Key assumption | Where it is taught |
|---|---|---|---|
| Multivariable regression | Estimates the exposure effect with the confounders held constant in a model for the outcome. | No unmeasured confounding, and a correctly specified model | HSCI 410 Lesson 3 (linear and logistic regression) |
| Standardization | Applies stratum-specific risks to a chosen standard population to give one summary that is valid even when the strata differ. | No unmeasured confounding | HSCI 341 Lesson 4 (standardized rates and ratios) |
| Propensity scores | Summarize the confounders as the probability of exposure, then match, stratify or weight on that probability. | No unmeasured confounding, and overlap between exposed and unexposed people | Introduced in HSCI 230 Lesson 3 Section 1; taught in HSCI 826 Lesson 7 (graduate course) |
| Marginal structural models | Recall from HSCI 230 Lesson 11 Section 1, where the CD4 count example showed the problem they solve: each person is weighted by the inverse of the probability of the exposure received, to handle confounders that change over time and are affected by earlier exposure. | No unmeasured confounding at any time point | Introduced in HSCI 230 Lesson 11; HSCI 826 Lesson 7 Section 3.7 teaches inverse probability weighting for a treatment at one time |
| Difference-in-differences | Compares the change over time in an exposed group with the change in an unexposed group, which removes differences between the groups that are stable over time. | Parallel trends: without the exposure, the two groups would have changed by the same amount | HSCI 826 Lesson 7 (graduate course) |
| Instrumental variables | Use a variable that affects the exposure, and affects the outcome only through the exposure, to estimate the effect without measuring the confounders. | A valid instrument, which is rare in observational data | HSCI 826 Lesson 8 (graduate course) |
In the STREP example, logistic regression of CRD on STREP and RSV gives an odds ratio of 3.35, and stratification on the propensity score gives 3.36, identical to the Mantel-Haenszel estimate because with a single binary confounder the propensity score takes only two values. The methods differ in how they handle many covariates. Except for instrumental variables, and difference-in-differences for confounders that are stable over time, they share one limitation: they adjust only for what was measured. A propensity score, for example, is the probability of exposure given the measured covariates, so matching, stratifying or weighting on it can balance only what went into it. Several methods that agree with each other, as these three do for STREP, therefore do not rule out an unmeasured confounder, because they all assume there is none. Only a design in which the exposure is assigned rather than chosen removes this limitation. In a randomized trial, chance decides who is exposed, so measured and unmeasured confounders are balanced between the groups on average. When people choose their exposure, as when they decide to join a program, an observational protocol can only bound unmeasured confounding with the methods that follow, and a randomized trial is the design that would settle the question.
A protocol therefore also needs a way to reason about the confounders it could not measure, which the next three subsections take up.
7.2 External Adjustment for an Unmeasured Confounder
Every protocol leaves some confounders unmeasured, because they were unknown, too costly or too sensitive to ask about, or because the data source does not record them. The protocol cannot remove this residual confounding, but it can name the likely candidates, state the direction of the bias each would cause, and plan a calculation that shows how strong a confounder would have to be to change the conclusion. The first such calculation applies when outside sources describe the confounder. When a confounder U was not measured in the study but its prevalence and its association with the disease are known from other sources, the observed estimate can be divided by a bias factor (Schlesselman, 1978):
The bias factor can be read in two parts. The numerator, p1 × (ORUD − 1) + 1, describes how much the confounder raises the average risk of disease among the exposed, given how common it is in that group, and the denominator does the same for the unexposed. By this we mean that if U is present in 40% of the exposed and multiplies the odds of disease by about 4.2, the exposed group as a whole carries more of U's extra risk than an unexposed group in which only 13% have it. The bias factor is the ratio of these two amounts, and so it measures how much of the observed difference between the exposure groups is really due to the unequal distribution of U. Dividing by it removes that share. The formula is exact for risk ratios when the confounder is binary and its risk ratio with the disease is the same among the exposed and the unexposed; it is approximate for odds ratios, and the approximation is best when the disease is rare. In a case-control study the two prevalences describe the source population, which the controls represent. Worked Example 7.10 applies Equation 7.14 to the STREP data as if RSV had not been recorded, so that the result can be checked against the stratified answer of Section 3.
Worked Example 7.10: External Adjustment for STREP and CRD
Suppose RSV had not been recorded, so that only the crude odds ratio of 5.44 was available. External studies of children without respiratory disease suggest that about 40% of STREP carriers and 13% of non-carriers have RSV (p1 = 0.40, p2 = 0.13), and that RSV multiplies the odds of CRD by about 4.2 (ORUD = 4.2).
- Bias factor: B = [0.40 × 3.2 + 1] ÷ [0.13 × 3.2 + 1] = 2.28 ÷ 1.416 = 1.61.
- Externally adjusted odds ratio = 5.44 ÷ 1.61 = 3.38.
The result is close to the Mantel-Haenszel estimate of 3.36 obtained in Section 3 when RSV was measured. The agreement depends on the accuracy of the external information, and because CRD is common in these data the odds-ratio approximation is less exact than it would be for a rare disease.
The comparison of the adjusted and observed values shows the direction of the bias. In Worked Example 7.10 the bias factor is above 1 and the adjusted value (3.38) is closer to 1 than the observed one (5.44), so the unmeasured confounder had biased the observed estimate away from the null. A bias factor can also be below 1. This happens when the confounder protects against the disease (ORUD below 1) but is more common among the exposed, or raises the risk but is less common among the exposed. Suppose an observed odds ratio is 2.0, and a protective factor with ORUD = 0.5 is present in 50% of the exposed and 20% of the unexposed. Then B = [0.50 × (0.5 − 1) + 1] ÷ [0.20 × (0.5 − 1) + 1] = 0.75 ÷ 0.90 = 0.83, and the adjusted odds ratio is 2.0 ÷ 0.83 = 2.4. Dividing by a number below 1 raises the estimate, so here the confounder had masked part of the association and biased the observed estimate toward the null. The same reading applies to a protective exposure: if the adjusted value lies closer to 1 than the observed one, the observed estimate exaggerated the protection. Calculator 7.6 reproduces Worked Example 7.10, with a second preset for a strong confounder that is far more common among the exposed.
External adjustment gives one corrected estimate for one set of outside values, and the agreement in Worked Example 7.10 depends on the accuracy of those values. A protocol therefore also plans for the possibility that they are wrong, which is the subject of 7.3.
7.3 Planning a Sensitivity Analysis
When no single set of external values is trustworthy, the protocol plans a sensitivity analysis that varies the bias parameters over plausible ranges and reports how the estimate changes. The same logic applies to all three threats. For selection bias the parameters are the sampling fractions of Section 1, for misclassification they are the sensitivity and specificity of Section 2, and for an unmeasured confounder they are the prevalences and the strength used in external adjustment. Quantitative bias analysis is the general name for these methods (Lash, Fox & Fink, 2009). It ranges from simple analyses with one set of fixed values, through grids of fixed values, to probabilistic analyses that draw the parameters from probability distributions and repeat the correction many times. The three forms differ in how they treat uncertainty about the bias parameters. A simple analysis asks what the estimate would be if the parameters took one particular value. A grid asks the same question for several combinations of values, so the reader can see which assumptions matter. A probabilistic analysis goes further: it assigns each parameter a range of plausible values with some more likely than others, draws a value at random thousands of times, and reports the spread of the corrected estimates, which shows both the most likely corrected value and how uncertain it is. HSCI 230 Lesson 12 interprets sensitivity analyses that published studies report; a protocol plans one in five steps.
- Name each threat to be analyzed and the direction in which it would move the estimate.
- Define its bias parameters.
- State where plausible values will come from: published studies, national surveys, pilot data or the study's own validation sub-study.
- Choose the form of the analysis: a grid of fixed values (deterministic) or distributions (probabilistic).
- State how the results will be reported, including the values at which the conclusion would change.
Worked Example 7.11 applies these steps to an unmeasured confounder of the STREP and CRD association, with a grid of fixed values for the prevalence and the strength that enter the bias factor of Equation 7.14.
Worked Example 7.11: A Planned Grid for an Unmeasured Confounder
Suppose a confounder U of the STREP and CRD association could not be measured. The grid varies the prevalence of U among STREP carriers (p1), with a prevalence of 0.10 among non-carriers, and the strength of the U and CRD association (ORUD). Each cell of Table 7.9 divides the observed 5.44 by the bias factor for that combination.
Table 7.9. Externally adjusted odds ratios for STREP and CRD over a grid of values for an unmeasured confounder (prevalence 0.10 among non-carriers).
| ORUD | p1 = 0.4 | p1 = 0.6 | p1 = 0.8 |
|---|---|---|---|
| 2.0 | 4.27 | 3.74 | 3.32 |
| 5.0 | 2.93 | 2.24 | 1.81 |
| 10.0 | 2.25 | 1.62 | 1.26 |
A moderately strong confounder (ORUD = 5, present in 40% of carriers and 10% of non-carriers) leaves the estimate near 2.9. Only a strong confounder that is also far more common among carriers (ORUD = 10, 80% against 10%) brings it down to about 1.3, and no cell of the grid removes the association. The protocol would state this grid in advance, together with the sources for the values chosen.
Reading the grid means looking for the cells where the adjusted estimate approaches 1 and describing how strong, and how unequally distributed, the confounder would have to be to get there, which is the sentence the fifth step asks the report to contain. A grid of this kind can be summarized further, which leads to the E-value.
7.4 The E-Value
VanderWeele and Ding (2017) summarized this kind of analysis in a single number. The E-value is the minimum strength of association, on the risk-ratio scale, that an unmeasured confounder would need to have with both the exposure and the outcome, beyond the measured confounders, to explain away an observed association completely. By "explain away" we mean that, once the confounder was accounted for, the adjusted risk ratio would fall all the way to 1. The E-value therefore turns the grid of the previous subsection into a single threshold. A large E-value means that only a very strong confounder, strongly tied to both the exposure and the outcome, could account for the result, so the finding is robust to unmeasured confounding. A small E-value, close to 1, means that even a weak confounder could do so. The E-value does not say whether such a confounder exists; that judgement still rests on subject-matter knowledge of what was left unmeasured. Equation 7.15 gives the E-value for a risk ratio above 1.
For a risk ratio of 2.0, E = 2.0 + √(2.0 × 1.0) = 3.41, so a confounder would need a risk-ratio association of at least 3.4 with both the exposure and the outcome to explain the result away. An odds ratio or hazard ratio can be treated as a risk ratio when the outcome is rare; when the outcome is common (above about 15%), the square root of the odds ratio approximates the risk ratio (VanderWeele & Ding, 2017). In a protocol the E-value is a planning tool. The investigator computes it for the effect the study is designed to detect, compares it with the strength that the named unmeasured confounders could plausibly have, and states in advance that it will be reported for the estimate and for the confidence limit closer to 1. Worked Example 7.12 carries out this planning step for the Campus Connection Study.
Worked Example 7.12: The E-value at the Planning Stage
The Campus Connection Study is sized to detect a prevalence ratio of 0.34 ÷ 0.26 = 1.31. A prevalence ratio is a ratio of proportions, so the risk-ratio formula applies: E = 1.31 + √(1.31 × 0.31) = 1.95. If the lower confidence limit were 1.10, its E-value would be 1.10 + √(1.10 × 0.10) = 1.43. Suppose the protocol identifies a history of depression before university entry as a confounder that the questionnaire cannot measure well. If such a history could plausibly be associated with both current loneliness and current depressive symptoms by risk ratios of 2 or more, then a result of the planned size could be explained away by it. The protocol says so in advance, which tells reviewers that the study's contribution will be a well-measured, well-sampled association whose causal interpretation remains open, and it may prompt the investigators to add a retrospective question on earlier depression.
The example uses both versions of the E-value, for the estimate and for the confidence limit closer to 1, and compares them with the plausible strength of a named confounder. Calculator 7.7 reproduces it, with presets for two other estimates.
To judge whether a named confounder could explain an estimate away, compare both of its associations with the E-value. Its association with the outcome is its risk ratio with the outcome. Its association with the exposure can be gauged roughly from the prevalences used in external adjustment, as the ratio of its prevalence in the two exposure groups. Suppose an estimate has a risk ratio of 1.6, so its E-value is 1.6 + √(1.6 × 0.6) = 2.58, and a named confounder triples the risk of the outcome but is present in 40% of the exposed and 20% of the unexposed, a ratio of 2.0. Its association with the outcome exceeds the E-value, but its association with the exposure falls short, so on its own it could not explain the association away completely. If either association falls below the E-value, the confounder cannot do so.
External adjustment, a planned grid and the E-value give a protocol three ways to show how much an unmeasured confounder could change a result. The last subsection places these results, with those of Sections 1 to 3, in the protocol subsection on threats to validity and mitigation.
7.5 Writing the Threats to Validity and Mitigation Subsection
The subsection brings the four sections of this lesson together for one study. It usually sits in the methods of a protocol, after the analysis plan and sample size. A reviewer reading it should be able to see that each threat has been identified for this particular study, that its likely direction has been reasoned out, and that the protocol contains specific steps to prevent it and to measure what remains. A strong subsection is specific to the study, quantitative where the tools of this lesson allow, consistent with the causal diagram, sampling plan and sample size elsewhere in the protocol, and candid about the threats that cannot be removed. Table 7.10 lists what the subsection states for each threat and the tools from this lesson that supply it.
Table 7.10. The elements of a threats to validity and mitigation subsection and the tools from this lesson that supply them.
| For each threat, state | Tools from this lesson |
|---|---|
| The mechanism in this study: who or what could produce the bias | The causal diagram; the recap of HSCI 230 Lessons 7 to 11 |
| The likely direction, and its size where it can be estimated | Sampling fractions; misclassified tables; the bias factor |
| The design steps that prevent it | Frame, response and retention decisions; instrument choice, timing and blinding; restriction and matching |
| The analysis steps that assess or correct it | Comparison with the frame and weighting; back-correction; Mantel-Haenszel stratification and the homogeneity test |
| The residual risk and the planned sensitivity analysis | Bounding with assumed sampling fractions; correction over a range of sensitivity and specificity; external adjustment; the E-value |
| For missing data, the expected unit and item missingness, the assumed mechanism and the handling method | Response and retention decisions (Section 1); the missing data mechanisms and complete-case analysis or multiple imputation (HSCI 230 Lesson 11 Section 2) |
The subsection is usually organized by threat (selection, information, confounding, and any design-specific or temporal threat), in about half a page to a page. It is drafted from material already in the protocol: the causal diagram, the sampling plan and sample size, and the instruments chosen. It does not need to repeat the full sample size or analysis plan; it refers to them. Where this lesson gives a calculation (an odds ratio of the sampling fractions, a sample size inflated for misclassification, an E-value for the effect the study is designed to detect), the subsection reports the result.
Missing data cut across the threats: unit non-response and loss to follow-up are selection problems, while item missingness affects information and the measured confounders, so the subsection states the missingness it expects, the mechanism it assumes and the method it will use. The three mechanisms that HSCI 230 Lesson 11 described decide which method is valid, and they are worth committing to memory. Try the retrieval question in the recall box before you reveal the answer.
Recall: Missing Data Mechanisms
HSCI 230 Lesson 11, Section 2, classified missing data by mechanism. Data are missing completely at random when the chance of being missing is unrelated to any data, and complete-case analysis is then unbiased but loses power. They are missing at random when missingness depends only on observed variables, and multiple imputation that uses those variables is valid. A complete-case analysis can then be biased, because the records that remain are not a random subset: if the variable that drives missingness is related to the exposure or the outcome, dropping incomplete records distorts the comparison. Complete-case analysis is unbiased only when data are missing completely at random. They are missing not at random when missingness depends on the unobserved value itself, which no standard method fixes, so a sensitivity analysis is required.
Retrieval question. Younger respondents skip the financial strain items more often than older respondents, and age is recorded for everyone. Which mechanism does this describe, and which handling method fits it?
Missing at random, provided that within each age group missingness does not depend on the level of financial strain itself. Multiple imputation that includes age is then valid, while a complete-case analysis would under-represent younger respondents.
Worked Example 7.13 gives the complete subsection for the Campus Connection Study. It draws on the selection decisions and bound of Worked Example 7.3, the size of the validation sub-study in Worked Example 7.6 and the E-value of Worked Example 7.12, and it adds a plan for missing data that applies the mechanisms above.
Worked Example 7.13: Threats to Validity and Mitigation in the Campus Connection Study
Selection bias. Participation depends on responding to an emailed invitation, and the planned response rate of 15% leaves room for selection. Selection would bias the association only if response depended jointly on loneliness and depressive symptoms, for example if lonely students with depressive symptoms were especially unlikely to respond, which would bias the estimate toward the null. The study prevents recruitment through self-selection by sampling at random from registrar frames at five institutions, and it reduces differential response with a neutral invitation describing a survey of student health and connection, three reminders and a short questionnaire. Respondents will be compared with registrar counts by institution, age group and gender, and the design weights will be adjusted for non-response. A bounding analysis will report the odds ratio under sampling fractions of 0.18, 0.15, 0.15 and 0.10 for the four combinations of loneliness and depressive symptoms; under these values an observed odds ratio of 2.0 corresponds to 2.5.
Information bias. Loneliness is measured with the six-item De Jong Gierveld scale and depressive symptoms with the PHQ-2, administered online in the same order to every respondent, with the PHQ-2 placed before the loneliness items. The outcome is defined as a positive PHQ-2 screen, the construct that the planning values describe. Against diagnostic interviews the PHQ-2 has a pooled sensitivity of 0.72 and specificity of 0.85 (Levis et al., 2020), so associations with depression itself would be attenuated if errors are non-differential. A secondary analysis will correct the prevalence ratio for outcome misclassification across a range of published sensitivity and specificity values. An internal validation sub-study, which would need about 230 diagnostic interviews, is beyond the study's resources, and the transportability of published values to students aged 18 to 29 is stated as a limitation.
Confounding. The causal diagram presented earlier in the protocol identifies financial strain, gender and the other covariates in the adjustment set as confounders, measured with Statistics Canada standard items. Perceived social support is a mediator and is excluded from the adjustment set for the total effect. The primary analysis stratifies by financial strain with the Mantel-Haenszel estimator and reports the homogeneity test; regression adjustment for the full set, which HSCI 410 teaches, is named as a secondary analysis. A history of depression before university entry is a plausible unmeasured confounder that would bias the estimate away from the null. The E-value will be reported for the estimate and its lower confidence limit; for the planning prevalence ratio of 1.31 it is 1.95, which a strong prior-depression effect could reach, and the report will say so.
Temporality. Loneliness and depressive symptoms are measured at the same time, so the survey cannot show that loneliness precedes depressive symptoms, and depressive symptoms may themselves increase loneliness. The questionnaire asks when current depressive symptoms began and how long the student has felt lonely, and a secondary analysis excludes students whose symptoms began before their loneliness. The estimand is described as a prevalence ratio for a cross-sectional association, and the reverse pathway is stated as a limitation.
Missing data. Unit non-response is treated under selection bias. The sample size assumes that 81% of respondents complete the questionnaire, so about one respondent in five is expected to stop partway; partial completions will be counted and compared with complete responses on the items they answered. Among completers, item missingness is expected to be highest for sensitive items such as financial strain. The protocol assumes that item missingness is at random given the observed variables (institution, age group, gender and the other questionnaire items), uses multiple imputation for missing confounder values in the primary analysis, and reports a complete-case analysis as a sensitivity analysis.
Each entry in the example states the five elements of Table 7.10 for one threat, in sentences specific to this study rather than general definitions. The final knowledge assessment applies the same elements to other studies, including a cohort of first-year students.
Section 4 has shown how a protocol reasons about confounders it cannot measure, and how the threats to validity and mitigation subsection gathers the tools of all four sections into one part of the protocol. The key takeaways below summarize these points. The knowledge check that follows closes the section, and its last two questions apply the bias factor and the E-value to an unmeasured confounder.
Key Takeaways
- 7.1 When there are many confounders, stratification breaks down because the strata thin out, and model-based methods take over: multivariable regression (HSCI 410), standardization (HSCI 341 Lesson 4), propensity scores and marginal structural models (introduced in HSCI 230 and taught further in HSCI 826), and difference-in-differences and instrumental variables (the graduate course HSCI 826). For this lesson you need to know what each does in outline and the limitation they share: apart from instrumental variables, and difference-in-differences for confounders that are stable over time, they adjust only for confounders that were measured. A propensity score summarizes the measured covariates in one number, the probability of exposure given those covariates, so matching, stratifying or weighting on it can balance only what went into it. When a question proposes propensity-score matching "to remove all confounding", explain that it cannot balance a confounder that was never recorded, which is why the protocol also plans a sensitivity analysis. It also helps to remember that several methods agreeing with each other, as regression (3.35), propensity-score stratification and Mantel-Haenszel stratification (3.36) do for STREP, does not rule out an unmeasured confounder, because they all share the assumption that there is none.
- 7.2 When a confounder was not measured but outside sources describe it, external adjustment estimates what the association would have been had it been measured. The bias factor B = [p1 × (ORUD − 1) + 1] ÷ [p2 × (ORUD − 1) + 1] combines the confounder's prevalence among the exposed (p1) and the unexposed (p2) with its association with the disease (ORUD), and the adjusted estimate is the observed one divided by B; if the confounder is equally common in both exposure groups, B = 1 and nothing changes. In the STREP example, treating RSV as unmeasured, B = 2.28 ÷ 1.416 = 1.61 and the crude 5.44 becomes 3.38, close to the stratified 3.36. To state the direction, compare the adjusted value with the observed one: if the adjusted value is closer to 1, the confounder had biased the observed estimate away from the null, and if it is further from 1 (which happens when B is below 1 for an estimate above 1), the confounder had masked part of the association and biased it toward the null. The result is only as good as the outside values, so a protocol pairs it with a sensitivity analysis over a range of values.
- 7.3 A planned sensitivity analysis asks how far the estimate would move if a bias were as large as is plausible, and a protocol sets it up in five steps. Name each threat and the direction it would move the estimate; define its bias parameters (sampling fractions for selection, sensitivity and specificity for misclassification, prevalences and strength for an unmeasured confounder); state where plausible values will come from (published studies, national surveys, pilot data or a validation sub-study); choose a grid of fixed values or a probabilistic analysis that draws them from distributions; and state how the results will be reported, including the values at which the conclusion would change. When you read a grid such as the one in Worked Example 7.11, look for the cells where the adjusted estimate approaches 1 and describe how strong, and how unequally distributed, the confounder would have to be to get there. In that example only a strong confounder that is far more common among carriers (ORUD = 10, 80% against 10%) brings 5.44 down to about 1.3, and no cell of the grid removes the association, which is the kind of sentence the report should contain.
- 7.4 The E-value condenses a sensitivity analysis for unmeasured confounding into one number: the minimum strength of association, on the risk-ratio scale, that an unmeasured confounder would need with both the exposure and the outcome, beyond the measured confounders, to explain the observed association away completely. For a risk ratio above 1, E = RR + √[RR × (RR − 1)]; for a risk ratio below 1, take its reciprocal first; and for the confidence interval, apply the formula to the limit closer to 1, with an E-value of 1 if the interval already includes 1. A risk ratio of 2.0 gives an E-value of 3.41, which you would interpret as "an unmeasured confounder would need a risk-ratio association of at least 3.4 with both the exposure and the outcome to explain this result away, and one weaker on both could not", while the E-value for the confidence limit is the strength needed to move the interval to include 1. An odds ratio can be treated as a risk ratio when the outcome is rare (when it is common, above about 15%, the square root of the odds ratio approximates the risk ratio). At the planning stage, compare the E-value for the effect the study is designed to detect with how strong the confounders you cannot measure might plausibly be, as the Campus Connection Study does with its E-value of 1.95.
- 7.5 The threats to validity and mitigation subsection brings the whole lesson together for one study, taking each threat in turn (selection, information, confounding and any temporal or design-specific threat) and stating five elements for each. These are the mechanism in this particular study, the likely direction and, where the lesson's tools allow, its size, the design steps that prevent it, the analysis steps that assess or correct it, and the residual risk together with the sensitivity analysis the study will report. It also states the missing data it expects, the mechanism it assumes (missing completely at random, missing at random or missing not at random) and how it will handle them, for example multiple imputation when data are missing at random given recorded variables, with a complete-case analysis reported as a sensitivity analysis. When an exam asks you to write one entry, give each of the five elements its own clearly labelled sentence, and make every one specific to the study in the question rather than a general definition. The selection entry of Worked Example 7.13 is a good model: it names the mechanism (response that depends jointly on loneliness and depressive symptoms), the direction (toward the null if lonely students with symptoms respond least), prevention (registrar sampling, a neutral invitation and reminders), assessment (comparison with registrar counts and non-response weights) and residual risk (a bound under assumed sampling fractions).
1. A cohort study built from pharmacy records finds that statin users have a lower risk of hip fracture. Statin users may be healthier in ways that the records do not capture, such as diet and exercise, which were never recorded. The analyst proposes propensity-score matching on age, sex, other illnesses and previous fractures "to remove all confounding". Which response is correct?
2. A case-control study finds an odds ratio of 3.00 for heavy alcohol use and oral cancer, but smoking was not recorded. Other studies suggest that 50% of heavy drinkers and 10% of other adults smoke, and that smoking triples the odds of oral cancer (ORUD = 3.0). Using B = [p1 × (ORUD − 1) + 1] ÷ [p2 × (ORUD − 1) + 1] and ORadj = ORobs ÷ B, what is the externally adjusted odds ratio, and what does it say about the observed one?
3. A protocol plans a sensitivity analysis for an unmeasured confounder, U, of an observed odds ratio of 2.40. Each cell of the planned grid divides 2.40 by the bias factor for one combination of the prevalence of U among the exposed (p1, with p2 = 0.20 among the unexposed) and the odds ratio of U with the disease (ORUD). Which statement should the report make?
| ORUD | p1 = 0.4 | p1 = 0.6 | p1 = 0.8 |
|---|---|---|---|
| 2 | 2.06 | 1.80 | 1.60 |
| 4 | 1.75 | 1.37 | 1.13 |
| 8 | 1.52 | 1.11 | 0.87 |
4. A cohort study of university students finds that regular physical activity is associated with a lower risk of a positive depression screen: risk ratio 0.50 (95% CI 0.30 to 0.80). The E-value is E = RR + √[RR × (RR − 1)], applied to the reciprocal of a risk ratio below 1 and, for the interval, to the confidence limit closer to 1. What are the E-values, and what do they mean?
5. In a cohort study, 15% of participants leave the baseline question on alcohol use blank. Blanks are more common among men than women, sex is recorded for everyone, and within each sex leaving the question blank is unrelated to how much a person drinks. Which statement belongs in the missing-data part of the protocol's threats to validity and mitigation subsection?
6. A cohort of 4,000 adults aged 65 and over finds that attending a community exercise class is associated with a lower risk of a fall needing hospital care: risk ratio 0.42 (95% CI 0.30 to 0.59). Frailty was not measured. Published studies suggest that 5% of class participants and 25% of non-participants are frail, and that frailty doubles the risk of such a fall (RRUD = 2.0). Using B = [p1 × (RRUD − 1) + 1] ÷ [p2 × (RRUD − 1) + 1] and RRadj = RRobs ÷ B, what is the externally adjusted risk ratio, and how had frailty moved the observed estimate?
7. For the exercise-class estimate of the previous question (risk ratio 0.42, 95% CI 0.30 to 0.59), the E-value is E = RR + √[RR × (RR − 1)], applied to the reciprocal of a risk ratio below 1 and, for the interval, to the confidence limit closer to 1. What are the E-values, and could frailty, which doubles the risk of a fall, explain the association away on its own?
Final Assessment
Bringing It All Together
This lesson treated validity as a set of decisions made when a protocol is written. HSCI 230 had already defined selection bias, information bias and confounding; this lesson added the calculations that size each one and the design steps that prevent it. Section 1 showed that selection biases an odds ratio by the factor ORsf, so that what matters is whether participation depends jointly on exposure and outcome, and it turned the sampling frame, the recruitment message, contact schedules and retention procedures into protocol decisions. Section 2 computed the table that misclassification produces, recovered the true table from assumed sensitivity and specificity, planned a validation sub-study to supply those values, and inflated a sample size so that misclassification does not leave a study underpowered.
Section 3 framed the control of confounding as a choice among restriction, matching, stratification and adjustment, made for each confounder that the causal diagram identifies, and it carried out the Mantel-Haenszel analysis that protocols with one or two categorical confounders plan, together with the checks that separate confounding from effect modification and from non-collapsibility. Section 4 oriented the model-based methods taught in later courses, computed external adjustment and the E-value for confounders that cannot be measured, and brought everything together, including the handling of missing data, in the threats to validity and mitigation subsection of a protocol. The STREP and childhood respiratory disease example ran through the confounding sections, and the table below collects its results.
How the adjustment methods compare: STREP and CRD, adjusting for RSV
| Method | Odds ratio | Key feature |
|---|---|---|
| Crude (unadjusted) | 5.44 | No control for RSV |
| Restriction (children without RSV) | 3.21 | Removes RSV by design; describes only children without RSV |
| Mantel-Haenszel stratification | 3.36 (95% CI 1.96 to 5.76) | Pools two homogeneous strata (3.55 and 3.21) |
| Propensity-score stratification | 3.36 | With one binary confounder, identical to stratifying on RSV |
| Logistic regression (STREP and RSV) | 3.35 (95% CI 1.96 to 5.73) | Extends to many confounders (HSCI 410) |
| External adjustment (RSV unmeasured) | 3.38 | Uses external prevalence and strength of RSV |
The adjusted methods agree on an odds ratio of about 3.2 to 3.4, against a crude value of 5.44. Methods that share the assumption of no unmeasured confounding can agree and still miss a confounder that none of them measured, which is why the protocol also plans a sensitivity analysis and reports the E-value.
Key Takeaways from this lesson
- You can now name the three threats to internal validity (selection bias, information bias and confounding), explain how each could arise in a described study, and tell a problem with internal validity apart from a question of whether a correct result would transfer to another population (external validity). You can also classify a third variable as a confounder, a mediator or a collider, knowing that only a confounder belongs in the adjustment set for a total effect. The most useful habit for the exam is to write out the direction of the arrows before you name a role, because all three kinds of variable can be associated with both the exposure and the outcome.
- You can now explain that selection biases an odds ratio only when participation or retention depends on the exposure and the outcome together, reason out the direction by asking which cell of the two-by-two table is missing people, calculate ORsf and divide the observed odds ratio by it, and name the frame, response, retention and recording decisions that prevent the problem. For the exam, remember that a low response rate is not, by itself, evidence of bias: what matters is whether response differs by exposure within cases and within non-cases.
- You can now calculate the table that non-differential exposure misclassification produces and explain why it moves an odds ratio toward 1, explain why a specific outcome definition protects a risk ratio, and explain that differential misclassification, such as recall bias, can move an estimate either way and is prevented through the timing, standardization and blinding of measurement. The most useful check on a calculated table is that misclassifying the exposure leaves the case and non-case totals unchanged, and the most useful question to ask of any study is whether the accuracy of measurement could differ between the groups.
- You can now explain what back-correction does and why its answer depends on sensitivity and specificity values that apply to the study population, plan the five steps of a validation sub-study, and explain why outcome misclassification pulls the observed proportions together and so calls for a larger sample. For the exam, remember that a zero or negative corrected cell means the assumed values do not fit the data, and that a validation sub-study must verify enough people to contain the true positives it needs, not just that number of people.
- You can now choose among restriction, matching, stratification and regression adjustment for a confounder and state the cost of each, calculate a matched odds ratio from the discordant pairs, interpret McNemar's test, recognize overmatching, and select an adjustment set from a causal diagram by blocking every backdoor path. The practical reminders are that matched data need a matched analysis that uses only the pairs in which the case and the control differ, and that mediators, colliders and anything else the exposure causes stay out of the adjustment set.
- You can now calculate stratum-specific and Mantel-Haenszel odds ratios, apply the change-in-estimate check on the log scale with the crude value as the baseline and the conventional 10% threshold, say whether the confounding was positive or negative, and tell confounding apart from effect modification (which depends on the scale) and from non-collapsibility. Before you pool, look at the strata: if they differ more than chance would explain, report them separately, and if the third variable is unrelated to the exposure, a change in the odds ratio is not confounding.
- You can now explain why regression and propensity scores cannot remove a confounder that was never measured, interpret an externally adjusted estimate and the direction of the bias it reveals, read a planned sensitivity analysis, interpret E-values for an estimate and its confidence limit, and write a threats to validity and mitigation entry with its five elements, including how missing data will be handled. Whenever you write an entry or interpret an E-value, be specific to the study in front of you: name the actual mechanism, give the direction, and say in plain words how strong an unmeasured confounder would have to be to change the conclusion.
Core Concepts Reviewed
Section 1: The recap of HSCI 230 Lessons 7 to 11; the diagnostic check on confounders, mediators and colliders; sampling fractions, the odds ratio of the sampling fractions and sampling odds; the non-response and daycare worked examples; bias breakers; and protocol decisions on the sampling frame, response, retention and what to record, illustrated with the Campus Connection Study.
Section 2: The misclassified two-by-two table; outcome sensitivity and specificity and the risk ratio; differential misclassification and the decisions that prevent it; back-correction; the five steps of a validation sub-study, including its size; regression calibration in brief; and sample size inflation for an imperfect outcome measure.
Section 3: The definition of a confounder and the classical criteria; population and sample confounders; the STREP and CRD example; restriction, matching, overmatching and McNemar's test; the backdoor criterion and the Campus Connection diagram; the change-in-estimate check; the Mantel-Haenszel estimator, its homogeneity and overall tests; effect modification; and non-collapsibility.
Section 4: An orientation to regression, standardization, propensity scores, marginal structural models and instrumental variables; external adjustment with a bias factor; planning a sensitivity analysis; the E-value at the planning stage; and the threats to validity and mitigation subsection with the Campus Connection example.
Final Knowledge Assessment
Complete the following 17-question assessment, which draws on all four sections of the lesson. A score of 100% is required to complete the lesson. You may retake the assessment as many times as needed.
Question 1: A case-control study of long-term use of a heartburn medicine and stomach cancer takes its cases from a cancer registry and its controls from a random sample of residents contacted by telephone. Three concerns are raised. (A) Cases search their memories for past medicines more thoroughly than controls. (B) Older people are more likely to take the medicine and are also at higher risk of stomach cancer. (C) Controls who take the medicine are more willing to answer a telephone survey about medicines than controls who do not. Which classification of the three concerns is correct?
Question 2: A five-year cohort study compares the risk of kidney disease between factory workers who are and are not exposed to a solvent. Unexposed workers who develop kidney disease often leave for lighter work elsewhere and are lost to follow-up, while loss is rare among exposed workers and among workers who stay healthy. How is this loss likely to bias the risk ratio?
Question 3: A case-control study observes an odds ratio of 3.00. The investigators assume that 30% of exposed cases, 20% of unexposed cases, 40% of exposed controls and 40% of unexposed controls took part. Using ORsf = (sf11 × sf22) ÷ (sf12 × sf21) and ORobserved = ORtrue × ORsf, what is the odds ratio corrected for this selection?
Question 4: In a case-control study of occupational pesticide exposure and Parkinson's disease, exposure comes from job histories that miss some exposed jobs and count some unexposed jobs as exposed, to the same extent for cases and controls. The observed table has 75 exposed and 125 unexposed cases, and 100 exposed and 300 unexposed controls (odds ratio 1.80). Back-correcting it with SeE = 0.75 and SpE = 0.90 gives an odds ratio of about 2.44. Why is the corrected value further from 1?
Question 5: In a case-control study of a household cleaning spray and childhood asthma, parents of children with asthma have already been asked about household products by their child's doctor and may recall using the spray more completely than parents of controls. Which protocol decision for the next study most directly prevents this problem?
Question 6: A team back-corrects its observed table for exposure misclassification, using a sensitivity of 0.85 and a specificity of 0.90 from a validation study of adults over 65, although its own participants are aged 18 to 30. The report states: "The corrected odds ratio of 3.4 is the true odds ratio." Which response is best?
Question 7: In the pilot of a 1:1 pair-matched case-control study of 170 pairs, both members were exposed in 24 pairs, neither in 96 pairs, only the case in 30 pairs and only the control in 20 pairs. McNemar's χ² is 2.0 on 1 degree of freedom (P = 0.16). Which statement is correct?
Question 8: A case-control study of an occupational dust and chronic bronchitis has one strong confounder, smoking. Four proposals are made for controlling it. Which proposal states its cost correctly?
Question 9: A protocol's causal diagram for night-shift work (the exposure) and depression (the outcome) among nurses contains four other variables: age, which affects both shift assignment and depression; sleep disruption, which is caused by shift work and raises the risk of depression; taking sick leave, which is caused by both shift work and depression; and the hospital unit, which affects shift assignment only. Which two variables must stay out of the adjustment set for the total effect, and why?
Question 10: A survey of 300 adults examines daily e-cigarette use and chronic cough, stratified by cigarette smoking. Among the 100 smokers, 15 e-cigarette users and 15 non-users have a chronic cough, and 25 users and 45 non-users do not. Among the 200 non-smokers, 5 users and 10 non-users have a chronic cough, and 25 users and 160 non-users do not. What are the stratum-specific and Mantel-Haenszel odds ratios?
Question 11: A case-control study of night-shift work and breast cancer finds a crude odds ratio of 2.0. After stratifying by age, the Mantel-Haenszel odds ratio is 2.5, and the strata are homogeneous. Night-shift workers tend to be younger, and the risk of breast cancer rises with age. Which conclusion is correct?
Question 12: A cohort study of 400 workers is stratified by a third variable, with 100 exposed and 100 unexposed workers in each stratum. In stratum A, 75 exposed and 50 unexposed workers develop the outcome; in stratum B, 25 and 10 do. The odds ratio is 3.0 in both strata, and the crude odds ratio is 2.33. A colleague finds a change of about 30% on the log scale and concludes that the third variable is a confounder. Which response is correct?
Question 13: A case-control study finds an odds ratio of 1.50 for occupational exposure to a dye chemical and bladder cancer, but smoking was not recorded. Because of a workplace smoking ban, about 10% of exposed workers smoke, compared with 30% of the unexposed, and smoking triples the odds of bladder cancer (ORUD = 3.0). What does external adjustment with B = [p1 × (ORUD − 1) + 1] ÷ [p2 × (ORUD − 1) + 1] show?
Question 14: A case-control study of a rare cancer finds an odds ratio of 1.8 (95% CI 1.2 to 2.7) for an occupational exposure, after adjustment for the measured confounders. The E-value is 3.0 for the estimate and 1.69 for the confidence interval. Which interpretation is correct?
Question 15: A protocol for a cross-sectional survey of daily screen time and anxiety symptoms among high-school students drafts the temporality entry of its threats to validity and mitigation subsection. Which draft contains what such an entry should state?
Question 16: A cohort protocol will follow 1,000 first-year students from September to April, comparing a positive PHQ-2 depression screen in April between students who report food insecurity in September and those who do not. Family financial support cannot be measured. The investigators expect a risk ratio of about 1.8. Using E = RR + √[RR × (RR − 1)], what is the E-value, and what does it mean for family financial support as an unmeasured confounder?
Question 17: In the same food-insecurity cohort, about 25% of students are expected to be lost by April, and the students who leave university or stop responding are often those who are struggling financially and emotionally. Which threats to validity and mitigation entry for loss to follow-up is correct?