PUBH-310 · Lesson 4 of 12 · 22 min
Measuring exposure and outcome
▶ Video coming soon A video version of this lesson is on the way.
The payroll data arrived as a spreadsheet of shift codes: D1, D2, E1, N1, N2, R4 and dozens more, some of which had changed meaning when the hospitals merged their scheduling systems six years earlier. Priya spent a week with the scheduling office translating each code into start and end times. Meanwhile Tomás found that the occupational health checks had recorded HbA1c every year only for staff in certain departments; for others, it was measured only when a manager requested it. “So the people who got tested more often had more chances to be diagnosed,” he said. Dr. Arkwright nodded. “Measurement is where good designs go to die. Let’s make sure ours doesn’t.”
Every epidemiological estimate depends on classifying people correctly as exposed or unexposed and as having or not having the outcome. PUBH-210 introduced misclassification, sensitivity and specificity. This lesson goes further: how to define and measure exposures with their timing and dose, how to ascertain outcomes, how to quantify the validity and reliability of measures, and how much measurement error can distort an estimate.
Validity and reliability
Two properties describe any measurement. Validity (accuracy) is the degree to which a measure captures what it is meant to capture. Reliability (precision, reproducibility) is the degree to which repeated measurements give the same result. A bathroom scale that always reads 2 kilograms too heavy is reliable but not valid. A scale that gives a different reading each time you step on it is unreliable, and therefore cannot be consistently valid. Reliability is necessary but not sufficient for validity.
Validity is assessed by comparing a measure with a reference standard (sometimes called a gold standard), the best available measure. A diet questionnaire might be compared with repeated 24-hour recalls or with biomarkers such as doubly labelled water for energy intake; self-reported smoking with cotinine levels; a hospital discharge code for heart attack with a cardiologist’s chart review. Where no reference standard exists, investigators examine construct validity: whether the measure behaves as theory predicts, correlating with things it should correlate with and not with things it should not.
Defining the exposure
An exposure is rarely a simple yes or no. A useful exposure definition specifies several dimensions:
- Intensity: how much at a given time, such as nights per month or cigarettes per day.
- Duration: for how long, such as years on a rotating schedule.
- Cumulative dose: intensity integrated over time, such as total night shifts worked or pack-years of smoking.
- Timing and pattern: when in life or in what pattern, such as consecutive nights versus scattered nights, or exposure during pregnancy versus childhood.
- Latency and induction period: how long after exposure an effect could appear. Exposure in the last month cannot plausibly cause a diabetes diagnosis this month; analyses often lag exposure by a year or more to exclude irrelevant recent exposure.
Choosing among these is a matter of biological reasoning, not convenience. For circadian disruption and glucose metabolism, laboratory studies suggest that both the frequency of nights and the number of consecutive nights may matter, and that effects could accumulate over years. The team therefore defined a primary binary exposure (rotating nights versus days only, at time zero) for the main estimand, and secondary exposures of cumulative night shifts and of years with at least three nights per month, lagged by one year, for dose-response analyses.
Sources of exposure data
| Source | Examples | Strengths | Weaknesses |
|---|---|---|---|
| Records made for other purposes | Payroll, pharmacy dispensing, vaccination registries | Recorded before the outcome, so no recall bias; complete for large populations | Definitions not designed for research; may change over time; limited detail |
| Questionnaires and interviews | Work histories, diet, physical activity, smoking | Can capture details unavailable elsewhere | Recall error; social desirability; differential recall in case-control studies |
| Biomarkers | Cotinine, blood lead, serum vitamin D, melatonin metabolites | Objective; can reflect internal dose | Often reflect only recent exposure; costly; affected by disease itself |
| Environmental measurement and modelling | Air pollution monitors, land-use regression, satellite estimates | Objective; covers whole populations | Measures area levels, not personal exposure |
| Job-exposure matrices | Expert ratings of exposure by job title and period | Standardized; avoids recall bias about exposure intensity | Ignores variation among people with the same job |
Defining and ascertaining the outcome
An outcome definition specifies what counts as a case, how it is detected and when it is dated. For type 2 diabetes, current clinical criteria from both Diabetes Canada include an HbA1c of 6.5 percent or higher, a fasting plasma glucose of 7.0 mmol/L (126 mg/dL) or higher, or a two-hour glucose of 11.1 mmol/L (200 mg/dL) or higher on an oral glucose tolerance test, with confirmation by repeat testing in people without symptoms. A research definition must decide which of these to use, whether one abnormal result is enough, how to separate type 1 from type 2, and how to date onset when the true onset is silent and gradual.
Ascertainment is how cases are found. Active ascertainment examines everyone in the cohort at set intervals, which detects cases consistently. Passive ascertainment relies on cases being diagnosed in usual care and appearing in records, which depends on how often people see a doctor and get tested. This is exactly the problem Tomás found: if night workers in some departments were tested yearly while day workers elsewhere were tested only on request, more diabetes would be found among night workers simply because more people were looked for. This is called detection bias or surveillance bias, a form of differential outcome misclassification. The team solved it by restricting the outcome to diagnoses made at the routine annual checks, which applied to all three hospitals’ staff in the final years, combined with physician-diagnosed cases from linked billing records, and by checking whether testing frequency differed by schedule.
Administrative data algorithms
Many studies identify outcomes in health administrative data using algorithms, such as “two physician claims with a diabetes diagnosis code within two years, or one hospitalization.” Such algorithms should be validated against a reference standard like chart review, reporting sensitivity, specificity and positive predictive value. Validated algorithms for diabetes in Canadian provincial data, for example, have been the basis of the Public Health Agency of Canada’s Canadian Chronic Disease Surveillance System. An algorithm that works well in one province, state or time period may perform differently elsewhere, because coding practices change.
Blinding outcome assessment
Where outcome assessment involves judgment, such as reading an image, classifying a cause of death or deciding whether a symptom counts, assessors should be blinded to exposure status. Otherwise expectations can push borderline cases into the category the assessor expects. Many trials use independent adjudication committees for this purpose, and observational studies can do the same for chart reviews.
Measuring reliability: kappa
For categorical measures, reliability between two raters (or two occasions) is often summarized by Cohen’s kappa, which measures agreement beyond what would be expected by chance. Kappa = (observed agreement − expected agreement) ÷ (1 − expected agreement). It ranges from below 0 (worse than chance) to 1 (perfect agreement). Commonly cited, though arbitrary, benchmarks describe 0.41 to 0.60 as moderate, 0.61 to 0.80 as substantial and above 0.80 as almost perfect agreement.
Worked problem
Calculating kappa
Two occupational health nurses independently classify 100 shift-schedule records as “rotating nights” or “not.” Both say rotating nights for 20 records and both say not for 60. Nurse A says rotating nights and nurse B says not for 10; nurse A says not and nurse B says rotating nights for 10. Calculate observed agreement and kappa.
Show solution
- Observed agreement = (20 + 60) ÷ 100 = 0.80.
- Nurse A classifies 30 as rotating nights (20 + 10); nurse B also classifies 30 (20 + 10).
- Expected agreement by chance = (0.30 × 0.30) + (0.70 × 0.70) = 0.09 + 0.49 = 0.58.
- Kappa = (0.80 − 0.58) ÷ (1 − 0.58) = 0.22 ÷ 0.42 = 0.52.
Answer: Despite 80 percent raw agreement, kappa is only 0.52, moderate agreement, because much of the raw agreement would be expected by chance. The team clarified the coding rules and retrained before abstracting the full data set.
For continuous measures such as blood pressure or HbA1c, reliability is summarized by the intraclass correlation coefficient (the same ICC idea seen in lesson 3, applied to repeated measurements within a person), and agreement between two methods is examined with a Bland-Altman plot, which shows the difference between methods against their average. A simple correlation coefficient is not a good measure of agreement: two methods can be perfectly correlated while one reads consistently 10 units higher.
How much does misclassification matter?
PUBH-210 stated that non-differential misclassification of a binary exposure or outcome usually biases estimates toward the null. Working through the numbers shows how strong this effect can be.
Worked problem
Non-differential outcome misclassification
In a cohort, 1,000 exposed people have a true 10-year risk of 20 percent and 1,000 unexposed people have a true risk of 10 percent (true risk ratio 2.0). The outcome is detected with a sensitivity of 0.80 and a specificity of 0.95 in both groups. What risk ratio will be observed?
Show solution
- Exposed: 200 true cases, 800 non-cases. Observed cases = 200 × 0.80 + 800 × 0.05 = 160 + 40 = 200. Observed risk = 0.20.
- Unexposed: 100 true cases, 900 non-cases. Observed cases = 100 × 0.80 + 900 × 0.05 = 80 + 45 = 125. Observed risk = 0.125.
- Observed risk ratio = 0.20 ÷ 0.125 = 1.6.
Answer: The observed risk ratio is 1.6 instead of 2.0, biased toward the null. Notice that imperfect specificity, which adds false-positive cases to both groups, did most of the damage: with perfect specificity, the risks would be 0.16 and 0.08 and the risk ratio would remain 2.0. For outcome measures in cohort studies, specificity matters more than sensitivity.
The finding that specificity matters most for outcomes has a practical consequence. When choosing an outcome definition for a cohort study of a causal effect, a strict definition with high specificity, even at the cost of missing some cases, usually gives a less biased risk ratio. That is why the team required confirmed diagnoses rather than a single borderline HbA1c reading.
Three important exceptions to the “toward the null” rule should be remembered. First, misclassification that is differential, differing by exposure or outcome status, can bias in either direction, as with detection bias or recall bias. Second, with exposures that have three or more categories, non-differential misclassification can bias the middle categories in either direction, creating or masking a dose-response pattern. Third, “toward the null on average” does not guarantee that any single study’s estimate is an underestimate; by chance, a particular study can still overestimate.
Measurement error in continuous variables
When a continuous exposure such as blood pressure or dietary intake is measured with random error, the slope of its relationship with an outcome is flattened, a phenomenon called regression dilution. A single blood pressure measurement, for example, underestimates the strength of the association between usual blood pressure and stroke. Repeat measurements on a subsample allow the reliability to be estimated and the slope corrected. Measurement error in confounders has a different and sneakier effect: adjustment for a poorly measured confounder leaves residual confounding, as lesson 5 explains.
Validation substudies and bias correction
The best defence against measurement error is a better measure. When that is too expensive for everyone, an internal validation substudy measures both the routine measure and the reference standard on a random subsample. In the Brannock study, Priya planned to compare payroll-derived schedules with detailed rosters for 200 randomly chosen employees, estimating the sensitivity and specificity of the payroll classification. These values can be used in quantitative bias analysis (lesson 8) to correct the main estimate or to show how sensitive conclusions are to plausible error.
A measurement plan
By the end of the month, the team had a one-page measurement plan listing every variable, its definition, its source, its timing relative to time zero, its known validity and reliability, and how missing values would be handled. It covered the exposure (payroll schedules, validated against rosters), the outcome (confirmed diabetes from routine checks and billing records, with testing frequency monitored by schedule), and the confounders: age, sex and job type from human resources records; and body mass index, family history, smoking and second jobs from baseline health questionnaires. Writing it showed one more problem: body mass index was recorded only at hiring for some staff. Lesson 5 explains why that turned out to matter.
Common mistakes
MistakeA reliable measure must be valid.
InsteadReliability is necessary but not sufficient; a measure can be consistently wrong.
MistakeRaw percent agreement is a good summary of reliability.
InsteadUse kappa or similar statistics, which correct for agreement expected by chance.
MistakeIn a cohort study, maximize outcome sensitivity above all.
InsteadFor risk ratios, high specificity of the outcome definition usually matters more than high sensitivity.
MistakeNon-differential misclassification always produces underestimates.
InsteadIt biases binary comparisons toward the null on average, but not with three or more categories or in every individual study, and differential errors can bias either way.
MistakeIf everyone’s records are in the same system, outcome ascertainment is equal.
InsteadMore frequent testing or contact in one group produces detection bias.
Summary and key terms
- Validity is accuracy against a reference standard; reliability is reproducibility.
- Exposure definitions should specify intensity, duration, cumulative dose, timing and an appropriate lag for latency.
- Outcome definitions specify criteria, ascertainment method and dating; unequal testing causes detection bias.
- Administrative data algorithms should be validated, and judgment-based outcome assessment should be blinded.
- Kappa measures agreement beyond chance; Bland-Altman plots assess agreement between continuous methods.
- Non-differential binary misclassification usually biases toward the null, and outcome specificity matters most; differential misclassification can bias either way.
- Validation substudies allow measurement error to be quantified and corrected.
- Validity
- The degree to which a measure captures what it is intended to measure.
- Reliability
- The degree to which repeated measurements give the same result.
- Reference standard
- The best available measure against which another measure is validated.
- Detection bias
- Bias that arises when the outcome is looked for more intensively in one comparison group.
- Cohen’s kappa
- A measure of agreement between two raters corrected for chance agreement.
- Regression dilution
- Flattening of an exposure-outcome slope caused by random error in measuring the exposure.
- Exposure lag
- Ignoring exposure in a recent period that could not plausibly have caused the outcome.
- Validation substudy
- Measuring both a routine measure and a reference standard in a subsample to estimate measurement error.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Two radiologists read 200 chest films for pneumonia. They agree on 30 positive and 150 negative films; one reads 12 positive that the other reads negative, and vice versa for 8. Calculate kappa.
Show answer
Observed agreement = 180 ÷ 200 = 0.90. Rater 1 positive = 42 (0.21); rater 2 positive = 38 (0.19). Expected = 0.21 × 0.19 + 0.79 × 0.81 = 0.0399 + 0.6399 = 0.680. Kappa = (0.90 − 0.68) ÷ 0.32 = 0.69, substantial agreement.
True risks are 0.10 (exposed) and 0.05 (unexposed). The outcome is measured with sensitivity 1.0 and specificity 0.90 in both groups. What is the observed risk ratio?
Show answer
Exposed: 0.10 + 0.90 × 0.10 = 0.19. Unexposed: 0.05 + 0.95 × 0.10 = 0.145. RR = 0.19 ÷ 0.145 = 1.31, compared with the true 2.0.
Why might a study of a medication and dementia lag exposure by several years?
Show answer
Dementia develops slowly, and early symptoms may lead to prescriptions (reverse causation). Ignoring recent exposure excludes prescriptions that may be consequences rather than causes of early disease.
Give an example of detection bias in a cohort study of oral contraceptives and blood clots.
Show answer
If clinicians knew that a patient used oral contraceptives and were therefore more likely to order imaging for leg pain, more clots would be diagnosed among users, inflating the association.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.