HSCI 341, Lesson 7

Designing Against Bias: Validity and Confounding in Study Protocols

Fundamental Epidemiological Concepts and Approaches

Learning objectives for this lesson:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

Lesson 7 · HSCI 341

Designing Against Bias: Validity and Confounding in Study Protocols

The decisions that prevent bias are made when the protocol is written.

Where we start

From recognizing bias to designing against it

What HSCI 230 taught

It defined the three threats to validity, named their common forms and drew them on causal diagrams.

What this lesson adds

It sizes each bias with a calculation and turns its prevention into decisions written into a protocol.

The plan

Four sections and a final assessment

1. Selection bias

Sampling fractions size the bias, and frame, response and retention decisions prevent it.

2. Misclassification

The misclassified table, back-correction, validation sub-studies and sample size inflation are covered.

3. Confounding

Restriction, matching, the adjustment set and Mantel-Haenszel stratification are chosen for each confounder.

4. The validity plan

Unmeasured confounding, the E-value and the threats to validity subsection complete the lesson.

The validity plan

The threats to validity and mitigation subsection

A protocol states its plan for each threat in this subsection.

Mechanism and direction

Each threat is described for the particular study, with its likely direction.

Prevention

The design steps that keep the threat small are stated.

Assessment

The analysis and sensitivity analysis that size what remains are planned.

How to work through it

Calculators, a simulator and checks

  • Each calculator states what it does, what it teaches and what to watch, and its presets load the worked examples.
  • The diagnostic check in Section 1 is ungraded and gives feedback straight away.
  • Each section ends with a knowledge check that you need to pass at 100%.
Reference

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 and Selection
Internal Validity The degree to which an observed association, apart from random error, equals the association in the source population that produced the participants.
External Validity (Transportability) The extent to which an association found in the study also holds in a target population beyond the source population.
Bias A systematic difference between a study's estimate and the true value, arising from the design, conduct or analysis, which a larger sample does not remove.
Selection Bias Bias that arises when entry into a study, or remaining in it, depends jointly on the exposure and the outcome. On a causal diagram it is conditioning on a common effect.
Sampling Frame The list or procedure from which participants are drawn, such as a registrar's enrolment list. It determines who can enter the study.
Sampling Fraction The proportion of a cell of the source population (for example, exposed cases) that enters the study and remains to the analysis.
Odds Ratio of the Sampling Fractions (ORsf) (sf11 × sf22) ÷ (sf12 × sf21). The observed odds ratio equals the true odds ratio multiplied by it, so selection biases the odds ratio only when it differs from 1.
Loss to Follow-Up Departure of participants from a cohort before the outcome is assessed. It produces selection bias when it depends jointly on exposure and outcome, and retention procedures are planned to limit it.
Information Bias
Misclassification Assignment of participants to the wrong category of a categorical exposure, outcome or covariate. Its continuous counterpart is measurement error.
Sensitivity & Specificity Sensitivity is the probability that a person who truly has a characteristic is classified as having it; specificity is the probability that a person who truly lacks it is classified as lacking it.
Non-Differential Misclassification Misclassification whose sensitivity and specificity are the same in the groups being compared. For a binary variable whose errors are independent of other errors, it moves the estimate toward the null on average, although a single study can still overestimate by chance.
Differential Misclassification Misclassification whose accuracy differs between the groups being compared, as in recall bias. It can move the estimate in either direction.
Back-Correction Recovery of the true two-by-two table from an observed table and assumed sensitivity and specificity, using the fact that exposure misclassification leaves the case and non-case totals unchanged.
Validation Sub-Study Measurement of a subset of participants with both the study instrument and a reference standard, to estimate sensitivity and specificity or a calibration equation.
Transportability of Error Rates The assumption that sensitivity and specificity estimated in one population apply in the study population, which any correction based on external values requires.
Regression Calibration A correction for error in a continuous exposure: the reference value is regressed on the measured value in a validation sub-study, and calibrated values replace the measured ones in the outcome model.
Confounding and Causal Structure
Confounder A common cause of the exposure and the outcome, or a proxy for one, that is not on the causal pathway. The classical criteria (associated with the exposure, associated with the outcome independently of the exposure, not on the causal pathway) follow from this definition but are not sufficient, because a collider that precedes the exposure (M-bias) can meet all three.
Mediator A variable on the path from the exposure to the outcome. Adjusting for it removes part of the total effect.
Collider A variable caused by two others, such as participation caused by both exposure and outcome. Conditioning on it opens a non-causal path between its causes.
Directed Acyclic Graph (DAG) A diagram of assumed causal relationships, drawn from subject-matter knowledge, used to identify confounders, mediators, colliders and the adjustment set.
Backdoor Path A non-causal path from exposure to outcome that begins with an arrow into the exposure. Open backdoor paths produce confounding.
Adjustment Set A set of measured variables that blocks every backdoor path without including colliders or descendants of the exposure, chosen from the causal diagram before the analysis.
Restriction Admitting only one level of a confounder to the study so that it cannot vary. It removes confounding by that variable and narrows the population the results describe.
Matching and Overmatching Making comparison groups alike on a confounder at recruitment. Matching on a variable that is not a confounder, or on a consequence of the exposure, is overmatching and costs precision or introduces bias.
McNemar's Test (Discordant Pairs) The test for pair-matched case-control data, which uses only the pairs in which case and control differ in exposure. The matched odds ratio is the ratio of the two kinds of discordant pair.
Change-in-Estimate Check Comparison of the crude and adjusted odds ratios on the log scale, applied only to variables the causal diagram identifies as possible confounders. By the common convention, a change of more than 10 percent supports treating the variable as a confounder; a protocol that uses another threshold names it in advance as a choice.
Mantel-Haenszel Estimator A weighted pooling of stratum-specific odds ratios into one adjusted estimate, accompanied by a test of homogeneity across strata and an overall test against 1.
Effect Modification Variation in the size of an exposure-outcome association across levels of a third variable, assessed on a stated scale and reported stratum by stratum.
Non-Collapsibility The property of the odds ratio by which the crude value can differ from common stratum-specific values even without confounding, especially when the outcome is common.
Unmeasured Confounding and Planning
External Adjustment (Bias Factor) Division of an observed estimate by a bias factor built from an unmeasured confounder's prevalence among the exposed and the unexposed and its association with the outcome.
Sensitivity Analysis Repetition of an analysis over plausible values of bias parameters (sampling fractions, sensitivity and specificity, or confounder strength) to show how far a conclusion could change.
Quantitative Bias Analysis Methods that assign values or probability distributions to bias parameters and correct the estimate accordingly, in deterministic or probabilistic form.
E-Value The minimum strength of association, on the risk-ratio scale, that an unmeasured confounder would need with both exposure and outcome to explain away an observed association.
Propensity Score The probability of exposure given measured covariates, used to match, stratify or weight. Introduced in HSCI 230 Lesson 3 Section 1 and taught in HSCI 826 Lesson 7.
Instrumental Variable A variable that affects the exposure and affects the outcome only through the exposure, which allows an effect to be estimated without measuring the confounders. Taught in HSCI 826 Lesson 8.
Marginal Structural Model A model fitted with inverse-probability-of-treatment weights to handle confounders that change over time and are affected by earlier exposure.
Threats to Validity and Mitigation The protocol subsection that states, for each threat to validity in a particular study, its mechanism, likely direction, prevention, assessment and residual risk.
Key People
Nathan Mantel and William Haenszel Statisticians at the United States National Cancer Institute who published the stratified estimator and test for case-control data that bear their names (Mantel & Haenszel, 1959).
Sander Greenland (1951– ) Epidemiologist whose writing on confounding, collapsibility, bias analysis and causal diagrams helped bring causal-inference methods into routine epidemiologic practice.
Judea Pearl (1936– ) Computer scientist whose work on causal graphs and the backdoor criterion provides the formal basis for choosing an adjustment set from a diagram.
James M. Robins Biostatistician who developed g-methods and marginal structural models for confounding that changes over time, and co-authored the causal-diagram primer used in this lesson (Greenland, Pearl & Robins, 1999).
Miguel A. Hernán Epidemiologist who, with Hernández-Díaz and Robins (2004), gave the structural account of selection bias as conditioning on a common effect.
Tyler J. VanderWeele and Peng Ding Methodologists who introduced the E-value (VanderWeele & Ding, 2017) as a single-number summary of sensitivity to unmeasured confounding.
Paul R. Rosenbaum and Donald B. Rubin Statisticians who introduced the propensity score (Rosenbaum & Rubin, 1983) as a summary of measured confounders.
Don A. Dillman Survey methodologist whose tailored design method organizes contacts, mode and incentives to raise survey response (Dillman, Smyth & Christian, 2014).
No matching entries. Try a different search term.
Section 1 of 4

Validity in the Protocol and Selection Bias

⏱ Estimated reading time: 40 minutes
Section 1 of 4

Validity in the Protocol and Selection Bias

Selection biases an odds ratio only when participation depends jointly on exposure and outcome.

Recap

Three threats, taught in HSCI 230

ThreatHow it arisesHSCI 230
Selection biasParticipation depends on exposure and outcome together.Lessons 7 and 8
Information biasExposure, outcome or covariates are measured with error.Lessons 7 and 9
ConfoundingThe groups differ in other causes of the outcome.Lessons 7 and 11
Diagnostic check

Confounder, mediator or collider

Confounder

It causes both the exposure and the outcome, so the protocol adjusts for it.

Mediator

It lies on the path from exposure to outcome, so it stays out of the adjustment set.

Collider

It is caused by both, so conditioning on it, for example by analyzing responders only, creates bias.

Sampling fractions

How selection changes the odds ratio

Odds ratio of the sampling fractions
\[ OR_{\text{sf}} = \frac{sf_{11} \times sf_{22}}{sf_{12} \times sf_{21}} \qquad OR_{\text{observed}} = OR_{\text{true}} \times OR_{\text{sf}} \]

A sampling fraction is the share of one exposure and outcome group of the source population that reaches the analysis.

Worked example

Non-response that depends on exposure and outcome

2.44
true odds ratio
0.80
odds ratio of the sampling fractions
1.94
observed odds ratio

Among the exposed, non-responders had twice the risk of responders, so exposed cases were the group most often missing.

Protocol decisions

Keeping selection independent of exposure and outcome

Sampling frame

A registrar list or registry allows probability sampling with a known denominator.

Response

Neutral invitations, reminders, short questionnaires and incentives reduce differential response.

Retention

Several contact details, equal procedures and incentives limit loss to follow-up.

What to record

Frame characteristics and a participant flow allow the selection to be assessed and weighted.

Campus Connection Study

Bounding the remaining bias

Response if lonely and depressedOdds ratio of the sampling fractionsAn observed 2.0 corresponds to
0.1251.002.0
0.100.802.5

The other three groups respond at 0.18, 0.15 and 0.15.

Carry forward

What Section 1 adds to a protocol

  • The protocol names its sampling frame and explains why participation should not depend on exposure and outcome together.
  • It states its response and retention procedures and what it will record about non-responders.
  • It plans a bounding analysis with assumed sampling fractions.

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.

ThreatHow it arisesWhere HSCI 230 teaches itWhat this lesson adds
Selection biasEntry 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 biasExposure, 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
ConfoundingThe 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 biasesThe 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.

ThreatDecided in the protocol byChecked or corrected in the analysis by
Selection biasThe sampling frame, the sampling strategy, the recruitment message, contact and reminder schedules, incentives, and retention proceduresComparing responders with the frame, weighting, and bounding the bias with assumed sampling fractions
Information biasThe choice of instrument, its validity evidence, the mode and timing of measurement, blinding of assessors, and a validation sub-studyBack-correction from sensitivity and specificity, regression calibration, and a sample size that allows for misclassification
ConfoundingThe causal diagram, the list of confounders to measure, restriction, and matchingStratification, 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 beganA 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.

Diagnostic check, ungraded

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.

Perceived social support is a mediator. It lies on the path from loneliness to depressive symptoms, so adjusting for it removes part of the effect the study sets out to estimate. A protocol that targets the total effect of loneliness leaves it out of the adjustment set and may analyze it separately as a mechanism.

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.

Financial strain is a confounder. It precedes both variables and causes both, so it opens a backdoor path from loneliness to depressive symptoms. The protocol measures it and controls it by stratification or adjustment.

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.

Completing the survey is a collider, because both the exposure and the outcome affect it. Analyzing only completers conditions on it, which can distort the association. This is selection bias, and the sampling fractions later in this section measure how much it matters.

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.

Body mass index measured after the exposure is a mediator here. It is associated with both shift work and diabetes, which is why it is often mistaken for a confounder, but the arrows run from the exposure to it and from it to the outcome. Body mass index measured before the shift work began could act as a confounder instead, which is why a protocol states when each covariate is measured.

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.

General structure Exposure Outcome Takes part in the study Campus Connection Study Loneliness Depressive symptoms Completes the survey A heavy red border marks a variable that the analysis conditions on.
Figure 7.1. Selection as a collider. When both the exposure and the outcome affect participation, analyzing participants only can distort the association between them.

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 populationExposedUnexposedTotal
CasesA1A0M1
Non-casesB1B0M0
TotalN1N0N

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.

Sampling fractions
sf11 = a1/A1 sf12 = a0/A0
sf21 = b1/B1 sf22 = b0/B0Eq 7.1
Each sampling fraction is the share of a source-population cell that actually entered the study (study count over source count), worked out for the exposed cells and the unexposed cells alike. Under random sampling all four are equal and there is no selection bias.

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:

Odds ratio of the sampling fractions
ORsf = (sf11 × sf22) ÷ (sf12 × sf21) ORobserved = ORsource × ORsfEq 7.2
The odds ratio of the sampling fractions compares the selection of exposed cases and unexposed non-cases with the selection of unexposed cases and exposed non-cases. The observed odds ratio is the true one multiplied by it, so a value of 1 means no selection bias.

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?

Show the answer▼

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.
Knowledge Check: this section

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?

This loss depends on exposure and outcome together, which is selection bias. It makes the estimate wrong for the nurses themselves, so it is a threat to internal validity, not a question of transfer to another population.
Age differing between shift groups and affecting hypertension is confounding: the groups compared differ in another cause of the outcome. That distorts the estimate for the nurses studied, so it concerns internal validity.
This concern accepts the estimate for the nurses and asks whether it would hold in a different target population, factory workers with different shifts and work. Transfer beyond the source population is what external validity means.
Shift history reported after diagnosis is information bias, a measurement error within the study. It sounds like a general design flaw, but it makes the estimate wrong for the nurses studied, so it is a threat to internal validity.
The correct answer is the concern about factory workers. The information needed is the two definitions: a study is internally valid when its association, apart from chance, equals the association in its source population (here, the nurses who were followed), and externally valid when that association also holds in a target population beyond the source. Loss of night-shift nurses who developed hypertension is selection bias (it depends on exposure and outcome together), the age difference is confounding, and shift history reported after diagnosis is information bias, so all three concern whether the estimate is right for the nurses themselves. The last option is tempting because it sounds like a design flaw, but measurement error distorts the estimate within the study, which is internal validity; only the factory-worker concern asks whether a correct estimate would transfer to another population. (Section 1, 1.1.1 The Three Threats and Where HSCI 230 Teaches Them, Table 7.1; Objective 1.1)

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?

Low participation alone does not bias an odds ratio. Bias requires participation to depend jointly on exposure and outcome, and here exposed and unexposed controls refuse at the same rate, so the controls' exposure odds are not distorted.
Over-representing cases relative to controls is what every case-control study does by design, and it cancels in the odds ratio. With refusal unrelated to exposure within cases and within controls, there is no bias in either direction.
No response-rate threshold makes an odds ratio valid. What matters is whether response depends on exposure within cases and within non-cases; a study with 70% response could still be biased, and this one at 48% is not.
Each outcome group takes part at one rate whatever its exposure, so the fractions are 0.92, 0.92, 0.48 and 0.48 and ORsf = 1. The observed odds ratio equals the true one; fewer controls only widen the interval.
The correct answer is that the low response rate is not, by itself, evidence of bias. The information needed is whether participation depends on exposure within each outcome group: cases take part at 0.92 and controls at 0.48, whatever their exposure, so sf11 = sf12 = 0.92 and sf21 = sf22 = 0.48. Then ORsf = (0.92 × 0.48) ÷ (0.92 × 0.48) = 1, so the observed odds ratio equals the true one, and the smaller number of controls only widens the confidence interval. The first option is tempting, but bias requires participation to depend jointly on exposure and outcome; had exposed controls refused more often than unexposed controls, their exposure odds would be too low and the odds ratio biased away from the null. (Section 1, 2.1 When Selection Biases an Odds Ratio, the paragraph on the direction of the bias and the callout on low response rates; Objective 2.1)

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?

Being associated with both is not enough. A confounder causes the exposure and the outcome, but here pain and depressive symptoms both cause membership, so the arrows point into it. Adjusting for it would not remove the bias recruitment created.
Pain and depressive symptoms both cause forum membership, so it is a collider. Recruiting only members already conditions on it, which is selection bias; a different sampling frame, not adjustment, prevents it.
A mediator would need pain to cause membership and membership to cause depressive symptoms. The description has depressive symptoms causing membership, so the arrows point into it from both sides, which makes it a collider.
A variable that decides who is recruited can distort the association when it depends on both exposure and outcome. Studying only forum members conditions on a common effect, which is exactly how selection bias arises.
The correct answer is a collider. The information needed is the direction of the arrows: pain → forum membership ← depressive symptoms, so membership is a common effect of the exposure and the outcome, the structure of Figure 7.1. Because only members are studied, the analysis already conditions on the collider, which can create or distort an association between pain and depressive symptoms; this is selection bias, and it is prevented by the sampling frame (for example a random sample from a health insurance registry), not by adjustment. The first option applies the rule "associated with both", but a confounder causes the exposure and the outcome (or shares a cause with them), whereas here both cause the third variable; nothing in the description puts membership on the path to depressive symptoms, so it is not a mediator either. (Section 1, 1.2 Telling a Confounder from a Mediator and a Collider, diagnostic check "Confounder, mediator or collider?", and Figure 7.1 in 2.1; Objective 1.2)

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?

ORsf = (0.60 × 0.50) ÷ (0.80 × 0.50) = 0.75. Since the observed odds ratio is the true one times ORsf, dividing gives 1.80 ÷ 0.75 = 2.40; the missing exposed cases had pulled the estimate toward the null.
ORsf and the direction are right, but the correction multiplies instead of dividing: 1.80 × 0.75 = 1.35. Because the observed value equals the true value times ORsf, the true value is 1.80 ÷ 0.75 = 2.40.
A value of 1.33 inverts ORsf, putting sf12 × sf21 on top. The formula is (sf11 × sf22) ÷ (sf12 × sf21) = 0.75, which implies a bias toward the null and a corrected value of 2.40, not 1.35.
Equal participation among controls is not enough. Exposed cases took part at 0.60 and unexposed cases at 0.80, so selection depends on exposure among the cases, and ORsf = 0.75 rather than 1.
The correct answer is ORsf = 0.75, a bias toward the null, and a corrected odds ratio of 2.40. The information needed is the four fractions in their places, sf11 (exposed cases) = 0.60, sf12 (unexposed cases) = 0.80, sf21 (exposed controls) = 0.50 and sf22 (unexposed controls) = 0.50, and the observed odds ratio. Then ORsf = (0.60 × 0.50) ÷ (0.80 × 0.50) = 0.30 ÷ 0.40 = 0.75, and because ORobserved = ORtrue × ORsf, the corrected value is 1.80 ÷ 0.75 = 2.40: the missing exposed cases made the observed odds ratio too close to 1. The second option multiplies instead of dividing (1.80 × 0.75 = 1.35), the third inverts ORsf, and the last checks the controls only, although participation that depends on exposure among the cases biases the odds ratio just as much. (Section 1, 2.2 Measuring Selection Bias with Sampling Fractions, Eq 7.1 and Eq 7.2, Worked Example 7.2, Calculator 7.1; Objective 2.2)

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?

Extra recruits keep the number analyzed on target but do nothing about who is lost. If lonely participants who become ill still leave, the same cell stays under-represented and the bias is unchanged.
Analyzing completers only is the conditioning that creates the bias. If lonely participants who become ill leave most often, completers under-represent that cell, however complete their data are.
Several contact details and incentives reduce loss, equal procedures keep it from depending on exposure through the study's own actions, and baseline records let those lost be compared with those retained and the analysis weighted.
Replacing dropouts by exposure status keeps group sizes but not the missing people. New recruits are not the lonely participants who became ill, so the under-represented cell remains and the bias is not addressed.
The correct answer is the plan that combines retention procedures, equal procedures for everyone and baseline records. The information needed is that loss to follow-up biases the estimate only when it depends jointly on exposure and outcome, which is what the pilot suggests (lonely participants who become ill). Several contact details and incentives reduce the loss, equal procedures keep it from depending on exposure through the study's own actions, and baseline characteristics recorded for everyone allow those lost to be compared with those retained and the analysis to be weighted. The tempting first option keeps the number analyzed on target but does nothing about who is lost, replacement recruits do not restore the missing ill participants, and analyzing completers only is the very conditioning that creates the bias. (Section 1, 2.3 Protocol Decisions That Prevent Selection Bias, Retention and What to record tabs; Objective 2.3)

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?

Checking only the unexposed students is not enough. Among daily users, those with symptoms took part at 0.08 and those without at 0.05, so participation depends on exposure and outcome jointly and ORsf is 1.60, not 1.
0.625 inverts ORsf. With sf11 = 0.08, sf12 = 0.04, sf21 = 0.05 and sf22 = 0.04, ORsf = (0.08 × 0.04) ÷ (0.04 × 0.05) = 1.60, so the observed value was too large, not too small.
ORsf = (0.08 × 0.04) ÷ (0.04 × 0.05) = 1.60, so the observed odds ratio is inflated and the value without selection is 2.4 ÷ 1.60 = 1.50. Over-represented daily users with symptoms biased it away from the null.
ORsf is right, but multiplying reverses the correction. The observed value is the true one times ORsf, so the true value is 2.4 ÷ 1.60 = 1.50, and the bias was away from the null, not toward it.
The correct answer is ORsf = 1.60 and a corrected odds ratio of 1.50, a bias away from the null. The information needed is the four fractions in their places: sf11 (daily users with symptoms) = 0.08, sf12 (other students with symptoms) = 0.04, sf21 (daily users without symptoms) = 0.05 and sf22 (other students without symptoms) = 0.04. Then ORsf = (0.08 × 0.04) ÷ (0.04 × 0.05) = 0.0032 ÷ 0.0020 = 1.60, and because the observed odds ratio equals the true one multiplied by ORsf, the value without the selection is 2.4 ÷ 1.60 = 1.50. Daily users with symptoms are over-represented, so the survey makes energy drinks look more strongly linked to anxiety than they are. The last option multiplies instead of dividing, the second inverts ORsf, and the first checks only the unexposed students, although participation that depends on symptoms among daily users is enough to bias the odds ratio. (Section 1, 2.2 Measuring Selection Bias with Sampling Fractions, Eq 7.2, Worked Example 7.2, Calculator 7.1; Objective 2.2)

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?

A larger sample gives a more precise estimate of the wrong value. Bias is systematic, so the same posts reproduce the same sampling fractions and ORsf stays at 1.60; only the interval narrows.
Recruiting more through the same posts leaves ORsf at 1.60, since bias does not shrink with sample size. A registrar frame and a neutral invitation make participation depend less on energy-drink use and anxiety together.
The 5% rate is not, by itself, the problem, and no 70% threshold guarantees validity. The bias comes from participation that differs by exposure among students with and without symptoms, which a higher rate need not fix.
Adjusting for the exposure cannot remove selection that depends on exposure and outcome together. Protocol decisions on the sampling frame and the invitation are exactly what prevent this bias in the next survey.
The correct answer is that a larger sample recruited the same way does not remove the bias. The information needed is that bias is a systematic error: the same posts reproduce the same sampling fractions, so ORsf stays at 1.60 and only the confidence interval narrows. The low participation is not, by itself, the problem either; what matters is that participation differs by energy-drink use among students with and without symptoms. A registrar frame makes who is invited independent of following club accounts or interest in the topic, with a known denominator, and a neutral invitation that names neither energy drinks nor anxiety makes response depend less on the exposure and the outcome. The tempting third option treats a response-rate threshold as the criterion, and adjusting for the exposure itself cannot remove selection on exposure and outcome. (Section 1, 2.1 When Selection Biases an Odds Ratio, the callout on low response rates, and 2.3 Protocol Decisions That Prevent Selection Bias, Sampling frame and Response tabs; Objectives 2.1 and 2.3)

Section 2 of 4

Misclassification and Validation Sub-Studies

⏱ Estimated reading time: 45 minutes
Section 2 of 4

Misclassification and Validation Sub-Studies

Sensitivity and specificity tell you how a measurement will distort a study, and a validation sub-study tells you their values.

The misclassified table

Each observed cell is a mixture

Observed exposed and unexposed cases
\[ a_1^{\prime} = Se \times a_1 + (1 - Sp) \times a_0 \qquad a_0^{\prime} = (1 - Se) \times a_1 + Sp \times a_0 \]

The same formulas apply to the non-cases, and the case and non-case totals do not change.

Worked example

Modest error, large attenuation

3.86
true odds ratio
0.80, 0.90
sensitivity and specificity
2.57
observed odds ratio

The observed table is 79 and 81 cases and 231 and 609 non-cases, with the same totals as the true table.

The outcome and differential error

Specific outcome definitions and standard measurement

Outcome sensitivity and specificity

With perfect specificity, a sensitivity of 0.80 leaves a risk ratio of 2.0 unchanged; a specificity of 0.95 lowers it to 1.49.

Differential misclassification

It can bias in either direction, so the protocol prevents it with timing, standard instruments and blinding.

Back-correction

Recovering the true table

True exposed cases
\[ a_1 = \frac{a_1^{\prime} - (1 - Sp) \times m_1}{Se + Sp - 1} \]

With sensitivity 0.80 and specificity 0.90 the formula returns the true odds ratio of 3.86; with 0.90 and 0.95 it returns 3.03.

Validation sub-study

Planning where sensitivity and specificity come from

  • The protocol chooses a reference standard, such as a diagnostic interview.
  • It decides between internal validation and published values that must transport.
  • It samples participants at random, or by test result with weights.
  • It sizes the sub-study by the number of true positives it needs.
  • It states how the results will correct the main estimate.

For the Campus Connection Study, a sensitivity near 0.72 within 0.15 needs about 230 interviews if 15% of those interviewed have depression.

Sample size

Planning with the proportions you will observe

Observed proportion
\[ p^{\prime} = Se \times p + (1 - Sp) \times (1 - p) \]
514
per group with perfect measurement
1,643
per group with sensitivity 0.72 and specificity 0.85
3.2
times as many participants
Carry forward

What Section 2 adds to a protocol

  • The protocol justifies each instrument with its validity evidence and states the outcome as the construct it measures.
  • It describes the steps that prevent differential misclassification.
  • It plans a correction or a validation sub-study, and a sample size based on the observed proportions.

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:

Non-differential exposure misclassification
SeE|D+ = SeE|D− = SeE and SpE|D+ = SpE|D− = SpEEq 7.3
Misclassification is non-differential when the sensitivity and specificity of exposure measurement are the same in cases and non-cases. For a binary exposure this biases the association toward the null.

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 countObserved count
Exposed cases, a1a1′ = SeE × a1 + (1 − SpE) × a0
Unexposed cases, a0a0′ = (1 − SeE) × a1 + SpE × a0
Exposed non-cases, b1b1′ = SeE × b1 + (1 − SpE) × b0
Unexposed non-cases, b0b0′ = (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:

Differential exposure misclassification
SeE|D+ ≠ SeE|D− or SpE|D+ ≠ SpE|D−Eq 7.4
Misclassification is differential when measurement accuracy, the sensitivity or the specificity, differs between cases and non-cases (recall bias is the classic example). The resulting bias can run in either direction.

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.

Non-differential null, 1 true value toward the null Differential null, 1 true value either direction
Figure 7.2. Non-differential misclassification of a binary variable moves the estimate toward the null on average; differential misclassification can move it either way by an amount that depends on the error rates in each group.

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 decisionWhat it prevents
Measure the exposure before the outcome occurs, or take it from records made at the timeRecall that depends on outcome status
Use the same instrument, mode, wording and order of questions for every participantAccuracy 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 protocolObserver bias and differential probing
Apply the same schedule of outcome assessment to exposed and unexposed participantsDetection bias from closer monitoring of one group
Describe the study to participants in neutral termsReporting 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:

Correcting exposed non-cases
b1 = [b1′ − (1 − SpE) × m0] / (SeE + SpE − 1)Eq 7.5
Given the sensitivity and specificity of exposure measurement, the true count of exposed non-cases is recovered from the observed count by removing the misclassified contribution and rescaling. The denominator (Se + Sp − 1) must be positive.

The same reasoning applied to the case total m1 gives Equation 7.6 for the exposed cases.

Correcting exposed cases
a1 = [a1′ − (1 − SpE) × m1] / (SeE + SpE − 1)Eq 7.6
The same correction recovers the true count of exposed cases from the observed count, using the exposure sensitivity and specificity.

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.

Validation and correction run in opposite directions
Validation: p(E′ = 1 | E = 1) Correction: p(E = 1 | E′ = 1)Eq 7.7
Validation asks how often the measurement records a positive among people who are truly positive. Correction asks how many of the people the measurement flags are truly positive, which is a predictive value.

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.

1. Choose the reference standard▼

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.

2. Decide between internal and external validation▼

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.

3. Decide who is sampled▼

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.

4. Decide how many▼

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.

5. State how the results will be used▼

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:

Observed frequencies with an imperfect test
p1′ = Se × p1 + (1 − Sp) × (1 − p1)
p2′ = Se × p2 + (1 − Sp) × (1 − p2)Eq 7.8
Each observed frequency adds the true cases the test detects (the sensitivity times the true frequency) to the people without the condition whom it wrongly flags (one minus the specificity, times the rest).

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?

Show the answer▼

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.
Knowledge Check: this section

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?

Equal error does not cancel. It blends the exposed and unexposed columns in the same proportions in both rows, which makes them more alike, so the observed odds ratio moves toward 1, here to 2.59.
Cases become 90 and 110 and controls 60 and 190, so the odds ratio is (90 × 190) ÷ (110 × 60) = 2.59. Non-differential error mixes the exposure columns equally in both rows and pulls the estimate toward 1.
This counts only correctly classified exposed people (0.80 × 100 and 0.80 × 50). Each observed exposed count must also add the truly unexposed people wrongly classified as exposed, the (1 − Sp) term.
Non-differential misclassification of a binary exposure makes the groups look more alike, not more different. It moves the odds ratio toward 1, so an observed value further from 1 than the truth is the wrong direction.
The correct answer is 2.59. The information needed is the true table, SeE and SpE, applied to each row with the formulas of Table 7.4. Cases: a1′ = 0.80 × 100 + 0.10 × 100 = 90 and a0′ = 0.20 × 100 + 0.90 × 100 = 110; controls: b1′ = 0.80 × 50 + 0.10 × 200 = 60 and b0′ = 0.20 × 50 + 0.90 × 200 = 190; observed odds ratio = (90 × 190) ÷ (110 × 60) = 17,100 ÷ 6,600 = 2.59. People move only between the exposure columns, so the case total (200) and the control total (250) are unchanged, and because they move in the same proportions in both rows the columns become more alike and the odds ratio moves toward 1. The value 3.50 counts only the correctly classified exposed people and leaves out the truly unexposed people wrongly classified as exposed (the (1 − SpE) term), and 4.00 assumes that equal error cancels, which it does not. (Section 2, 3.1 Non-Differential Exposure Misclassification, Table 7.4, Worked Example 7.4, Calculator 7.2; Objective 3.1)

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?

This reverses the asymmetry. Missed cases remove the same share of cases from both groups and leave the ratio unchanged, while false positives add similar numbers to both groups and dilute it, here to about 1.47.
Equal outcome error does not always leave a risk ratio unchanged. With imperfect specificity, false positives add about the same amount to both risks, which pulls the ratio toward 1; only perfect specificity preserves it.
Definition A is the right choice for the wrong reason. Lower observed risks do not reduce the sample needed; a specific definition finds fewer cases, so it may need more participants. Its advantage is an unbiased ratio.
With specificity 1, both risks are multiplied by 0.70 (0.14 and 0.07), so the ratio stays 2.0. Definition B adds false positives to both groups (0.28 and 0.19), which dilutes the ratio to about 1.47.
The correct answer is definition A. The information needed is the two true risks and each definition's sensitivity and specificity, used in p′ = Se × p + (1 − Sp) × (1 − p). For A, the observed risks are 0.70 × 0.20 = 0.14 and 0.70 × 0.10 = 0.07, so the risk ratio is still 2.0; for B, they are 0.20 + 0.10 × 0.80 = 0.28 and 0.10 + 0.10 × 0.90 = 0.19, and the risk ratio falls to 0.28 ÷ 0.19 = 1.47. Missed cases remove the same share of cases from both groups, which leaves a ratio unchanged, while false positives add roughly the same number of spurious cases to both groups, which dilutes it, so a protocol favours a specific outcome definition even at some cost in sensitivity. The first option has this asymmetry backwards, and the third gives the right choice for the wrong reason, since lower risks need more participants, not fewer. (Section 2, 3.2 Misclassification of the Outcome; Objective 3.2)

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?

Sensitivity is 45 ÷ 50 = 0.90 among cases and 35 ÷ 50 = 0.70 among controls, with equal specificity. Accuracy differs by case status, so the error is differential, and under-counted control exposure makes cases look relatively more exposed.
Equal specificity is not enough for non-differential error. Both sensitivity and specificity must be the same in the groups, and here sensitivity is 0.90 among cases but 0.70 among controls.
The pull toward the null holds for non-differential error only. Differential error can move the estimate either way, and here cases report exposure more completely, which pushes the odds ratio away from the null.
Differential error has no fixed direction, but it can be worked out from group-specific values. The validation data give exactly those values, showing cases look relatively more exposed, so the bias is likely away from the null.
The correct answer is differential misclassification that likely biases the odds ratio away from the null. The information needed is the sensitivity and specificity in each group, computed as in HSCI 341 Lesson 5: sensitivity among cases = 45 ÷ 50 = 0.90, sensitivity among controls = 35 ÷ 50 = 0.70, and specificity = 1.00 in both. Because accuracy differs by case status (Eq 7.4), the error is differential, the pattern of recall bias; the controls' exposure is under-counted more than the cases', so the cases appear relatively more exposed (for example, a true table of 50 and 50 cases and 25 and 75 controls, with a true odds ratio of 3.0, would be observed with an odds ratio of about 3.9). Equal specificity alone does not make the error non-differential, and differential error has no fixed direction: it is worked out from the group-specific values, which is why the sub-study samples cases and controls separately. (Section 2, 3.3.1 Why the Direction Cannot Be Assumed, Eq 7.4 and Worked Example 7.5; Objective 3.3)

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?

Dividing by sensitivity alone ignores the false positives. The correction first removes (1 − Sp) × m1 = 10 wrongly classified cases, then divides by Se + Sp − 1, and it always assumes the error rates are correct.
Subtracting the 10 expected false positives is only the first step; the result must be divided by Se + Sp − 1 = 0.75, giving 100. Back-correction with one pair of values assumes non-differential, not differential, error.
(85 − 0.05 × 200) ÷ (0.80 + 0.95 − 1) = 75 ÷ 0.75 = 100. The correction is only as trustworthy as the published sensitivity and specificity, which must transport to this study population.
The number is right but the conclusion is not. The count is exact only if 0.80 and 0.95 are the true error rates here, so the correction is reported over a range of plausible values.
The correct answer is 100, with the assumption that the published values transport to this study. The information needed is the observed exposed cases (a1′ = 85), the case total (m1 = 200, which misclassifying exposure leaves unchanged) and the two error rates. The expected false positives among cases are (1 − 0.95) × 200 = 10, so a1 = (85 − 10) ÷ (0.80 + 0.95 − 1) = 75 ÷ 0.75 = 100, and the truly unexposed cases are 200 − 100 = 100 by subtraction. The result is exact only if 0.80 and 0.95 are the true error rates in this population, which is why the correction is reported over a range of plausible values and why an internal validation sub-study, which removes the transportability assumption, is preferred; the last option overlooks this. Dividing by the sensitivity alone (85 ÷ 0.80 = 106) ignores the false positives, and stopping at 75 forgets to rescale by SeE + SpE − 1. (Section 2, 4.1 Back-Correcting an Observed Table, Eq 7.6, Calculator 7.3, and 4.2.1 Five Planning Steps, step 2; Objective 4.1)

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?

81 is the number of truly active participants needed, not the number to verify. Only about half of those verified will be truly active, so the sub-study must verify 80.7 ÷ 0.50, about 162, to contain 81 of them.
1.96² × 0.70 × 0.30 ÷ 0.10² = 80.7 truly active participants, and since only half of those verified are expected to be active, 80.7 ÷ 0.50 gives 162 to verify.
This multiplies by the expected share instead of dividing. Verifying 41 people would contain only about 20 truly active ones; to contain 81, the total must be 81 ÷ 0.50, about 162.
The formula uses Z squared (3.8416), not Z. Using 1.96 understates the true positives needed; with Z², 80.7 truly active participants are needed and 162 must be verified.
The correct answer is 162. The information needed is the expected sensitivity (0.70), the margin (d = 0.10), Z = 1.96 and the expected share of verified participants who are truly active (0.50). The number of truly active participants needed is 1.96² × 0.70 × 0.30 ÷ 0.10² = 3.8416 × 0.21 ÷ 0.01 = 80.7, so 81, and because only half of those verified will be truly active, the sub-study verifies 80.7 ÷ 0.50 = 161.3, rounded up to 162. The tempting answer of 81 stops halfway: sensitivity is estimated only among the truly active, so the total must be large enough to contain 81 of them, and multiplying by 0.50 instead of dividing gives 41. The protocol would also state the reference standard, that whoever reads the accelerometer data does not know the self-report, how participants are sampled (separately by case or exposure group if the error may be differential) and how the results will be used. (Section 2, 4.2.1 Five Planning Steps, step 4, Worked Example 7.6; Objective 4.2)

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?

0.90 × 0.20 + 0.10 × 0.80 = 0.26 and 0.90 × 0.10 + 0.10 × 0.90 = 0.18. The difference shrinks from 0.10 to 0.08, so a study sized with the true proportions would be underpowered.
These figures leave out the false positives. With specificity 0.90, the (1 − Sp) × (1 − p) term adds 0.08 and 0.09, giving 0.26 and 0.18, which are closer together and need a larger sample.
Power depends on how far apart the two proportions are, not on how common the outcome is. The observed proportions are higher but closer together, so more participants are needed, not fewer.
Misclassification affects power as well as bias. Pulling the observed proportions together shrinks the difference the study must detect, so the sample size based on the true proportions is too small.
The correct answer is 0.26 and 0.18, which call for a larger study. The information needed is the two true proportions and the test's sensitivity and specificity. Exposed: 0.90 × 0.20 + 0.10 × 0.80 = 0.18 + 0.08 = 0.26; unexposed: 0.90 × 0.10 + 0.10 × 0.90 = 0.09 + 0.09 = 0.18. The false positives add spurious cases to both groups and the missed cases remove a share of each, so the difference shrinks from 0.10 to 0.08 and the ratio from 2.0 to 1.44; with 95% confidence and 80% power the two-proportion formula then needs about 420 per group instead of about 199. The tempting third option forgets that power depends on how far apart the two proportions are, not on how common the outcome is, and the second option leaves out the false positives. (Section 2, 4.3 Inflating the Sample Size for Misclassification, Eq 7.8, Worked Example 7.7, Calculator 7.4; Objective 4.3)

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?

This leaves out the false positives. Sensitivity alone would shrink both proportions by the same factor, but specificity 0.90 adds 10% of the students without the disorder to each group, giving 0.275 and 0.205.
The proportions and ratio are right, but the direction is wrong. A ratio of 1.34 against a true 1.67 is closer to 1, a bias toward the null; higher proportions do not mean a larger ratio.
This multiplies (1 − Sp) by p instead of by (1 − p). False positives come from people without the disorder, so they add about the same absolute amount to both groups and do not scale with each group's risk.
0.80 × 0.25 + 0.10 × 0.75 = 0.275 and 0.80 × 0.15 + 0.10 × 0.85 = 0.205, a ratio of 1.34. False positives add a similar absolute amount to both groups, a larger relative addition to the smaller proportion.
The correct answer is 0.275 and 0.205, a risk ratio of 1.34 biased toward the null. The information needed is the two true proportions and the scale's sensitivity and specificity. Working long hours: 0.80 × 0.25 + 0.10 × 0.75 = 0.200 + 0.075 = 0.275; other students: 0.80 × 0.15 + 0.10 × 0.85 = 0.120 + 0.085 = 0.205; 0.275 ÷ 0.205 = 1.34, against a true 1.67. Missed cases shrink both proportions by the same factor, which alone would leave the ratio unchanged, but false positives add 10% of the students without the disorder to each group, a much larger relative addition to the smaller proportion. The first option leaves out the false positives, the third multiplies (1 − Sp) by p instead of by (1 − p), and the second confuses higher proportions with a larger ratio. (Section 2, 3.2 Misclassification of the Outcome, and 4.3 Inflating the Sample Size for Misclassification, Eq 7.8; Objectives 3.2 and 4.3)

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?

62 is the number of students with the disorder needed, not the number to interview. Only one in five interviewed is expected to have it, so 61.5 ÷ 0.20, about 308, must be interviewed.
1.96² × 0.80 × 0.20 ÷ 0.10² = 61.5 students with the disorder, and with 20% expected to have it, 61.5 ÷ 0.20 gives 308 interviews.
This multiplies by the expected prevalence instead of dividing. Interviewing 13 students would yield only two or three with the disorder; to contain 61.5, the total must be 61.5 ÷ 0.20.
The formula uses Z squared (3.8416), not Z. Using 1.96 understates the number with the disorder needed; with Z², 61.5 are needed and 308 students must be interviewed.
The correct answer is 308. The information needed is the expected sensitivity (0.80), the margin (d = 0.10), Z = 1.96 and the expected share of interviewed students who have the disorder (0.20). The number with the disorder needed is 1.96² × 0.80 × 0.20 ÷ 0.10² = 3.8416 × 0.16 ÷ 0.01 = 61.5, and because only one in five of those interviewed will have it, the sub-study interviews 61.5 ÷ 0.20 = 307.3, rounded up to 308; the roughly 246 students without the disorder are more than enough for the specificity. The tempting 62 stops at the number of true positives instead of the number to interview. The protocol would also sample each work group separately, so that sensitivity and specificity can be checked for differential misclassification, and use interviewers who do not know the screen result or the student's work hours. (Section 2, 4.2.1 Five Planning Steps, steps 3 and 4, Worked Example 7.6; Objective 4.2)

Section 3 of 4

Controlling Confounding by Design and Stratification

⏱ Estimated reading time: 45 minutes
Section 3 of 4

Controlling Confounding by Design and Stratification

For each confounder the causal diagram identifies, the protocol chooses restriction, matching, stratification or adjustment.

The adjustment set

Roles in the Campus Connection diagram

Financial strain and gender

They cause both loneliness and depressive symptoms, so they form the adjustment set.

Perceived social support

It lies between loneliness and depressive symptoms, so it stays out of the set.

Completing the survey

It is a collider, which the protocol handles as selection in Section 1.

Living arrangement

It affects loneliness only in this diagram, so it opens no backdoor path.

Four approaches

Choosing how to control each confounder

ApproachActs onMain cost
RestrictionWho is eligibleResults describe one level only
MatchingWho is recruitedRequires a matched analysis in case-control studies
StratificationThe analysisStrata thin out with many confounders
Regression adjustmentThe analysisModel assumptions, taught in HSCI 410
Restriction and matching

Controlling confounding by design

Restriction

Children without RSV give an odds ratio of 3.21, free of confounding by RSV and limited to those children.

Matching in case-control studies

Matching makes the controls resemble the cases, so a matched analysis is required.

Matched pairs
\[ OR_{\text{match}} = \frac{u}{v} \qquad \chi^2_{\text{McNemar}} = \frac{(u - v)^2}{u + v} \]
Choosing and checking

The backdoor criterion and the change-in-estimate check

  • The diagram is drawn before the data are seen, and every backdoor path is blocked.
  • Mediators, colliders and other descendants of the exposure stay out of the set.
Change on the log scale
\[ \frac{\ln OR_{\text{crude}} - \ln OR_{\text{adjusted}}}{\ln OR_{\text{crude}}} \]
Mantel-Haenszel

Pooling the strata

Mantel-Haenszel odds ratio
\[ OR_{\text{MH}} = \frac{\sum_j a_{1j} b_{0j} / n_j}{\sum_j a_{0j} b_{1j} / n_j} \]
5.44
crude odds ratio
3.55, 3.21
odds ratios within the two RSV strata
3.36
Mantel-Haenszel odds ratio
Two look-alikes

Effect modification and non-collapsibility

Effect modification

Stratum odds ratios that differ beyond chance are reported separately, and modifiers are named in advance.

Non-collapsibility

Two strata with odds ratios of 4.0 and no link between the third variable and the exposure give a crude odds ratio of 2.98.

Carry forward

What Section 3 adds to a protocol

  • The protocol presents its causal diagram and the adjustment set it implies.
  • It states, for each confounder, whether restriction, matching, stratification or adjustment is used.
  • It names its primary stratified analysis, its change-in-estimate threshold and any planned effect modifiers.

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.

ChildrenCRDSTREP+STREP−Odds ratio
AllYes70305.44 (crude)
No90210
RSV+Yes52113.55
No3627
RSV−Yes18193.21
No54183

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.

ApproachHow it worksWhat it costsWhat the protocol states
RestrictionOnly 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
MatchingComparison 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
StratificationThe 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 adjustmentThe 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.

Matched odds ratio and McNemar's test
ORmatch = u / v McNemar's χ² = (u − v)² / (u + v)Eq 7.9
The matched odds ratio is the number of pairs with an exposed case and an unexposed control divided by the number of pairs with an unexposed case and an exposed control, and McNemar's test asks whether that ratio departs from one.

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.

  1. Draw the diagram from subject-matter knowledge before seeing the study data, including unmeasured variables.
  2. Set aside every arrow that leaves the exposure, and every variable that the exposure causes.
  3. 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.
  4. 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.

▸ INTERACTIVE STORY: THE BACKDOOR PATH Open full screen ↗

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.

Financial strain Gender Loneliness Depressive symptoms Perceived social support Living arrangement Completes survey Red: the adjustment set. All other variables stay out of the set.
Figure 7.4. A simplified causal diagram for the Campus Connection Study. Financial strain and gender open backdoor paths and form the adjustment set; perceived social support is a mediator, completing the survey is a collider, and living arrangement affects loneliness only.

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.

Stratum-specific odds ratio
ORj = (a1j × b0j) / (a0j × b1j)Eq 7.10
Within each stratum, the odds ratio is the usual cross-product of that stratum’s two-by-two table: the exposed cases times the unexposed non-cases, divided by the unexposed cases times the exposed non-cases.
Mantel-Haenszel adjusted odds ratio
ORMH = Σ(a1j × b0j / nj) ⁄ Σ(a0j × b1j / nj)Eq 7.11
The Mantel-Haenszel estimator pools the stratum tables into one confounding-adjusted odds ratio, weighting each stratum by its size. It adds up the products of exposed cases and unexposed non-cases and divides by the sum of the products of unexposed cases and exposed non-cases, with every product divided by its stratum total.
Wald test for homogeneity
χ²homo = Σ [(lnORj − lnORMH)² / var(lnORj)]Eq 7.12
The homogeneity test asks whether the stratum-specific odds ratios are similar enough to summarize with a single number, dividing each squared gap on the log scale by its variance. A large value signals effect modification.
Overall test (is ORMH = 1?)
χ²MH = (Σa1j − ΣEj)² / ΣVjEq 7.13
The Mantel-Haenszel chi-squared tests whether the pooled odds ratio differs from the null value of one. It compares the observed number of exposed cases with the number expected if there were no association, summed over strata, and scales the squared difference by its variance.

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

This simulator builds a study of 2,000 people in which a third variable, C, raises the risk of the outcome, and shows the crude 2×2 table beside the two tables stratified on C (C+ and C−), with the crude, stratum-specific, and Mantel-Haenszel (ORMH) odds ratios plotted on a log scale. It is meant to show you that stratifying on a confounder recovers the within-stratum effect that the crude table distorts, and that confounding (the crude OR differs from ORMH) is a different problem from effect modification (the stratum-specific ORs differ from each other). As you raise the C → Exposure strength above 1, notice that the crude OR climbs away from the true OR while the stratum-specific ORs and ORMH stay close to it and the % change vs crude grows in size; values below 1 pull the crude OR below the truth. As you move the effect-modification multiplier away from 1, the stratum-specific ORs separate and the homogeneity readout moves from homogeneous to mild or strong EM; at strong EM the takeaway advises reporting each stratum separately.
Crude (unstratified) 2×2
Y+Y−Total
E+281536817
E−1989851183
Stratum 1: C+
Y+Y−
E+239278
E−145338
Stratum 2: C−
Y+Y−
E+42258
E−53647
Crude vs. stratum-specific vs. MH-adjusted OR
0.250.51248Odds Ratio (log scale)Crude2.61OR | C+2.00OR | C-1.99OR_MH2.00
Crude OR
2.61
OR | C+
2.00
OR | C−
1.99
ORMH
2.00
% change vs crude
-23%
Homogeneity?
homogeneous
Presets:
Confounding present: crude OR moves -23% away from the stratum-specific truth. The MH estimator (2.00) is the unbiased estimate.

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.

Additive ScaleClick to explore
Multiplicative ScaleClick to explore
Synergism & AntagonismClick to explore

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.
Knowledge Check: this section

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?

Association with both is necessary but not sufficient. A confounder must also not be caused by the exposure, and salt intake raises blood pressure, so it lies on the causal pathway rather than upstream of both.
A collider is caused by both the exposure and the outcome. Blood pressure is caused by salt and causes stroke, so the arrows run through it, which makes it a mediator, not a collider.
Adjusting for a mediator also changes the estimate, so a change of more than 10% cannot show confounding. The check is applied only to variables the causal diagram allows to be confounders.
Salt raises blood pressure and blood pressure raises stroke risk, so blood pressure is caused by the exposure and fails the third condition. As a mediator, adjusting for it would remove part of the total effect.
The correct answer is that blood pressure is a mediator. The information needed is the direction of the arrows: salt intake → blood pressure → stroke. A confounder must be associated with the outcome independently of the exposure, be associated with the exposure in the source population, and not be caused by the exposure; blood pressure meets the first two conditions and fails the third, so it lies on the causal pathway, and adjusting for it would estimate only the part of the effect that does not pass through blood pressure rather than the total effect. The change-in-estimate option is tempting, but adjusting for a mediator also changes the estimate, so the check is applied only to variables that the causal diagram allows to be confounders; and a collider is caused by both variables, which blood pressure is not. (Section 3, 1.3 What Makes a Variable a Confounder, and 6.1.2 Judging Confounding: Change in Estimate and Direction; Objective 1.3)

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?

2.08 analyzes matched data as if unmatched, counting exposed cases and controls. Matching made the controls' exposure resemble the cases', so only the discordant pairs, u ÷ v, give the matched odds ratio.
Only discordant pairs carry information, so OR = 42 ÷ 18 = 2.33. With no association they would split about evenly, and McNemar's χ² of 9.6 (P ≈ 0.002) shows the 42 to 18 split is more unbalanced than chance readily explains.
The odds ratio is right, but McNemar's test asks whether the discordant pairs split unevenly, that is, whether exposure is associated with being a case. It says nothing about whether all confounding has been removed.
This puts the pairs the wrong way round. The matched odds ratio is u ÷ v, pairs with an exposed case and unexposed control (42) over pairs with the reverse (18), which is 2.33, not 0.43.
The correct answer is 2.33, with McNemar's test showing an association. The information needed is the two kinds of discordant pair: u = 42 (exposed case, unexposed control) and v = 18 (unexposed case, exposed control). Pairs in which both members or neither are exposed say nothing about a difference in exposure between a case and its control, so ORmatch = u ÷ v = 42 ÷ 18 = 2.33, and McNemar's χ² = (42 − 18)² ÷ (42 + 18) = 576 ÷ 60 = 9.6 asks whether that split departs from the even split expected with no association; P ≈ 0.002 says it does. The tempting value of 2.08 analyzes the matched data as if they were unmatched, which ignores that matching made the controls' exposure resemble the cases' (a bias usually toward the null), and 0.43 puts the pairs in the wrong order. (Section 3, 5.1.2 Matching, Matched pairs tab, Eq 7.9; Objective 5.1)

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?

Once arrows leaving e-cigarette use are set aside, the only path starting with an arrow into the exposure is e-cigarette use ← parental smoking → cough. Adjusting for parental smoking blocks that one backdoor path.
Later cigarette smoking is caused by e-cigarette use and causes cough, so it is a mediator. Being associated with both does not make it a confounder, and adjusting for it would remove part of the total effect.
Being linked to the exposure is not the criterion. Friends who vape affect only the exposure and open no backdoor path, and school absence is a collider, so conditioning on it would open a non-causal path.
Adjusting for more variables does not always reduce bias. Adjusting for a mediator removes part of the effect, conditioning on a collider opens a non-causal path, and a variable affecting only the exposure adds imprecision.
The correct answer is {parental smoking}. The information needed is the direction of every arrow. After setting aside the arrows that leave e-cigarette use (to later smoking and to school absence), the only path that begins with an arrow into the exposure is e-cigarette use ← parental smoking → cough, so parental smoking is the one confounder and adjusting for it blocks the only backdoor path. Later cigarette smoking is a mediator, and adjusting for it would remove part of the total effect; school absence is a collider, and conditioning on it would open a non-causal path; friends who vape affect only the exposure, so they open no backdoor path and adjusting for them adds imprecision without removing bias. The tempting second option applies the rule "associated with both" to a variable that the exposure causes. (Section 3, 5.2 Choosing the Adjustment Set from a Causal Diagram, the four steps and Figure 7.4; Objective 5.2)

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 groupExposed casesUnexposed casesExposed controlsUnexposed controlsTotal
80 and over45152020100
65 to 79154520120200
The Mantel-Haenszel estimator weights each stratum by its size; it is not a simple average. Pooling with each product divided by its stratum total gives 18 ÷ 7.5 = 2.40, not 2.50.
Stratum values of 3.0 and 2.0 with a homogeneity p of 0.48 give no evidence that they differ beyond chance. Pooling is appropriate, and the adjusted 2.40, not the crude 3.50, is the estimate to report.
OR MH = 18 ÷ 7.5 = 2.40, and (ln 3.50 − ln 2.40) ÷ ln 3.50 = 0.30 exceeds 10%. The homogeneous strata support pooling, the crude value overstated the association, and 2.40 is reported.
The numbers are right but the direction is reversed. A crude value further from 1 than the adjusted one means positive confounding that overstated the association, a bias away from the null, not toward it.
The correct answer is ORMH = 2.40, with age confounding the association. The information needed is the four cells and the total of each stratum. The stratum odds ratios are (45 × 20) ÷ (15 × 20) = 3.0 and (15 × 120) ÷ (45 × 20) = 2.0; the numerator is (45 × 20) ÷ 100 + (15 × 120) ÷ 200 = 9 + 9 = 18 and the denominator is (15 × 20) ÷ 100 + (45 × 20) ÷ 200 = 3 + 4.5 = 7.5, so ORMH = 18 ÷ 7.5 = 2.40, and the change is (ln 3.50 − ln 2.40) ÷ ln 3.50 = (1.253 − 0.875) ÷ 1.253 = 0.30. The homogeneity p of 0.48 gives no evidence that the strata differ, so pooling is appropriate, and because the crude value is further from 1 than the adjusted one the confounding was positive: older adults use the medication more (half of the older controls against one in seven of the younger) and fracture more. The first option averages the stratum values instead of weighting each stratum by its size, and the second mistakes stratum values that differ by chance for effect modification. (Section 3, 6.1 Stratified Analysis with the Mantel-Haenszel Estimator, Eq 7.11, Worked Example 7.9, and 6.1.2 Judging Confounding: Change in Estimate and Direction; Objective 6.1)

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?

A variable that raises the risk of the outcome confounds only if it is also associated with the exposure. Age is unrelated to solvent exposure here, so it cannot confound, however different the baseline risks.
The risk ratios are 2.0 in both groups, but the risk differences are 0.05 and 0.15. Effect modification depends on the scale: absent multiplicatively, present additively, where removing exposure prevents more cases among older workers.
Equal risk ratios rule out effect modification only on the multiplicative scale. The risk differences, 0.05 and 0.15, differ, so there is effect modification on the additive scale.
A larger risk difference does not imply a larger risk ratio. Here the older group has a higher baseline risk, so the same ratio of 2.0 produces a larger difference; the two scales give different answers.
The correct answer is that the two scales disagree. The information needed is the four risks and the fact that age is unrelated to the exposure. The risk ratios are 0.10 ÷ 0.05 = 2.0 and 0.30 ÷ 0.15 = 2.0, identical, while the risk differences are 0.10 − 0.05 = 0.05 and 0.30 − 0.15 = 0.15, three times as large among older workers because their baseline risk is three times as high. Whether effect modification is present therefore depends on the scale, so the protocol names its scale in advance and reports the stratum-specific risk differences when the question is where an intervention would prevent more cases. The first option is tempting, but a variable that raises the risk of the outcome confounds only if it is also associated with the exposure, which age is not here. (Section 3, 6.2.1 Effect Modification, the flip cards, the paragraph on the two scales and the callout "When the strata differ"; Objective 6.2)

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?

Symptoms at entry and gender each cause both binge drinking and the April screen, so they open backdoor paths. Academic difficulty is a mediator, survey completion a collider, and residence affects only the exposure.
This applies the rule of adjusting for everything associated with both. Academic difficulty is caused by binge drinking, so adjusting removes part of the total effect, and residence affects only the exposure.
Completing the April survey is a common effect of binge drinking and symptoms, a collider. Analyzing completers conditions on it, which creates selection bias from loss to follow-up rather than removing it.
Symptoms at entry are measured before the exposure and cause both binge drinking and the April screen, so they are a confounder, not part of the outcome. Leaving them out leaves a backdoor path open.
The correct answer is {depressive symptoms at entry, gender}. The information needed is the direction of every arrow. Symptoms at entry and gender each cause both binge drinking and the April screen and are not caused by binge drinking, so each opens a backdoor path and must be controlled. Academic difficulty is caused by binge drinking, so adjusting for it, or matching on it in a case-control version, removes part of the total effect (overmatching); completing the survey is a common effect of the exposure and the outcome, so conditioning on it opens a non-causal path; and living in residence affects only the exposure, so adjusting for it adds imprecision without removing bias. The tempting second option applies the rule "associated with both", which mediators and colliders also satisfy. (Section 3, 5.2 Choosing the Adjustment Set from a Causal Diagram, and 5.1.2 Matching; Objectives 5.1 and 5.2)

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?

The Mantel-Haenszel estimator weights each stratum by its size; it is not the simple average of 2.00 and 2.25. The weighted pooling gives 27.52 ÷ 13.12 = 2.10.
Stratum values of 2.00 and 2.25 are similar, and nothing suggests they differ beyond chance. Mistaking them for effect modification would discard a valid pooled estimate; the strata are pooled and 2.10 reported.
The change is 27%, but the direction is reversed. The crude 2.75 is further from 1 than 2.10, so the confounding was positive and the crude value overstated the association; negative confounding would leave the crude closer to 1.
The strata give 2.00 and 2.25, the weighted pooling 2.10, and (ln 2.75 − ln 2.10) ÷ ln 2.75 = 0.27. The crude value lies further from 1, so confounding by symptoms at entry was positive.
The correct answer is ORMH = 2.10 with positive confounding. The information needed is the four cells and the total of each stratum. With symptoms (n = 200) the stratum odds ratio is (40 × 80) ÷ (40 × 40) = 2.00, and without symptoms (n = 400) it is (16 × 288) ÷ (32 × 64) = 2.25. The numerator is 3,200 ÷ 200 + 4,608 ÷ 400 = 16.00 + 11.52 = 27.52 and the denominator is 1,600 ÷ 200 + 2,048 ÷ 400 = 8.00 + 5.12 = 13.12, so ORMH = 2.10, and the change is (ln 2.75 − ln 2.10) ÷ ln 2.75 = (1.012 − 0.742) ÷ 1.012 = 0.27. The crude value is further from 1 than the adjusted one, so the confounding was positive: half of the binge drinkers had symptoms at entry, against 27% of the other students. The first option averages instead of weighting each stratum by its size, and the second mistakes two similar stratum values for effect modification. (Section 3, 6.1 Stratified Analysis with the Mantel-Haenszel Estimator, Eq 7.11, Worked Example 7.9, and 6.1.2 Judging Confounding: Change in Estimate and Direction; Objective 6.1)

Section 4 of 4

Unmeasured Confounding and the Threats-to-Validity Plan

⏱ Estimated reading time: 45 minutes
Section 4 of 4

Unmeasured Confounding and the Threats-to-Validity Plan

A protocol cannot remove a confounder it cannot measure, but it can show how strong that confounder would need to be.

Orientation

Methods for many confounders

MethodWhere it is taught
Multivariable regressionHSCI 410 Lesson 3
StandardizationHSCI 341 Lesson 4
Propensity scoresHSCI 230 Lesson 3; HSCI 826 Lesson 7
Instrumental variablesHSCI 826 Lesson 8
Marginal structural modelsHSCI 230 Lesson 11; weighting in HSCI 826 Lesson 7
External adjustment

Dividing by a bias factor

Bias factor
\[ B = \frac{p_1 (OR_{\text{UD}} - 1) + 1}{p_2 (OR_{\text{UD}} - 1) + 1} \qquad OR_{\text{adj}} = \frac{OR_{\text{obs}}}{B} \]

With RSV unmeasured, prevalences of 0.40 and 0.13 and an odds ratio of 4.2 give B of 1.61 and an adjusted odds ratio of 3.38.

Sensitivity analysis

Planning it in five steps

  • The protocol names each threat and the direction in which it would move the estimate.
  • It defines the bias parameters for that threat.
  • It states where plausible values will come from.
  • It chooses a grid of fixed values or a probabilistic analysis.
  • It states how the results will be reported, including the values that would change the conclusion.
The E-value

One number for unmeasured confounding

E-value for a risk ratio above 1
\[ E = RR + \sqrt{RR \times (RR - 1)} \]
1.31
planned prevalence ratio, Campus Connection
1.95
E-value for the estimate
1.43
E-value for a lower limit of 1.10
The subsection

Five elements for each threat

ElementExample tools
Mechanism in this studyCausal diagram
Likely direction and sizeSampling fractions, misclassified tables, bias factor
Prevention by designFrame, instruments, restriction, matching
Assessment in the analysisWeighting, correction, Mantel-Haenszel
Residual riskBounding, correction ranges, E-value
Worked example

The Campus Connection subsection in brief

Selection

Registrar sampling and a neutral invitation; a bound with response of 0.10 among lonely students with symptoms.

Information

Outcome defined as a positive screen; correction across published sensitivity and specificity.

Confounding

Stratification by financial strain; social support excluded; an E-value of 1.95 reported.

Temporality

Both measured at once, so the estimand is a cross-sectional prevalence ratio.

Next steps

The knowledge check and the final assessment

  • The Section 4 knowledge check comes first.
  • The final assessment has seventeen questions drawn from all four sections.

Lesson 8 takes up time-to-event data: time zero, censoring and incidence with incomplete follow-up.

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.

MethodWhat it doesKey assumptionWhere it is taught
Multivariable regressionEstimates the exposure effect with the confounders held constant in a model for the outcome.No unmeasured confounding, and a correctly specified modelHSCI 410 Lesson 3 (linear and logistic regression)
StandardizationApplies stratum-specific risks to a chosen standard population to give one summary that is valid even when the strata differ.No unmeasured confoundingHSCI 341 Lesson 4 (standardized rates and ratios)
Propensity scoresSummarize the confounders as the probability of exposure, then match, stratify or weight on that probability.No unmeasured confounding, and overlap between exposed and unexposed peopleIntroduced in HSCI 230 Lesson 3 Section 1; taught in HSCI 826 Lesson 7 (graduate course)
Marginal structural modelsRecall 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 pointIntroduced in HSCI 230 Lesson 11; HSCI 826 Lesson 7 Section 3.7 teaches inverse probability weighting for a treatment at one time
Difference-in-differencesCompares 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 amountHSCI 826 Lesson 7 (graduate course)
Instrumental variablesUse 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 dataHSCI 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):

External adjustment with a bias factor
ORadj = ORobs ÷ B, where B = [p1 × (ORUD − 1) + 1] ÷ [p2 × (ORUD − 1) + 1]Eq 7.14
The externally adjusted odds ratio is the observed odds ratio divided by a bias factor B, which combines the prevalence of the unmeasured confounder among the exposed and among the unexposed with the strength of its association with the disease. When the confounder is equally common in both exposure groups, B = 1 and the estimate is unchanged.

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.

  1. Name each threat to be analyzed and the direction in which it would move the estimate.
  2. Define its bias parameters.
  3. State where plausible values will come from: published studies, national surveys, pilot data or the study's own validation sub-study.
  4. Choose the form of the analysis: a grid of fixed values (deterministic) or distributions (probabilistic).
  5. 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).

ORUDp1 = 0.4p1 = 0.6p1 = 0.8
2.04.273.743.32
5.02.932.241.81
10.02.251.621.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.

E-value for a risk ratio above 1
E = RR + √[RR × (RR − 1)]Eq 7.15
The E-value grows with the observed risk ratio. For a risk ratio below 1, its reciprocal is used. For the confidence interval, the same formula is applied to the limit closer to 1, and the E-value is 1 when the interval includes 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, stateTools from this lesson
The mechanism in this study: who or what could produce the biasThe causal diagram; the recap of HSCI 230 Lessons 7 to 11
The likely direction, and its size where it can be estimatedSampling fractions; misclassified tables; the bias factor
The design steps that prevent itFrame, response and retention decisions; instrument choice, timing and blinding; restriction and matching
The analysis steps that assess or correct itComparison with the frame and weighting; back-correction; Mantel-Haenszel stratification and the homogeneity test
The residual risk and the planned sensitivity analysisBounding 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 methodResponse 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?

Show the answer▼

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).
Knowledge Check: this section

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?

A propensity score is the probability of exposure given the measured covariates only. Diet and exercise were never recorded, so they cannot enter the score, and matching on it cannot balance them.
The score summarizes only the covariates that enter it, so matching balances age, sex, illnesses and fractures but not diet or exercise. Unmeasured confounding remains, which calls for a sensitivity analysis.
Multivariable regression shares the limitation: it adjusts only for confounders that were measured. Diet and exercise were not recorded, so regression cannot adjust for them either.
Overlap between users and non-users is an assumption the method needs, not a remedy. Even with full overlap, the score balances only measured covariates and leaves unmeasured confounding in place.
The correct answer is that the score balances only what was measured. The information needed is what a propensity score is: the probability of exposure given the measured covariates, which the analysis then matches, stratifies or weights on. Diet and exercise were never recorded, so they cannot enter the score, and matched statin users and non-users can still differ on them; the protective association may partly reflect healthier users, so the observed estimate may exaggerate the protection. Regression, standardization and marginal structural models share this limitation (instrumental variables are the exception when a valid instrument exists), and overlap in the last option is an assumption the method needs, not a remedy for missing confounders. The protocol should therefore name diet and exercise as unmeasured confounders, state their likely direction and plan a sensitivity analysis. (Section 4, 7.1 Methods That Scale to Many Confounders, Table 7.8; Objective 7.1)

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?

B = (0.50 × 2.0 + 1) ÷ (0.10 × 2.0 + 1) = 1.67, and 3.00 ÷ 1.67 = 1.80. Smoking is more common among drinkers and raises risk, so the adjusted value lies closer to 1 and the observed estimate was biased away from the null.
Multiplying by B reverses the correction. The adjusted estimate is the observed one divided by B; with B above 1, dividing lowers it to 1.80, showing that smoking had exaggerated the association rather than hidden part of it.
This uses OR UD instead of OR UD − 1 in the bias factor. With OR UD − 1 = 2.0, B is 2.0 ÷ 1.2 = 1.67, not 1.92, and the adjusted odds ratio is 1.80, not 1.56.
The bias factor is not the adjusted estimate; it measures how much of the observed difference is due to the confounder. The adjusted odds ratio is the observed 3.00 divided by B, which gives 1.80.
The correct answer is 1.80, with the observed estimate biased away from the null. The information needed is the prevalence of the confounder among the exposed (p1 = 0.50) and the unexposed (p2 = 0.10), its odds ratio with the disease (ORUD = 3.0, so ORUD − 1 = 2.0) and the observed odds ratio. Then B = (0.50 × 2.0 + 1) ÷ (0.10 × 2.0 + 1) = 2.0 ÷ 1.2 = 1.67 and ORadj = 3.00 ÷ 1.67 = 1.80; because the confounder is more common among the exposed and raises the risk, B is above 1, the adjusted value lies closer to 1, and the observed 3.00 overstated the association, although an association would remain if these outside values are right. The third option uses ORUD instead of ORUD − 1 in the bias factor, and the second multiplies instead of dividing, which reverses the direction. (Section 4, 7.2 External Adjustment for an Unmeasured Confounder, Eq 7.14, Worked Example 7.10 and the paragraph that follows it, Calculator 7.6; Objective 7.2)

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?

ORUDp1 = 0.4p1 = 0.6p1 = 0.8
22.061.801.60
41.751.371.13
81.521.110.87
Averaging the cells treats assumptions as data. Each cell answers a hypothetical question about one combination of bias parameters; the grid's purpose is to show where the conclusion changes, not to estimate the true value.
A sensitivity grid cannot show that confounding is absent. It shows how far the estimate would move under assumed values, and one cell (OR UD = 8, p1 = 0.8) already falls below 1.
The report names the values at which the conclusion would change: estimates stay near 1.5 or more unless U is strong and much more common among the exposed. Whether such a confounder is plausible is then judged from published sources.
Reporting one cell discards the range the analysis was planned to show. The fifth planning step is to report the results across the grid, including the values at which the conclusion would change.
The correct answer is the statement that names the values at which the conclusion would change. The information needed is the pattern across the grid: every cell with ORUD = 2, or with p1 = 0.4, stays at 1.52 or more, while the cells with ORUD of 4 or 8 and p1 of 0.6 or 0.8 fall to 1.37, 1.13, 1.11 and 0.87. The fifth step of planning a sensitivity analysis is to state how the results will be reported, including the bias parameters at which the conclusion would change, and the report then judges, from published sources, whether a confounder that strong and that unequal is plausible. Averaging the cells (the first option) treats assumptions as data, a grid can never show that confounding is absent (the second), and reporting one cell (the last) discards the range that the analysis was planned to show. (Section 4, 7.3 Planning a Sensitivity Analysis, the five steps and Worked Example 7.11; Objective 7.3)

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?

A protective risk ratio is handled by taking its reciprocal first. 1 ÷ 0.50 = 2.0 enters the formula, so an E-value can be computed for both the estimate and the interval.
The estimate's E-value is right, but the interval uses the limit further from 1. The limit closer to 1 is 0.80; its reciprocal 1.25 gives E = 1.25 + √(1.25 × 0.25) = 1.81, not 6.12.
The reciprocals are only the inputs to the formula. Applying E = RR + √[RR × (RR − 1)] to 2.0 and 1.25 gives 3.41 and 1.81.
With reciprocals 2.0 and 1.25 (the limit closer to 1), the formula gives 3.41 and 1.81. A confounder weaker than these on both associations could not explain away the estimate or move the interval to include 1.
The correct answer is 3.41 and 1.81. The information needed is the estimate, the confidence limit closer to 1 (0.80, not 0.30) and the rule for a ratio below 1. For the estimate, 1 ÷ 0.50 = 2.0 and E = 2.0 + √(2.0 × 1.0) = 2.0 + 1.41 = 3.41; for the interval, 1 ÷ 0.80 = 1.25 and E = 1.25 + √(1.25 × 0.25) = 1.25 + 0.56 = 1.81. Each E-value is the minimum strength, on the risk-ratio scale, that a confounder would need with both the exposure and the outcome, beyond the measured confounders, to explain away the estimate or to move the interval to include 1; weaker confounding could not do it. The third option stops at the reciprocals, which are the inputs to the formula, and the second uses the limit further from 1. (Section 4, 7.4 The E-Value, Eq 7.15, Worked Example 7.12, Calculator 7.7; Objective 7.4)

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?

Missing completely at random requires missingness unrelated to any data. Men leave the question blank more often, so missingness depends on an observed variable, and a complete-case analysis would under-represent men.
Missing not at random would require missingness to depend on the unobserved value itself. Within each sex, leaving the question blank is unrelated to drinking, so the data are missing at random given sex.
Missingness depends on recorded sex but not on drinking within each sex, which is missing at random. Multiple imputation including sex is valid, and the complete-case result is reported as a sensitivity analysis.
The mechanism is right, but coding blanks as no use is not a missing-data method. It misclassifies people who drink as non-drinkers; multiple imputation using sex and other observed variables is the valid handling.
The correct answer is missing at random given sex, handled by multiple imputation. The information needed is what the missingness depends on: an observed variable (sex), and not the unobserved value itself (drinking, within each sex), which is the definition of missing at random in the recall box on missing data mechanisms. Data missing completely at random would require missingness unrelated to any data, which fails because men leave the question blank more often, and missing not at random would apply only if heavier drinkers skipped the question because of their drinking, in which case a sensitivity analysis would be required. The entry states the expected missingness, the assumed mechanism and the handling method, as the missing-data entry of Worked Example 7.13 does; coding blanks as "no" is a misclassification, not a missing-data method. (Section 4, 7.5 Writing the Threats to Validity and Mitigation Subsection, Table 7.10, the recall box on missing data mechanisms, Worked Example 7.13; Objective 7.5)

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?

1.19 inverts the bias factor. B = (0.05 × 1.0 + 1) ÷ (0.25 × 1.0 + 1) = 1.05 ÷ 1.25 = 0.84, and dividing 0.42 by 0.84 gives 0.50, which shows the protection was exaggerated, not hidden.
B = 1.05 ÷ 1.25 = 0.84 and 0.42 ÷ 0.84 = 0.50. The adjusted value is closer to 1, so frailty, common among non-participants and raising fall risk, had exaggerated the protection, though a clear protective association remains.
B is right, but this multiplies 0.42 by it instead of dividing. Dividing by a number below 1 raises the estimate to 0.50, closer to 1, so the protection is weaker than observed, not stronger.
The numbers are right, but the direction is reversed. For a protective exposure, an adjusted value closer to 1 than the observed one means the observed estimate was biased away from the null and exaggerated the protection.
The correct answer is B = 0.84 and an adjusted risk ratio of 0.50, with the protection exaggerated. The information needed is the prevalence of frailty among participants (p1 = 0.05) and non-participants (p2 = 0.25) and its risk ratio with a fall (RRUD − 1 = 1.0). Then B = (0.05 × 1.0 + 1) ÷ (0.25 × 1.0 + 1) = 1.05 ÷ 1.25 = 0.84, and 0.42 ÷ 0.84 = 0.50. The adjusted value is closer to 1 than the observed one, so the unmeasured confounder had moved the estimate away from the null; a clear protective association remains (about half the risk rather than 0.42 times). The first option inverts B, the third multiplies instead of dividing, and the last gives the right numbers but reads the direction backwards: for a protective exposure, an adjusted value closer to 1 means the observed estimate exaggerated the protection. (Section 4, 7.2 External Adjustment for an Unmeasured Confounder, Eq 7.14 and the paragraph after Worked Example 7.10, Calculator 7.6; Objective 7.2)

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?

A protective risk ratio is handled by taking its reciprocal first. 1 ÷ 0.42 = 2.38 enters the formula, so E-values can be computed and compared with frailty's assumed strength.
The estimate's E-value is right, but the interval uses the limit further from 1. The limit closer to 1 is 0.59; its reciprocal 1.695 gives an E-value of 2.78, not 6.12.
The reciprocals are only the inputs to the formula. Applying it gives 4.19 and 2.78, both above frailty's risk ratio of 2.0, so frailty alone could not explain the association away.
The reciprocals 2.38 and 1.695 give E-values of 4.19 and 2.78. Frailty doubles the risk of a fall, below both thresholds, so on its own it could not explain the association away or make the interval include 1.
The correct answer is 4.19 and 2.78. The information needed is the estimate, the confidence limit closer to 1 (0.59, not 0.30) and the rule for a ratio below 1. For the estimate, 1 ÷ 0.42 = 2.38 and E = 2.38 + √(2.38 × 1.38) = 2.38 + 1.81 = 4.19; for the interval, 1 ÷ 0.59 = 1.695 and E = 1.695 + √(1.695 × 0.695) = 1.695 + 1.085 = 2.78. Frailty, as assumed, doubles the risk of a fall, which is below both E-values, so on its own it could neither explain the association away nor make the interval include 1, in agreement with the externally adjusted value of 0.50. The third option stops at the reciprocals, which are only the inputs to the formula, and the second uses the limit further from 1. (Section 4, 7.4 The E-Value, Eq 7.15, Worked Example 7.12, Calculator 7.7; Objective 7.4)

Final Assessment

Final Assessment

⏱ Estimated time: 30 minutes

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

MethodOdds ratioKey feature
Crude (unadjusted)5.44No control for RSV
Restriction (children without RSV)3.21Removes RSV by design; describes only children without RSV
Mantel-Haenszel stratification3.36 (95% CI 1.96 to 5.76)Pools two homogeneous strata (3.55 and 3.21)
Propensity-score stratification3.36With 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.38Uses 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

Final Assessment: Designing Against Bias: Validity and Confounding in Study Protocols (17 Questions)

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?

Recall that differs by case status is measurement error (information bias), age causing both medicine use and cancer is confounding, and controls' participation depending on exposure is selection bias.
Recall bias concerns how accurately people are measured, not who takes part, so A is information bias. C, participation that depends on exposure among controls, is the selection problem.
B is confounding: age is a common cause of the exposure and the outcome. C is selection bias, because controls' willingness to take part depends on exposure, not a difference in other causes of the outcome.
A is information bias, since cases' fuller recall is a measurement error that differs by case status. B is not information bias: age causing both medicine use and cancer is confounding.
The correct answer is A information bias, B confounding and C selection bias. The information needed is how each problem arises (Table 7.1). In A the exposure is measured with error that differs by case status (recall bias, a differential misclassification); in B age is a common cause of the exposure and the outcome, so the groups being compared differ in another cause of cancer; in C participation among controls depends on exposure while the cases come from a registry, so selection depends jointly on exposure and outcome (here the controls would look too exposed, biasing the odds ratio toward the null). The tempting second option calls recall bias a selection problem because it concerns cases and controls, but recall concerns how accurately people are measured, not who takes part. (Section 1, 1.1 Internal Validity, External Validity and the Three Threats, Table 7.1 and Table 7.2; Objective 1.1)

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?

Loss to follow-up has no fixed direction; it depends on which cell is under-represented. Here unexposed workers who develop disease are lost, which lowers the unexposed risk and pushes the ratio away from the null.
Loss in one exposure group is harmless only if it is the same for those who do and do not develop disease. Here it is concentrated among unexposed workers who become ill, so it depends on exposure and outcome together.
The workers most often lost are unexposed people who develop the disease. Their absence lowers the risk among the unexposed, the denominator of the risk ratio, so the ratio is too large, a bias away from the null.
The amount of loss is not what matters; what matters is whether it depends jointly on exposure and outcome. Even a small loss concentrated among unexposed workers who become ill distorts the risk ratio.
The correct answer is away from the null. The information needed is which cell of the table is under-represented: the people most often lost are unexposed workers who develop the disease. Their absence lowers the observed risk among the unexposed, the denominator of the risk ratio, so the ratio is too large, which for a harmful exposure is a bias away from the null. The second option would be right only if loss depended on exposure alone, equally among those who do and do not develop the disease; here it depends on exposure and outcome together. Had exposed workers who developed the disease been lost instead, the risk among the exposed would be underestimated and the bias would be toward the null. (Section 1, 2.1 When Selection Biases an Odds Ratio, the paragraph on reasoning about the direction of the bias without numbers, and the Retention tab in 2.3; Objective 2.1)

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?

Multiplying reverses the correction. The observed odds ratio equals the true one times ORsf, so the true value is the observed one divided by ORsf: 3.00 ÷ 1.50 = 2.00.
ORsf = (0.30 × 0.40) ÷ (0.20 × 0.40) = 1.50, and 3.00 ÷ 1.50 = 2.00. Exposed cases took part most readily, so the observed odds ratio was inflated, a bias away from the null.
Equal participation among controls is not enough. Exposed cases took part at 0.30 and unexposed cases at 0.20, so selection depends on exposure among the cases and ORsf is 1.50, not 1.
1.50 is ORsf, the factor by which selection distorts the estimate, not the corrected odds ratio. The corrected value is the observed 3.00 divided by 1.50, which is 2.00.
The correct answer is 2.00. The information needed is the four assumed fractions in their places (sf11 = 0.30 for exposed cases, sf12 = 0.20 for unexposed cases, sf21 = 0.40 and sf22 = 0.40 for exposed and unexposed controls) and the observed odds ratio. ORsf = (0.30 × 0.40) ÷ (0.20 × 0.40) = 0.12 ÷ 0.08 = 1.50, and since the observed odds ratio is the true one multiplied by ORsf, the corrected value is 3.00 ÷ 1.50 = 2.00: exposed cases were the most likely to take part, so the observed odds ratio was too large, a bias away from the null. The tempting answer of 3.00 checks only the controls, although participation that depends on exposure among the cases also biases the odds ratio, and 4.50 multiplies instead of dividing. (Section 1, 2.2 Measuring Selection Bias with Sampling Fractions, Eq 7.2, Worked Example 7.2, Calculator 7.1; Objective 2.2)

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?

Errors in both directions do not make misclassification differential. Differential means accuracy differs between cases and controls, and here the job histories err to the same extent in both groups.
Non-differential misclassification of a binary exposure biases the value of an odds ratio, moving it toward 1, not only its precision. Back-correction undoes that attenuation rather than over-adjusting.
Back-correction has no fixed direction of its own; it undoes whatever the assumed errors did. It moves this estimate away from 1 because non-differential error had pulled it toward 1.
Equal error rates blend the exposed and unexposed columns in the same proportions in both rows, pulling the observed 1.80 toward 1. Correcting with Se 0.75 and Sp 0.90 reverses that mixing, so the estimate moves out to 2.44.
The correct answer is that non-differential misclassification had biased the observed value toward the null. The information needed is that the error rates are the same in cases and controls (Eq 7.3) and the correction formulas, with the totals m1 = 200 and m0 = 400: a1 = (75 − 0.10 × 200) ÷ (0.75 + 0.90 − 1) = 55 ÷ 0.65 = 84.6 and b1 = (100 − 0.10 × 400) ÷ 0.65 = 60 ÷ 0.65 = 92.3, so the corrected table has 84.6 and 115.4 cases and 92.3 and 307.7 controls, and an odds ratio of (84.6 × 307.7) ÷ (115.4 × 92.3) = 2.44. Equal error blends the exposed and unexposed columns in the same proportions in both rows, which makes them more alike, so the observed 1.80 was too close to 1 and the correction moves it back out. The first option confuses errors in both directions with differential error, which means that accuracy differs between cases and controls, and back-correction has no fixed direction of its own: it undoes whatever the assumed errors did. (Section 2, 3.1 Non-Differential Exposure Misclassification and 4.1 Back-Correcting an Observed Table, Eq 7.5 and Eq 7.6; Objective 3.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?

Enlarging the sample narrows the interval around a biased estimate. Recall bias is systematic, so it does not shrink as the sample grows; the protocol must change how exposure is measured.
Matching on age and sex addresses confounding by those variables. It does nothing about case parents recalling spray use more completely, which is differential misclassification of exposure.
Records made before diagnosis cannot be influenced by the outcome, and abstractors who do not know case status cannot probe groups differently. Both are Table 7.5 decisions that prevent differential misclassification.
Asking cases more detailed questions than controls makes the measurement differ between groups, which is exactly what produces differential error. Table 7.5 calls for the same instrument and wording for everyone.
The correct answer is records made before diagnosis, abstracted blind. The problem described is differential misclassification of exposure (recall bias): the sensitivity of the parents' report is likely higher among case parents than among control parents, which would push the odds ratio away from the null. Exposure recorded before the outcome cannot be influenced by it, and abstractors who do not know case status cannot probe cases and controls differently, two of the decisions in Table 7.5 (others are the same instrument, mode and order of questions for everyone, and a neutral description of the study). A larger sample only narrows the interval around a biased estimate, matching addresses confounding, and asking cases more detailed questions than controls makes the measurement differ between the groups, which is exactly what produces differential error. (Section 2, 3.3 Differential Misclassification, Worked Example 7.5 and Table 7.5; Objective 3.3)

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?

The formulas are exact only for the values put into them. The corrected table equals the true one only if 0.85 and 0.90 are the real error rates in this population, which values from older adults may not be.
Back-correction recovers the true table only if the assumed error rates hold here. Values from adults over 65 may not transport to people aged 18 to 30, so the correction is reported over a range, ideally from an internal sub-study.
This has it backwards. A single pair of sensitivity and specificity values is the correction for non-differential error; it is differential error that one pair cannot correct.
A zero or negative corrected cell shows that the assumed values are incompatible with the data, not that the error was differential. A positive table can still be wrong if the borrowed values do not transport.
The correct answer is that the corrected value depends on the assumed error rates. The information needed is where the sensitivity and specificity came from: a population (adults over 65) different from the study's (18 to 30). Back-correction reverses the mixing of Table 7.4 with the assumed SeE and SpE (Eq 7.5 and Eq 7.6), so it recovers the true table only if those are the true error rates here, the transportability assumption; small changes in the assumed values can move the corrected odds ratio a long way, which is why the correction is reported over a range and why an internal sub-study is preferred. The tempting last option misreads a zero or negative corrected cell, which shows that the assumed values are incompatible with the observed data, not that the error was differential; and the third option has it backwards, since a single pair of values is the correction for non-differential error, and it is differential error that a single pair cannot correct. (Section 2, 4.1 Back-Correcting an Observed Table, and 4.2.1 Five Planning Steps, step 2; Objective 4.1)

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?

Only discordant pairs carry information: 30 ÷ 20 = 1.50. McNemar's χ² of 2.0 with P = 0.16 shows the 30 to 20 split is no more unbalanced than chance could readily produce.
Concordant pairs, where both or neither are exposed, say nothing about a difference in exposure between a case and its control. They are left out, so the matched odds ratio is 30 ÷ 20 = 1.50.
1.33 analyzes matched data as if unmatched, counting exposed cases and controls. Matching made the controls' exposure resemble the cases', so the discordant pairs, u ÷ v, must be used.
This puts the pairs the wrong way round. The matched odds ratio is pairs with an exposed case and unexposed control (30) over the reverse (20), which is 1.50, not 0.67.
The correct answer is a matched odds ratio of 1.50 with little evidence of an association. The information needed is the two kinds of discordant pair, u = 30 (exposed case, unexposed control) and v = 20 (the reverse); pairs in which both members, or neither, are exposed say nothing about a difference in exposure between a case and its control. ORmatch = u ÷ v = 30 ÷ 20 = 1.50, and McNemar's χ² = (30 − 20)² ÷ (30 + 20) = 100 ÷ 50 = 2.0 with P = 0.16, so the discordant pairs split no more unevenly than chance alone could readily produce. The value 1.33 analyzes matched data as if they were unmatched, which ignores that matching made the controls resemble the cases; 1.23 wrongly counts the concordant pairs; and 0.67 puts the two kinds of pair the wrong way round. (Section 3, 5.1.2 Matching, Matched pairs tab, Eq 7.9, and the callout on analyzing matched data as if unmatched; Objective 5.1)

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?

In a case-control study, matching makes the controls' smoking, and so their exposure, resemble the cases'. That is a selection bias, usually toward the null, which only a matched or stratified analysis removes, so the crude value cannot be reported.
Stratification has a cost: strata thin out quickly when several confounders are combined. It does not work for any number of confounders, which is why model-based methods are used when there are many.
In a case-control study matched on smoking, cases and controls are made alike on smoking, so its effect on bronchitis can no longer be studied from the matched data.
Restricting to never-smokers means smoking cannot vary, so it cannot confound. The cost is that results describe never-smokers only, and smoking can no longer be studied as a cause or as an effect modifier.
The correct answer is restriction to never-smokers, with its cost. The information needed is how each approach in Table 7.7 works and what it costs. Restriction admits one level of the confounder, so smoking cannot vary and cannot confound, but the eligible population shrinks and the results apply only to that level. Matching in a case-control study makes the controls' smoking, and through it their exposure, resemble the cases', so it requires a matched or stratified analysis and the matched variable can no longer be studied (the first and third options), and stratification thins out quickly when several confounders are combined, so it is not free either. The first option is the most tempting, but reporting the crude odds ratio from case-control data matched on smoking leaves a selection bias, usually toward the null, that only a matched analysis removes. (Section 3, 5.1 Four Ways to Control a Confounder, Table 7.7, 5.1.1 Restriction, and the Case-control studies tab in 5.1.2; Objective 5.1)

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?

This reverses roles. Age causes both shift assignment and depression, so it opens a backdoor path and must be in the set; the hospital unit affects only the exposure and is simply unnecessary.
Sleep disruption lies on the path shift work → sleep → depression, so adjusting removes part of the total effect. Sick leave is caused by both shift work and depression, so conditioning on it opens a non-causal path.
Age is the confounder that must be in the set, because it opens the backdoor path shift work ← age → depression. Imperfect measurement is no reason to leave a confounder out.
Being associated with shift work is not the criterion. The hospital unit affects only the exposure, so it opens no backdoor path and is unnecessary; the two variables that must stay out are sleep disruption and sick leave.
The correct answer is sleep disruption and sick leave. The information needed is the direction of each arrow. Sleep disruption lies on the path shift work → sleep disruption → depression, so it is a mediator, and adjusting for it would estimate only the part of the effect that does not pass through sleep; sick leave is caused by both shift work and depression, so it is a collider, and conditioning on it would open a non-causal path between them. Age opens the backdoor path shift work ← age → depression and is the variable that must be in the set, while the hospital unit affects the exposure only, so it opens no backdoor path and is simply unnecessary. The tempting first option reverses the roles of the confounder and the mediator. (Section 3, 5.2 Choosing the Adjustment Set from a Causal Diagram, the four steps and Figure 7.4; Objective 5.2)

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?

The Mantel-Haenszel estimator is not a simple average. It weights each stratum by its size, dividing each product by its stratum total: (6.75 + 4.00) ÷ (3.75 + 1.25) = 2.15.
3.28 is the crude odds ratio from the combined table, which ignores smoking. The Mantel-Haenszel estimate pools the stratum-specific tables and gives 2.15.
Smokers give (15 × 45) ÷ (15 × 25) = 1.80 and non-smokers (5 × 160) ÷ (10 × 25) = 3.20. Pooling with each product divided by its stratum total gives 10.75 ÷ 5.00 = 2.15.
These values put the cells in the wrong order. The odds ratio is (a1 × b0) ÷ (a0 × b1), exposed cases times unexposed non-cases over unexposed cases times exposed non-cases, which gives 1.80 and 3.20.
The correct answer is 1.80 and 3.20, pooled to 2.15. The information needed is each stratum's four cells, with cough as the outcome (a1j users with cough, a0j non-users with cough, b1j users without, b0j non-users without), and its total nj. Smokers: (15 × 45) ÷ (15 × 25) = 675 ÷ 375 = 1.80; non-smokers: (5 × 160) ÷ (10 × 25) = 800 ÷ 250 = 3.20; ORMH = (675 ÷ 100 + 800 ÷ 200) ÷ (375 ÷ 100 + 250 ÷ 200) = (6.75 + 4.00) ÷ (3.75 + 1.25) = 10.75 ÷ 5.00 = 2.15. The value 3.28 is the crude odds ratio from the combined table (20 and 25 with cough, 50 and 205 without), which ignores smoking, 2.50 is a simple average that ignores the weights the estimator gives each stratum, and the last option puts the cells in the wrong order; before pooling, the homogeneity test would also be checked (here χ² = 0.62, P = 0.43). (Section 3, 6.1.1 Pooling the Strata, Eq 7.10 and Eq 7.11, Worked Example 7.9, Calculator 7.5; Objective 6.1)

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?

(ln 2.0 − ln 2.5) ÷ ln 2.0 = −0.32, a change of 32% in size. Age raises risk but is less common among night-shift workers, so the crude value lay closer to 1: negative confounding, and 2.5 is reported.
The change is computed on the log scale, not the ratio scale, and the direction is reversed. The crude value is closer to 1 than the adjusted one, so the crude estimate understated the association.
Moving away from 1 after adjustment is what correcting negative confounding looks like. When a confounder hides part of the association, the adjusted estimate is further from 1 and is the one to report.
A confounder can be associated with the exposure in either direction. Age being less common among night-shift workers while raising risk is exactly the pattern that produces negative confounding.
The correct answer is negative confounding by age, with 2.5 reported. The information needed is the crude and adjusted values and the direction of the two associations. ln 2.0 = 0.693 and ln 2.5 = 0.916, so (0.693 − 0.916) ÷ 0.693 = −0.32, a change of 32% in size, above the conventional 10%; because older age raises the risk but is less common among night-shift workers, the unexposed group holds more of the older, higher-risk women, which hides part of the association, so the crude estimate lies closer to 1 than the adjusted one. The tempting second option computes the change on the ratio scale and gets the direction backwards, the third mistakes the correction of negative confounding for a bias, and the last forgets that a confounder can be associated with the exposure in either direction. (Section 3, 6.1.2 Judging Confounding: Change in Estimate and Direction, the paragraph on the direction of confounding, and the negative-confounding preset of Interactive 7.1; Objective 6.1)

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?

The change-in-estimate check was applied without first asking whether the variable is associated with the exposure. Each stratum has 100 exposed and 100 unexposed workers, so the third variable cannot confound.
Effect modification is judged by comparing the strata with each other, and both give an odds ratio of 3.0. A gap between the crude and stratum values is a different pattern.
Nothing in the description concerns who entered or stayed in the study. A third variable that affects a common outcome makes the odds ratio non-collapsible; that is not a sign of selection bias.
With equal exposure in both strata the variable cannot confound. The gap between 3.0 and 2.33 reflects non-collapsibility with a common outcome, and the collapsible risk ratios (1.50, 2.50, crude 1.67 between them) confirm it.
The correct answer is non-collapsibility. The information needed is whether the third variable is associated with the exposure: each stratum has 100 exposed and 100 unexposed workers, so it is not, and a variable unrelated to the exposure cannot confound. The stratum odds ratios are (75 × 50) ÷ (50 × 25) = 3.0 and (25 × 90) ÷ (10 × 75) = 3.0, while the combined table (100 of 200 exposed and 60 of 200 unexposed develop the outcome) gives (100 × 140) ÷ (60 × 100) = 2.33; the gap arises because the outcome is common and the odds ratio is non-collapsible. The risk ratio, which is collapsible, confirms this: 75 ÷ 50 = 1.50 and 25 ÷ 10 = 2.50 in the strata, and 100 ÷ 60 = 1.67 overall, which lies between them. The colleague's error is to apply the change-in-estimate check without first asking whether the variable is associated with the exposure, and effect modification is judged by comparing the strata with each other, which here give the same odds ratio. (Section 3, 6.2.2 Non-Collapsibility of the Odds Ratio; Objective 6.2)

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?

1.33 inverts the bias factor. B = (0.10 × 2.0 + 1) ÷ (0.30 × 2.0 + 1) = 1.2 ÷ 1.6 = 0.75, and dividing by a number below 1 raises the estimate to 2.00.
B = 1.2 ÷ 1.6 = 0.75 and 1.50 ÷ 0.75 = 2.00. Smoking raises risk but is less common among the exposed, so it masked part of the association, and the observed 1.50 was biased toward the null.
B is right, but this multiplies by it instead of dividing. The adjusted value is 1.50 ÷ 0.75 = 2.00, further from 1, which shows a bias toward the null rather than away from it.
A confounder can be associated with the exposure in either direction. Smoking being less common among the exposed while raising risk produces negative confounding, which hides part of the association.
The correct answer is B = 0.75 and an adjusted odds ratio of 2.00. The information needed is p1 = 0.10, p2 = 0.30 and ORUD − 1 = 2.0. B = (0.10 × 2.0 + 1) ÷ (0.30 × 2.0 + 1) = 1.2 ÷ 1.6 = 0.75 and ORadj = 1.50 ÷ 0.75 = 2.00: dividing by a number below 1 raises the estimate, so the adjusted value lies further from 1 than the observed one, and the unmeasured confounder had biased the observed estimate toward the null. This happens when a confounder raises the risk but is less common among the exposed, or lowers the risk and is more common among them. The first option inverts the bias factor, the third multiplies by it, and the last forgets that a confounder can be associated with the exposure in either direction. (Section 4, 7.2 External Adjustment for an Unmeasured Confounder, Eq 7.14 and the paragraph after Worked Example 7.10 on reading the direction; Objective 7.2)

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?

The E-value is not an estimate of the true odds ratio. It states how strong an unmeasured confounder would have to be to explain the result away, not what the value would be after accounting for it.
The E-value requires the stated strength with both the exposure and the outcome. A confounder strongly related to the exposure but weakly related to the cancer could not explain the estimate away.
Each E-value is the minimum strength a confounder would need with both exposure and outcome, beyond the measured confounders. Because the cancer is rare, the odds ratio approximates a risk ratio, so the formula applies.
The E-value is defined on the risk-ratio scale, but an odds ratio can be treated as a risk ratio when the outcome is rare, as here. It is not limited to cohort studies.
The correct answer is the third statement. The information needed is the definition of the E-value and the rule for odds ratios. E = 1.8 + √(1.8 × 0.8) = 1.8 + √1.44 = 1.8 + 1.2 = 3.0, and for the confidence limit closer to 1, 1.2 + √(1.2 × 0.2) = 1.2 + 0.49 = 1.69; each is the minimum strength that a confounder would need with both the exposure and the outcome, so a confounder strongly related to only one of them is not enough (the tempting second option). The E-value is defined on the risk-ratio scale, but when the outcome is rare the odds ratio approximates the risk ratio and can be treated as one (for a common outcome, its square root is used), so the last option is wrong, and the first misreads the E-value as an estimate: it says how strong confounding would have to be, not what the true value is. (Section 4, 7.4 The E-Value, Eq 7.15 and the paragraph after it, Worked Example 7.12; Objective 7.4)

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?

This draft names no mechanism in this study, no likely direction, and no prevention, assessment or residual risk. A threats entry must be specific to the study, not a general statement that a problem may exist.
Adjusting for measured confounders cannot establish which came first or make an association causal. A temporality entry must address reverse causation, which adjustment does not touch.
Listing instruments belongs in the measurement section of the protocol. It states none of the five elements: mechanism, direction, prevention, assessment or residual risk for temporality.
This draft gives the mechanism (simultaneous measurement), the direction (stronger-looking association), design (asking when symptoms began), assessment (secondary analysis) and residual risk (cross-sectional prevalence ratio, reverse causation as a limitation).
The correct answer is the last draft. The information needed is the five elements of Table 7.10, applied here to temporality: the mechanism in this study (both are measured at once, so anxiety may drive screen time), the likely direction (the reverse pathway would make the association look stronger), what the design does (asking when symptoms began), how the analysis assesses it (the secondary analysis) and the residual risk (the estimand is a cross-sectional prevalence ratio, and reverse causation remains a limitation), as in the temporality entry of Worked Example 7.13. The first draft names no mechanism or direction, adjustment for measured confounders cannot establish which came first or make an association causal, and a list of instruments belongs in the measurement section of the protocol. (Section 4, 7.5 Writing the Threats to Validity and Mitigation Subsection, Table 7.10, Worked Example 7.13; Objective 7.5)

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?

2.69 leaves out the multiplication by RR inside the square root, and the E-value needs both associations, not either one. 1.8 + √(1.8 × 0.8) = 3.0.
3.24 leaves out the square root (1.8 + 1.44). The interpretation is also reversed: a confounder weaker than the E-value on both associations could not explain the result away.
1.8 + √(1.8 × 0.8) = 1.8 + 1.2 = 3.0. Family support would need risk-ratio associations of at least 3.0 with both food insecurity and the April screen, beyond the measured variables, to explain a risk ratio of 1.8 away.
The number is right but the reading is not. The E-value is the strength needed with both the exposure and the outcome; one strong association alone is not enough to explain the result away.
The correct answer is 3.0, with an interpretation that requires both associations. The information needed is the expected risk ratio: E = 1.8 + √(1.8 × 0.8) = 1.8 + √1.44 = 1.8 + 1.2 = 3.0. The E-value is the minimum strength that an unmeasured confounder would need with both the exposure and the outcome, beyond the measured confounders, so the last option, which needs only one association, misreads it. Lack of family support may well be that strongly linked to food insecurity, but a risk ratio of 3 with a positive screen, once the September PHQ-2 score and other covariates are accounted for, seems less likely, so it could explain part of the association but probably not all of it. The first option leaves out the multiplication by RR inside the square root (1.8 + √0.8), and the second leaves out the square root (1.8 + 1.44). (Section 4, 7.4 The E-Value, Eq 7.15, Worked Example 7.12; Objective 7.4)

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?

This entry states the mechanism (loss depending on food insecurity and symptoms), the direction (toward the null), prevention (contacts, equal procedures), assessment (comparison and weighting) and residual risk (a bounding analysis).
Loss biases the risk ratio only when it depends jointly on exposure and outcome, not whoever is lost. Recruiting 1,333 changes how many are analyzed, not who is missing, so the bias is unchanged.
Analyzing only students who complete follow-up is the conditioning that creates the bias. Loss concentrated among food-insecure students who would screen positive underestimates the exposed risk, a bias toward the null.
The direction is right, but weights built from September variables cannot correct loss that depends on the unobserved April outcome itself. A bounding analysis with assumed sampling fractions covers that residual risk.
The correct answer is the entry that states the mechanism, the direction, prevention, assessment and residual risk. The information needed is that loss to follow-up biases the estimate only when it depends jointly on the exposure and the outcome, as the description suggests: if food-insecure students who would screen positive are lost most often, the risk among the exposed is underestimated and the risk ratio is biased toward the null. Several contact details and the same procedures for everyone reduce the loss, records allow those lost to be compared with those retained and the analysis to be weighted, and a bounding analysis with assumed sampling fractions covers what weights based on September variables cannot. Recruiting extra students changes how many are analyzed, not who is missing; analyzing only the students who complete follow-up is the conditioning that creates the bias; and weights cannot correct loss that depends on the unobserved April outcome itself. (Section 1, 2.1 When Selection Biases an Odds Ratio and 2.3 Protocol Decisions That Prevent Selection Bias, Retention and What to record tabs; Section 4, 7.5 Writing the Threats to Validity and Mitigation Subsection, Table 7.10; Objectives 2.1, 2.3 and 7.5)
✦ Pass every section knowledge check (100%) before submitting

Lesson complete

You have successfully completed this lesson: Designing Against Bias: Validity and Confounding in Study Protocols.

You can now quantify selection bias with sampling fractions, compute and correct misclassification, plan a validation sub-study and an inflated sample size, choose and justify an adjustment set, carry out a Mantel-Haenszel analysis, plan a sensitivity analysis for unmeasured confounding, and write these decisions into the threats to validity and mitigation subsection of a protocol.

The next lesson, Lesson 8, Time-to-Event Data, takes up studies in which follow-up is incomplete. It shows how a protocol defines time zero, the event and censoring, and how incidence is estimated when people are followed for different lengths of time.

Continue to Lesson 8: Time-to-Event Data →