- Introduced by
- Duncan Thomas (nested case-control); pragmatic design concept from Schwartz & Lellouch (1967)
- Year
- 1977 (nested case-control); pragmatic variant emerged in real-world evidence research from 1990s onwards
- Type
- Observational epidemiological study design
- Family
- Clinical / epidemiology
What does it do?
A pragmatic nested case-control study applies the nested case-control design within an existing routine-care cohort, such as electronic health records, administrative claims or disease registries.
Cases are individuals who develop the outcome during follow-up, and controls are sampled from the risk set at each case's index date, so exposure histories are compared in the temporal order of real clinical care. Because only the cases and a sample of controls need detailed data extraction, the design is a cost-efficient alternative to analysing the full cohort.
The intuition behind the method
Consider a hospital database holding records on a very large number of patients followed over several years, and a question about whether a medication is associated with a rare cardiac event. A full cohort analysis would require extracting and cleaning exposure data for every patient. Instead, the analyst identifies everyone who had the event (the cases), then for each case samples a few patients from the same database who were still event-free and matched on criteria such as age, sex and calendar time at the case's index date (the controls). Prior medication use is then compared between each case and its controls. Because controls are drawn from people still at risk at that moment, the comparison keeps the time ordering of the cohort, and much of the information in the full cohort is retained at a fraction of the data-extraction effort.
History
The nested case-control design is commonly attributed to Duncan Thomas, whose 1977 addendum on methods of cohort analysis applied the approach to a cohort of asbestos miners and is frequently cited as its origin. The design samples controls from the risk set at each case's event time. With the growth of electronic health records and administrative databases in more recent decades, the design has come into increasing use in pharmacoepidemiology and real-world evidence research. The 'pragmatic' framing emphasises the use of routine care data rather than purpose-collected primary data.
When to use it
Choose this design when the outcome is rare or develops over long periods, when a large routine-data cohort with usable coding of exposure and outcome already exists, and when the question concerns real-world effectiveness or safety under ordinary care. It suits pharmacoepidemiology and vaccine effectiveness questions where randomisation is infeasible. Avoid it when exposure or outcome cannot be validly identified in the routine records, when the base cohort is poorly defined or loses substantial follow-up, or when the question requires causal inference under controlled conditions, in which case a randomised design is preferable. When the outcome is common and full-cohort data extraction is practical, the sampling efficiency gained by a nested design is smaller, and a full cohort analysis may be the simpler choice.
Limitations and considerations
- Unmeasured confounding remains a persistent threat because routine records omit clinically relevant variables such as lifestyle, over-the-counter medication use and disease severity.
- Outcome and exposure ascertainment depends on the completeness and accuracy of coding in the source data.
- Results describe the population contributing to the routine data source and may not transfer to settings with different care patterns.
- The design cannot establish causality on its own, and residual confounding may explain observed associations.
- Risk-set definition and control sampling must be implemented carefully, because errors there bias the odds ratios.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Substantially more efficient than analyzing the full cohort — only cases and a sample of controls require detailed data extraction.
- Temporally anchored control sampling (incidence-density) ensures controls are genuinely at risk at the time of the case event, avoiding the time-related selection bias that arises from naive control choice; confounding and misclassification still need separate attention.
- Leverages large routine-data cohorts, enabling study of rare outcomes that would be impractical in primary-data designs.
- Reflects real-world clinical practice, supporting external validity for effectiveness and safety conclusions.
- Well-suited to multiple exposure questions within the same base cohort (recycles the infrastructure).
Applications
- Vaccine effectiveness studies using national immunization registries linked to hospital admission records.
- Drug safety surveillance: identifying rare adverse events (e.g., acute liver failure, cardiac arrhythmia) associated with specific medications in claims databases.
- Comparative effectiveness research on competing treatment strategies under routine clinical care.
- Occupational epidemiology: evaluating chronic disease risk from occupational exposures recorded in employment registries.
- Health services research examining the association between care delivery patterns and patient outcomes in large hospital networks.
How it works
How it works
A base cohort is assembled from routinely collected sources such as electronic health records, insurance claims, national registries or linked hospital databases. Eligibility criteria, for example age, diagnosis, enrolment period and minimum follow-up, define the population of interest. Because no protocol assigns treatment, exposure patterns reflect ordinary clinical decisions.
Every member of the base cohort who develops the outcome during follow-up is a case. The date of outcome onset is recorded precisely as the index date, since matching and exposure windows are anchored to it.
For each case, controls are drawn at random from the risk set, commonly between 1 and 10 per case. The risk set consists of cohort members who share the matching criteria (such as age, sex, calendar time or disease duration) and have not yet experienced the outcome on the case's index date. Sampling from the risk set at each event time preserves the temporal relationship between exposure and outcome, and a person sampled as a control may later become a case.
Exposure is ascertained retrospectively from the same routine sources for cases and controls, looking only at time windows before each index date so that exposure precedes the outcome. Exposure is typically inferred from coded records such as prescription fills, procedure codes and diagnosis codes rather than from primary data collection.
Conditional logistic regression is the usual analysis because it respects the matched sets. The time scale used to form risk sets (for example time on study, age or calendar time) should be pre-specified and aligned with the matching variables. Under incidence-density sampling the conditional odds ratio estimates the incidence rate ratio, and this interpretation does not require the outcome to be rare. Confounders recorded in the routine data, such as comorbidities, co-medications and sociodemographic factors, can be included in the model. Sensitivity analyses can probe robustness, for example by varying the exposure window length or by using negative-control outcomes. These checks address residual confounding only partially, because variables that the routine data do not capture cannot be adjusted for.
Common pitfalls
- Immortal time bias: exposure must be classified using only information available before the index date. If exposure status is defined using a period after the index date, or requires a person to have remained event-free for a period before becoming exposed, the exposed group is guaranteed to be event-free during that period and the exposure appears protective. Index-date alignment and window definitions must be checked precisely.
- Exposure latency: even when classification is correct, an exposure window that extends up to the index date may capture early effects of the outcome itself (reverse causation), while a window that ends too early may miss a biologically relevant exposure. Window length should be pre-specified and varied in sensitivity analyses.
- Inappropriate matching variables: matching on variables that lie on the causal pathway between exposure and outcome (mediators) introduces overmatching and attenuates the true association.
- Ignoring the matched structure: using unconditional logistic regression instead of conditional logistic regression discards the matched design and can produce biased estimates.
- Exposure misclassification: dispensing records are a proxy for actual medication use, since they do not show whether the patient took the drug. This misclassification is often non-differential, which tends to bias odds ratios toward the null, but it may also be differential, and the direction of bias depends on the sensitivity and specificity of the proxy. A validation study or sensitivity analysis is recommended.
Frequently asked questions
How does a pragmatic nested case-control differ from a standard nested case-control?
The nested case-control design is the same in both cases: cases and matched risk-set controls are sampled from a base cohort. The 'pragmatic' label signals that the base cohort and all exposure and outcome data come from routine healthcare sources (EHRs, claims, registries) rather than a purpose-built study database. This has implications for data quality, confounding control and generalizability, but the core sampling logic is identical.
How many controls per case should I select?
Common practice is to select between 1 and 10 controls per case. Gains in precision diminish as the number of controls per case increases, so a few controls often capture much of the available information. A 1:1 ratio may be acceptable when cases are abundant but retrieving control data is costly. The choice should be guided by a power calculation and the practical cost of retrieving control records.
Can the same person serve as both a case and a control?
Yes. A control selected for one case may later become a case themselves. This is correct behavior under incidence-density sampling and does not introduce bias; it reflects the actual risk-set structure of the cohort.
How should I handle time-varying exposures in routine data?
Define a pre-specified exposure window (e.g., 30–365 days before the index date) and classify exposure based on records within that window. Sensitivity analyses with alternative window lengths are recommended. Avoid using the index date itself as part of the exposure window to prevent bias from reverse causation.
Is propensity score adjustment compatible with the matched design?
Yes. Propensity scores estimated within the base cohort can be used to trim or stratify the analytic sample before applying conditional logistic regression. Trimming addresses lack of overlap in measured covariates; it does not address unmeasured confounding. Full propensity score matching competes with the existing incidence-density matching and should be used cautiously. Including the propensity score as a covariate in the conditional model is one way to retain the matched structure.
Related methods
Sources
Thomas, D. C. (1977). Addendum to: Methods of cohort analysis: Appraisal by application to asbestos mining. Journal of the Royal Statistical Society, Series A, 140(4), 469–491.
Open publication referenceSchneeweiss, S., & Avorn, J. (2005). A review of uses of health care utilization databases for epidemiologic research on therapeutics. Journal of Clinical Epidemiology, 58(4), 323–337.
Open DOI reference