Risk-Adjusted Case-Crossover Design

Research
Introduced by
Malcolm Maclure (case-crossover base); extensions incorporating covariate risk adjustment developed in subsequent pharmacoepidemiology literature
Year
1991 (base design); risk-adjustment extensions from mid-1990s onward
Type
Observational analytic epidemiological design
Family
Clinical / epidemiology

What does it do?

The risk-adjusted case-crossover design is a self-matched method that compares a person's exposure during a brief hazard window before an acute event with their exposure during one or more control windows from the same individual. It can also adjust for time-varying covariates that could confound that comparison, provided those covariates are confounders rather than consequences of the exposure.

Because each case serves as its own control, characteristics that stay constant within a person cancel out, and covariate terms can address the time-varying factors that the self-match does not remove.

The intuition behind the method

Imagine you want to know whether air pollution triggers asthma attacks. In a classic case-crossover study you compare Tuesday's pollution level (when an attack occurred) to a control Tuesday three weeks earlier for the same patient. The patient's genetics, smoking history, and chronic conditions are constant across both days, so they drop out of the comparison automatically. The risk-adjusted version goes further: if temperature or pollen also fluctuated between the case and control days, you add those as covariates in the model so that their influence on the comparison is accounted for. The result is a comparison that controls for stable personal traits through self-matching and for measured time-varying confounders through covariate adjustment.

History

Malcolm Maclure introduced the case-crossover design in 1991 as a self-matched method for studying transient effects on the risk of acute events; the pilot data in that paper concerned myocardial infarction onset. Because only cases are sampled and each case is compared with its own exposure history, self-matching eliminates control-selection bias and increases efficiency. Navidi (1998) showed that unidirectional control sampling can be confounded by exposure time trends and proposed a bidirectional design for exposures not influenced by failure, which also extends to multiple failure times. Covariate-adjusted extensions of the framework were developed in later pharmacoepidemiological work. The label 'risk-adjusted case-crossover design' is descriptive and is not attributed to a particular author.

When to use it

Use a risk-adjusted case-crossover design when the research question concerns the short-term, transient effect of a time-varying exposure on an acute outcome, and when electronic or registry data allow reliable within-person exposure reconstruction across multiple time windows. It is particularly well-suited to pharmacoepidemiology (e.g., drug-triggered arrhythmias), environmental epidemiology (air pollution and emergency admissions), and injury research (alcohol and road traffic crashes). Do not use it when the exposure is essentially time-invariant (e.g., a genetic variant), when the outcome is chronic or delayed (e.g., developing a tumour over years), when accurate time-stamped exposure records are unavailable, or when the induction period between exposure and outcome is too long to capture in a feasible hazard window.

Limitations and considerations

  • Only transient, time-varying exposures can be studied; the comparison is confined to short windows, so the design does not estimate effects of chronic or slowly accumulating exposures.
  • Unidirectional control sampling can produce estimates confounded by exposure time trends; time-stratified or bidirectional selection can be used to reduce this, and the bidirectional form is only suitable when the exposure is not influenced by the event.
  • Exposure and covariate data must be time-stamped within each person's record, since errors in the timing of exposure relative to the event directly affect the hazard-window comparison.
  • The framework assumes that the outcome is acute and that the induction period is short and known. These assumptions cannot be fully checked from the data, so the choice of hazard window is a substantive decision.
  • The estimate rests on two further assumptions: the outcome is rare, and the exposure effect is confined to the hazard window with no carryover into the control windows. The rare-outcome assumption is what allows the odds ratio to be read as an approximate rate ratio. Neither assumption can be fully verified from the data.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Individual-level characteristics that remain constant between the hazard window and the control windows, such as genotype or chronic comorbidity, cancel out of the comparison without having to be measured.
  • Covariate terms in the conditional model can address time-varying confounders, such as temperature or concurrent medication, that differ between case and control windows and that the self-match alone does not remove, provided they are confounders rather than consequences of the exposure.
  • Each case contributes its own controls, so no separate unaffected comparison group has to be sampled or justified.
  • The design suits administrative and electronic health databases in which repeated person-time records already exist.

Applications

  • Assessing whether non-steroidal anti-inflammatory drugs transiently elevate the risk of myocardial infarction in the days following dispensing.
  • Quantifying the within-day effect of fine particulate matter (PM2.5) exposure on emergency department visits for acute respiratory events.
  • Examining the short-term relationship between alcohol consumption and road traffic crashes using police-linked hospital admission records.
  • Evaluating triggers of epileptic seizures by comparing medication adherence in the hours before a seizure to matched control windows.
  • Studying the acute cardiovascular effects of heat episodes using daily temperature data linked to hospital admissions, adjusted for concurrent air quality and influenza season.

How it works

How it works

1

A brief hazard period immediately preceding each acute outcome event is defined, typically hours to days. This window represents the time during which a transient exposure is hypothesised to elevate risk. The event date and time must be recorded precisely. The window length should be pre-specified from the biology of the exposure. In the original design the effect period is assumed to be the duration that maximises the estimated rate ratio, but choosing the window on that basis can inflate the type I error rate. Sensitivity analyses across alternative window lengths should therefore be reported instead.

2

One or more control periods are selected for each case from the same individual's person-time. Common strategies are time-stratified referent selection, which draws controls from the same calendar stratum as the case and is intended to limit secular-trend bias, and bidirectional symmetric designs, which take controls both before and after the event. Bidirectional selection is appropriate when the exposure is not itself influenced by the event, as with many environmental exposures; selecting only earlier periods can produce estimates confounded by time trends. Control periods must be exposure-eligible and must not themselves be outcome periods.

3

Exposure during the hazard window and each control period is measured or reconstructed from records (electronic health data, environmental monitors, pharmacy dispensing records). Exposure classification must be applied identically across the case and control periods for the same individual.

4

Time-varying covariates, such as concurrent medications, ambient temperature, day-of-week, or infection status, that differ between the case and control windows are entered as additional terms in the analytic model. Only confounders should be adjusted for. A covariate that lies on the causal pathway from exposure to outcome, or that is itself affected by the exposure, can introduce bias when adjusted for, so each covariate's causal role should be identified before modelling. Time-invariant confounders (age at event, sex, chronic comorbidities) are controlled by the self-matching and need not be modelled explicitly.

5

A conditional logistic regression is fitted, conditioning on the matched set formed by each individual's case and control periods. Adjusted odds ratios and 95% confidence intervals for the transient exposure effect are estimated. Sensitivity analyses vary referent selection strategy and covariate specification to assess robustness.

Common pitfalls

  • Using unidirectional control selection without checking for exposure time trends over the study period. If exposure levels are rising or falling, the estimate can be confounded by those trends.
  • Failing to include time-varying covariates in the adjusted model. Stable confounders cancel out, but seasonal factors, concurrent medications, and time-of-day patterns can still confound the effect if they differ between case and control windows.
  • Selecting control periods that overlap with other outcome events for the same individual, which violates the assumption that control windows are outcome-free.
  • Applying bidirectional control selection to an exposure that the event itself alters, such as a treatment started or stopped because of the outcome. The bidirectional design assumes that post-event exposure is not influenced by the failure.
  • Applying the design to outcomes with long or uncertain latency periods, where the hazard window cannot be plausibly bounded to the exposure window.
  • Choosing the hazard window after inspecting the data, for example by picking the length that gives the strongest association. This can inflate the type I error rate. The window should be pre-specified and varied only in sensitivity analyses.

Frequently asked questions

How is the risk-adjusted case-crossover design different from a standard case-crossover design?

The standard case-crossover design relies on the self-matching to control confounding, which eliminates time-invariant individual characteristics. The risk-adjusted version additionally models time-varying covariates, such as concurrent drug use, temperature, or season, as explicit terms in the conditional logistic regression. This allows time-varying confounding that the self-match alone cannot handle to be addressed, provided those covariates are confounders rather than consequences of the exposure.

Which referent selection strategy should I use?

Time-stratified referent selection is one commonly used option. It draws control days from the same calendar stratum (for example, the same month and year) as the case day and is intended to reduce the secular-trend bias associated with unidirectional selection; how well it does so depends on the data. Bidirectional symmetric designs are an acceptable alternative when the exposure is not influenced by the event. Unidirectional strategies (only earlier or only later control periods) should be avoided unless you can demonstrate that exposure is trend-free over the study period.

Why is conditional logistic regression used instead of standard logistic regression?

Conditional logistic regression conditions on the matched set formed by each individual's case and control periods, so the within-person comparison that the design relies on is made explicitly. Standard logistic regression that ignores the individual-level grouping would not use that structure, and the time-invariant confounders the self-matched design is meant to remove would not be cancelled in the same way.

Can I apply this design to drug safety studies using administrative data?

Yes. The risk-adjusted case-crossover design is widely used in pharmacoepidemiology with administrative claims data. Each patient who experiences an acute outcome serves as their own control by comparing drug exposure in the hazard window with control windows earlier in their claims history. Time-varying covariates such as concurrent drug fills, calendar season, and hospitalisation history can be extracted from the same database and included as adjusters, after checking that each one is a confounder rather than a consequence of the drug exposure.

What sample size do I need?

Sample size depends on how rare the outcome is, the effect size you expect to detect, and how much the exposure varies within each person over time. Because each case contributes its own controls, the effective sample is driven by the number of cases rather than the total population. A formal power calculation for matched case-control analyses, or a simulation matched to your data, is advisable before committing to a design.

How should I interpret the adjusted odds ratio?

The adjusted odds ratio from the conditional logistic model estimates the transient effect of the exposure within the chosen hazard window, comparing each person's exposure in that window with their control windows. It approximates the incidence rate ratio only when the outcome is rare, which is the setting the design was developed for. It describes a short-term effect and says nothing about long-term risk. Report it together with the window length, referent strategy, and covariate set, and with the results of the sensitivity analyses.

Related methods

Sources

  1. 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 reference
  2. Navidi, W. (1998). Bidirectional case-crossover designs for exposures with time trends. Biometrics, 54(2), 596–605.

    Open DOI reference