- Introduced by
- Malcolm Maclure (case-crossover); time-matched variant developed by Navidi (1998) and Lumley & Levy (2000)
- Year
- 1991 (base design); matched variant refined ~1998–2000
- Type
- Observational epidemiological design
- Family
- Clinical / epidemiology
What does it do?
The matched case-crossover design is a self-controlled observational study in which each case serves as its own control.
A short hazard window immediately before the acute event is compared with one or more control windows from the same person, selected to match on time-varying factors such as day of week or season. Because the comparison is within person, stable individual characteristics do not enter the contrast, and the matching is intended to address calendar-time patterns.
The intuition behind the method
Suppose you want to know whether heavy air pollution triggers asthma attacks. You take each patient who had an attack and compare their pollution exposure in the hour before the attack (the hazard window) with their exposure at the same hour on matched comparison days, perhaps the same weekday two weeks earlier and two weeks later. Because the comparison is always within the same person, their genetic susceptibility, smoking history, and medication do not differ between the windows. The explicit time-matching is intended to remove day-of-week and seasonal patterns that could otherwise create spurious associations. The result is a within-person comparison that targets the transient trigger.
History
Malcolm Maclure introduced the case-crossover design in a 1991 paper in the American Journal of Epidemiology. It is a case-only design for transient effects on the risk of an acute-onset disease, estimating an average rate ratio over a hypothesised effect period with the Mantel-Haenszel estimator, and it was illustrated with pilot data on myocardial infarction onset. Self-matching of cases was presented as removing control-selection bias. Thomas Lumley and Drew Griffin Levy (2000) argued that much thinking about the design had drawn on false analogies with matched case-control studies. They showed that the usual design and analysis mis-condition on the sampling scheme, that conditional logistic regression is valid for a modified design that divides time into strata, and that the bias from standard designs is typically small.
When to use it
Use the matched case-crossover design when studying whether a transient, brief exposure triggers an acute event, and when time-varying confounders such as day of week or seasonality are plausible threats to validity. It is especially appropriate for environmental exposures (air pollution, temperature extremes), pharmacological triggers, or physical or emotional stressors with near-immediate effects. Required data: individual-level records linking the exact time of the acute event to time-stamped exposure data. Do not use it when the latency between exposure and outcome is long (weeks or months), when the exposure of interest is stable over time (it will be constant across all windows and unestimable), or when the disease itself alters subsequent exposure (depletion of susceptibles or exposure-related behaviour change), as these situations can produce structural bias. Also avoid the unidirectional design when secular exposure trends exist, because control windows only in the past will systematically differ from the hazard window.
Limitations and considerations
- Can only estimate effects of exposures that vary over time; stable exposures are not estimable.
- Susceptible to depletion-of-susceptibles bias: if experiencing the event changes the probability of subsequent exposure (for example, a heart attack removes the person from high-activity situations), control windows after the event will show artificially low exposure.
- Induction and latency periods must be short and clinically plausible; the design is poorly suited to slowly acting agents.
- Relies on accurate, time-resolved exposure data linked to individual cases, which may not be available in administrative databases.
- Matching on many time variables can leave few informative (discordant) matched sets, which reduces precision. The analysis must also condition correctly on the sampling scheme, as Lumley and Levy (2000) emphasise.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The within-person comparison removes time-invariant individual factors (for example genetics, chronic comorbidity, or socioeconomic status) from the contrast without requiring them to be measured, provided they are stable over the study period.
- Explicit time-matching on day of week and calendar period is intended to address temporal confounding that can affect the unmatched case-crossover design. Lumley and Levy (2000) describe the bias of standard case-crossover designs as typically small.
- Self-matching eliminates control-selection bias and increases efficiency (Maclure, 1991), and no separate control group needs to be recruited.
- Well suited to rare acute events, where following a prospective cohort long enough to observe them would be impractical.
- The analysis uses conditional logistic regression, which is a valid maximum likelihood method for the time-stratified modification of the design (Lumley and Levy, 2000) and has wide software support.
Applications
- Estimating the within-hour effect of peak air pollution on the risk of acute myocardial infarction or asthma exacerbation.
- Studying whether extreme temperature events (heat waves, cold snaps) trigger strokes or cardiac arrests, with seasonal matching.
- Assessing whether intense physical exertion or emotional stress immediately precedes acute coronary syndromes.
- Evaluating drug-triggered arrhythmias or hypoglycaemic episodes using pharmacy dispensing records linked to hospital admissions.
- Investigating road traffic injury risk associated with mobile phone use, with day-of-week matching to control for travel patterns.
- Examining occupational exposure spikes (noise, chemicals) as triggers of acute health events in administrative linked data.
How it works
How it works
Every individual who experiences the acute outcome of interest (for example, a myocardial infarction, an asthma exacerbation, or a road-traffic injury) becomes a case. No separate control subjects are recruited, because each case provides its own comparison windows.
A short hazard window is defined immediately before the event, with its length chosen from the clinically plausible induction period (the examples on this page are one hour or one day). Control windows of the same length are drawn from the same person's time outside the hazard window. The number and placement of control windows defines the matching scheme.
Control windows are matched to the hazard window on time-varying factors that could confound the association, most commonly day of week and calendar period or season. Bidirectional designs place control windows both before and after the event; unidirectional designs use only prior control windows. The matching variables should capture the temporal patterns that could otherwise bias the comparison.
Exposure in each window is quantified from existing records, environmental monitors, or linkable databases. Because the comparison is within person, only exposures that vary over time contribute information; stable individual-level factors such as genetics or chronic disease status drop out of the contrast.
Conditional logistic regression, which conditions on the set of hazard and control windows belonging to each case, is the estimator normally applied to this design. Lumley and Levy (2000) show that it is a valid maximum likelihood method for a modified design that divides time into strata. The usual design and analysis do not condition correctly on the sampling scheme, although the resulting bias is typically small, so the sampling scheme must be handled explicitly. Because the within-case comparison removes time-invariant individual factors, those factors need not be measured, provided they are constant across the windows.
Common pitfalls
- Choosing control windows asymmetrically without justification: a purely retrospective (unidirectional) design can introduce trend bias if ambient exposure is rising or falling over the study period, so a bidirectional design or an explicit justification for the unidirectional choice is preferable.
- Ignoring the induction period: placing the hazard window too long before the event dilutes the exposure contrast, and the window length should be grounded in biological plausibility.
- Assuming time-invariant confounders are controlled without verifying that the exposure itself varies over time for the cases in the sample.
- Analysing the standard design with conditional logistic regression without addressing the sampling scheme. Lumley and Levy (2000) show that the usual analysis of standard case-crossover designs does not condition correctly on the sampling scheme; conditional logistic regression is valid for the time-stratified modification of the design. Use that formulation, or handle the sampling scheme explicitly.
- Applying the design to outcomes that alter subsequent exposure, for example studying whether a drug triggers a fall when the fall itself leads to discontinuation of the drug, without accounting for the resulting exposure dependency.
Frequently asked questions
How does matching improve the standard case-crossover design?
Standard case-crossover designs can be affected when exposure trends occur over calendar time (for example, pollution rising in winter) or vary by day of week, because control windows at different calendar positions may differ systematically from the hazard window. Explicit matching of control windows on day of week and calendar period is intended to remove these sources of confounding. Lumley and Levy (2000) also show that the analysis must condition correctly on the sampling scheme, and the size of the benefit in practice depends on how well the matching variables capture the temporal structure of confounding.
Should I use a bidirectional or unidirectional control window scheme?
Bidirectional designs place control windows both before and after the event. Their symmetric placement is intended to reduce sensitivity to a monotone exposure trend, whereas unidirectional designs using only prior windows are more exposed to such trends. A unidirectional design can be justified when the event itself changes subsequent exposure, which makes post-event windows uninformative, or when there is an explicit reason to use past windows only.
What length should the hazard window be?
The window length should match the clinically plausible induction period, the interval within which exposure is believed to trigger the outcome. The examples on this page use hazard windows of one hour or one day; the appropriate length depends on the exposure and outcome under study. Control windows must be exactly the same length as the hazard window. A window that is too long dilutes the exposure contrast, and one that is too short may miss the biologically relevant time lag.
Can the matched case-crossover design control for confounders that vary over time?
Only partially. Time-invariant confounders are removed by the within-person comparison. Time-varying confounders that are explicitly matched (day of week, season) are addressed by the matching. Time-varying confounders that are neither matched nor constant over the study period (for example, concurrent medication use or disease progression) remain potential sources of bias and should be measured and included as covariates in the conditional logistic regression.
What is the minimum sample size needed?
There is no universal threshold. Power in the matched case-crossover design is driven by the number of discordant matched sets, that is, case-control window pairs where exposure status differs between the hazard and control windows. If exposure is rare and nearly constant within most individuals, even large case samples yield few discordant sets and the study will be underpowered. A formal power calculation based on the expected discordance fraction is strongly recommended before data collection or record linkage.
Related methods
Sources
Maclure, M. (1991). The case-crossover design: a method for studying transient effects on the risk of acute events. American Journal of Epidemiology, 133(2), 144–153.
Open DOI referenceLumley, T., & Levy, D. (2000). Bias in the case-crossover design: implications for studies of air pollution. Environmetrics, 11(6), 689–704.
Open DOI reference