- Introduced by
- Nested case-control: D. C. Thomas (1977); Bayesian extension: various authors in biostatistics
- Year
- 1977 (nested case-control); Bayesian adaptation developed through 1990s–2010s
- Type
- Observational analytical study design with Bayesian inference
- Family
- Clinical / epidemiology
What does it do?
A Bayesian nested case-control study samples cases and a small number of matched controls from a defined prospective cohort, then estimates exposure-outcome associations within a Bayesian framework.
Cases are cohort members who develop the outcome of interest; controls are drawn from the individuals still at risk when each case occurs. Because prior information enters the analysis formally, the result is a posterior distribution for each effect rather than only a point estimate and confidence interval.
The intuition behind the method
Consider a large occupational cohort followed for cancer incidence over twenty years. Measuring a costly biomarker in every participant's stored sample may be impractical. A nested case-control design measures the exposure only in the cases and in a small number of controls drawn from those still at risk at each case's diagnosis date, which reduces laboratory costs while retaining much of the statistical efficiency of the full cohort. The Bayesian layer then allows findings from earlier, smaller studies to be incorporated as prior information. This shrinks estimates toward plausible values and gives explicit uncertainty statements when the number of sampled cases is modest.
History
Risk-set sampling within a cohort, as an economical alternative to analysing the full cohort, is associated with D. C. Thomas (1977), in an addendum to a paper on methods of cohort analysis. Bayesian methods were later applied to case-control analysis, with work in the 1990s on incorporating prior information. Combining risk-set sampling with full Bayesian posterior estimation by MCMC became practical as general-purpose software matured, including WinBUGS in the 1990s and Stan from 2012. The combined approach is used in pharmacoepidemiology, occupational epidemiology, and genomic association studies within biobanks.
When to use it
Use a Bayesian nested case-control when (1) a well-characterised prospective cohort with stored specimens or recorded exposures already exists, (2) measuring the exposure in the full cohort is too costly or impractical, for example because of expensive laboratory assays, (3) prior evidence about the exposure-outcome association exists and you want it formally included, and (4) the outcome is rare enough that a full cohort analysis would need very large samples. The design is most useful when sampled numbers are modest and borrowing information from earlier studies would otherwise be ignored. Do not use it when no suitable cohort exists (a traditional case-control or prospective cohort study is then more appropriate), when the outcome is common enough that the efficiency gain of sampling is small, when no meaningful prior information is available and the Bayesian machinery adds complexity without benefit, or when the context requires frequentist inference only.
Limitations and considerations
- Requires an existing, well-maintained cohort with complete follow-up data, which is a substantial infrastructure prerequisite.
- Prior specification is subjective; poorly chosen priors can bias results, and the sensitivity analyses needed to show this add reporting burden.
- MCMC estimation is computationally intensive and requires statistical expertise to implement, diagnose, and interpret.
- Only the subset of cohort members in the sampled sets contributes exposure data; if exposure measurement is affordable for the full cohort, a full cohort analysis is more efficient.
- Valid inference assumes that controls are sampled by incidence density from the risk set at each case's index date, that censoring and loss to follow-up are non-informative, that the exposure-outcome association is not confounded by unmeasured factors, and that the time scale used for matching is correctly specified.
- The conditional logistic odds ratio approximates the hazard ratio only when the outcome is rare. When the outcome is common, a Cox partial likelihood estimates the hazard ratio directly.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Retains the temporal and population advantages of the parent cohort while greatly reducing the cost of exposure assessment in cases and sampled controls.
- Risk-set sampling draws controls from the same population and time frame as cases, which limits selection bias.
- Bayesian estimation yields full posterior distributions, allowing direct probability statements and an explicit way to incorporate prior knowledge.
- Prior information from earlier studies can improve precision when the sampled cases are few, without requiring a new large study.
- Priors act as regularisation, which can stabilise estimates when the data are sparse, where conditional logistic regression alone may give unstable results.
Applications
- Pharmacoepidemiological studies of rare drug-adverse event associations using health insurance or electronic medical record cohorts.
- Occupational cohort studies in which costly biomarker assays, such as serum dioxin or cumulative dust exposure, are measured only in sampled cases and controls.
- Genomic epidemiology within biobanks, where genotyping every cohort member is costly and prior genome-wide association results can inform priors on effect sizes.
- Vaccine safety surveillance using linked health administrative databases, with prior immunisation studies informing the priors.
- Cancer aetiology studies using stored biological specimens from long-running prospective cohorts such as EPIC or the Nurses' Health Study.
How it works
How it works
Begin with a prospectively followed cohort that has documented follow-up times and either stored specimens or recorded exposures. The cohort supplies the sampling frame, so cases and controls come from the same underlying population. This avoids some of the selection problems that arise when cases and controls are recruited from separate sources.
Identify all incident cases of the outcome that occur during follow-up. The date of diagnosis or event defines the index date for each case's control set. Only incident cases are eligible; prevalent cases at baseline are excluded to reduce the risk of reverse causation.
For each case, sample a fixed number of controls, commonly 1 to 10, from the risk set: all cohort members who are free of the outcome and under observation at the case's index date. Risk-set sampling is the defining feature of the nested case-control design, because controls must be at risk of becoming a case at the moment the case occurs. Matching on time in study, birth year, or other factors is common.
Specify prior distributions for the parameters of interest, typically the log odds ratio or log hazard ratio for the exposure-outcome association, using earlier studies, meta-analyses, or subject-matter expertise. Weakly informative priors, such as normal distributions centred on the null, are appropriate when prior evidence is limited. More concentrated priors are justified only when earlier data are strong and relevant to the present population and exposure.
Combine the likelihood, which must respect the matched risk-set structure (for example a conditional logistic or Cox partial likelihood), with the prior distributions using Bayes' theorem. Markov chain Monte Carlo (MCMC) methods such as Hamiltonian Monte Carlo in Stan or Gibbs sampling in BUGS or JAGS are used to draw samples from the joint posterior. Whether a given package accepts a conditional likelihood for matched sets should be checked in its documentation before the model is built.
Summarise the posterior with credible intervals, which are the Bayesian analogue of confidence intervals, together with posterior probabilities of harm or benefit and sensitivity analyses that vary the prior. Report the number of cases, controls per case, matching variables, prior specifications, and convergence diagnostics. A credible interval is interpreted directly as a probability statement about the parameter, given the data and the priors.
Common pitfalls
- Inappropriate control sampling: selecting controls from outside the risk set, for example sampling all controls at the end of follow-up, breaks the nested case-control logic and introduces time-related bias. Controls should always be sampled from the risk set at the index date.
- Informative priors without sensitivity analysis: misspecified strong priors can dominate the likelihood and produce misleading posteriors. Run the analysis under alternative prior assumptions and report the results.
- Ignoring the matched structure: using standard unmatched logistic regression instead of a conditional likelihood discards the efficiency gained from matching and can bias estimates and misstate their variance.
- Convergence failures in MCMC: accepting results without inspecting trace plots, R-hat values, and effective sample sizes can present non-converged chains as the true posterior.
- Confusing credible and confidence intervals: a Bayesian credible interval gives the probability that the parameter lies in the range, given the data and priors. This differs from the frequentist meaning of a confidence interval, and the distinction should be stated in reporting.
Frequently asked questions
How does a nested case-control differ from a standard case-control study?
In a standard case-control study, cases and controls are often recruited from different sources, which creates a risk of selection bias. In a nested case-control, both cases and controls are drawn from the same defined prospective cohort, so they share the same underlying population and follow-up structure. Where exposure data were collected before the outcome occurred, the design avoids the recall bias affecting retrospective interviews, although it does not remove measurement error or confounding.
How many controls per case should I sample?
One to ten controls per case is the conventional range. Efficiency gains from adding controls diminish as their number grows, and the best number depends on the relative cost of measuring cases and controls: when exposure measurement is expensive, fewer controls are preferable, while more controls may be worthwhile when they are cheap to measure. When cases are few, additional controls can help, but the gain is limited. Check the sample size for your design before committing to a number.
What prior distribution should I use for the odds ratio?
A weakly informative normal prior centred on the null is a common starting point, as it discourages implausibly large effects while leaving the data to dominate. The prior scale must match the units of the exposure. A scale such as 2.5 is usually applied to standardised predictors and is not a general default for an unstandardised exposure. For an unstandardised exposure, choose the scale so that the prior covers a plausible range of log odds ratios for that exposure. If a meta-analysis of earlier studies exists, its pooled estimate and standard error can be used to parameterise an informative prior. Run a sensitivity analysis comparing results under different priors, and report both if the conclusions change.
Do I need to account for matching in the Bayesian analysis?
Yes. The matching introduced by risk-set sampling should be reflected in the likelihood, usually through conditional logistic regression or the Cox partial likelihood. Standard logistic regression that ignores the matched sets can bias estimates and understate variance. Confirm that the software you use supports a conditional likelihood for matched sets before building the model.
Is Bayesian nested case-control accepted in regulatory submissions?
Acceptance depends on the regulatory body, the question, and the context. Bayesian analyses generally require pre-specified priors and comprehensive sensitivity analyses. Check current agency expectations before using the design in a submission. If only frequentist results are accepted, the same data can be analysed as a classical nested case-control, with the Bayesian layer omitted.
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 referenceWakefield, J. (2007). Disease mapping and spatial regression with count data. Biostatistics, 8(2), 158–183.
Open DOI reference