- Introduced by
- Farrington, Whitaker, and colleagues (self-controlled case series); Bayesian extension by multiple authors in pharmacovigilance
- Year
- 1995–2006 (core SCCS method 1995; Bayesian extensions throughout 2000s)
- Type
- Observational analytical study design with Bayesian inference
- Family
- Clinical / epidemiology
What does it do?
Bayesian case series is an observational epidemiological method that applies Bayesian inference to the self-controlled case series (SCCS) design.
It uses data on individuals who have experienced an acute outcome, with dates of a transient exposure such as a drug or vaccine. Inference is within individuals, so fixed covariates are implicitly controlled for. By combining prior information with the conditional likelihood of the SCCS, the Bayesian version gives a posterior distribution for the incidence rate ratio in pre-specified risk windows.
The intuition behind the method
Suppose regulators receive a cluster of reports of myocarditis following a new vaccine. A classical analysis would count events in the risk window and compare them with an expected baseline, but it does not formally use prior knowledge about background rates or similar vaccines. A Bayesian case series starts with a prior distribution that encodes this knowledge and updates it with the observed data. The output is a posterior distribution for the incidence rate ratio. It shows how far the data, combined with the prior, move the estimate away from no association, and it reports the remaining uncertainty explicitly rather than as a single significance verdict.
History
The self-controlled case series method was developed in the mid-1990s by Farrington and colleagues for investigating associations between acute outcomes and transient exposures such as vaccines. Whitaker, Farrington, Spiessens and Musonda described its origins, assumptions, limitations and uses in a tutorial in Statistics in Medicine (2006; published online 2005). Bayesian versions have been used in pharmacovigilance, but this page does not attribute them to particular authors.
When to use it
Use Bayesian case series when you have longitudinal records of individuals who experienced an acute outcome, with dates of a transient exposure and of the event, and you want an incidence rate ratio based on within-person comparison. It is most useful when credible prior information exists and you want it stated explicitly, for example in vaccine or drug safety work. Do not use it when time-varying confounders other than those you can model explicitly are likely, such as an illness or a concurrent treatment that changes during observation. Avoid it when events are recurrent and dependent, or when an event itself changes subsequent exposure. A prior adds stability but no new information, so it should not be used to rescue a dataset with very few cases. Spontaneous report databases without denominators are a poor fit.
Limitations and considerations
- The within-person comparison assumes events are independent given exposure; recurrent or dependent events, or an event that changes later exposure, violate this assumption.
- Time-varying confounders, such as a seasonal illness or a concurrent medication started during observation, are not removed by the design.
- With few cases the prior can dominate the posterior, and a weak or mis-specified prior can understate or inflate the signal.
- The estimate depends on complete and unbiased case ascertainment; outcome misclassification or selective reporting of events biases the rate ratio.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- By comparing each person with their own control periods, the design implicitly controls for fixed covariates without measuring them.
- Prior information enters the analysis through an explicit, documented prior rather than informal judgement.
- The posterior distribution gives the full range of plausible rate ratios, so uncertainty is reported directly rather than as a single test result.
- The design uses only cases, so no non-cases need to be sampled or followed.
- With few cases, a reasonable prior can stabilise estimates, although it cannot supply information the data do not contain.
Applications
- Vaccine safety surveillance: estimating incidence rate ratios for adverse events such as febrile seizures, anaphylaxis or myocarditis following vaccination.
- Drug safety signal detection: quantifying temporal associations between a medication and hospitalisation or other serious outcomes in linked individual records such as electronic health records.
- Sequential safety monitoring: updating estimates as linked individual case records accumulate over time.
- Rare disease epidemiology: studying event-exposure associations where randomised trials are impractical and individual-level longitudinal records exist.
- Post-market surveillance of medical devices and biologics, where a risk window can be justified from the mechanism of action.
How it works
How it works
The analyst pre-specifies a biologically plausible risk window (for example days 1–28 after exposure) and a control period in the same individual's observation time, before or after exposure. Each person is compared only with themselves, so fixed covariates such as sex, genetics and socioeconomic status are implicitly controlled for and need not be measured. Time-varying factors are not removed in this way. Age in particular changes over the observation period and must be modelled explicitly (for example with age-group terms) to avoid bias.
A prior distribution is placed on the incidence rate ratio (or on its logarithm). A weakly informative prior centred on no association is a common choice. A more informative prior may be used if earlier studies, pharmacological plausibility or data on a related product support it. The prior and its justification should be documented before the analysis, and results should be compared under at least one alternative prior.
The SCCS likelihood is conditional on each person's total number of events, so only the split of events between risk and control periods carries information about the rate ratio (Whitaker et al., 2006). Only cases contribute to it. The likelihood describes how probable the observed split is for each candidate value of the rate ratio, given the lengths of the periods.
Bayes' theorem combines the prior with the likelihood to give a posterior distribution for the rate ratio. When the posterior has no closed form, it is computed numerically, for example by Markov chain Monte Carlo.
Formula
P(\theta \mid y) \propto P(y \mid \theta)\,P(\theta)
The estimate to report is a summary of the posterior distribution of the rate ratio, such as its median, together with a credible interval (for example a 95% interval). The formula shown is only a crude descriptive contrast of event rates per unit window length. It ignores the conditioning on each person's events and is not the estimator of the method. A credible interval lying wholly above 1 indicates that, given the prior and the data, an elevated rate in the risk window is well supported.
Formula
\widehat{IRR} = \frac{\text{events in risk window / risk window length}}{\text{events in control window / control window length}}A signal may be defined by a decision rule on the posterior, for example that the posterior probability of the rate ratio exceeding a chosen threshold is above a chosen level. The threshold, the probability level and the rule must be fixed in advance and not chosen after inspecting results. This is a different criterion from the credible-interval check above. If the posterior is updated as more cases accrue, the same pre-specified rule should be reapplied.
Common pitfalls
- Ignoring event-dependent exposure: if experiencing the outcome changes whether the patient continues or stops the drug, the case series assumption is violated and the rate ratio is biased.
- Poorly justified risk windows: the window should be set from pharmacological plausibility before outcomes are examined. A window that is too wide dilutes excess events with background events and attenuates the estimate; one that is too narrow misses delayed reactions.
- Relying on a single, strongly informative prior without sensitivity analysis: if the prior pulls the estimate toward 1 and the true excess is moderate, a real signal can be suppressed. Report results under alternative priors.
- Conflating posterior probability with proof of causation: a high posterior probability that the rate ratio exceeds 1 indicates a temporal association within the risk window, not that the exposure causes the outcome.
Frequently asked questions
How is a Bayesian case series different from a standard self-controlled case series?
The standard SCCS uses classical conditional likelihood inference and produces a maximum-likelihood estimate and confidence interval. A Bayesian case series places a prior distribution on the incidence rate ratio and produces a posterior distribution. It formally incorporates prior evidence and yields a credible interval that can be read as a probability statement about the parameter, conditional on the model and prior.
What prior distribution should I use?
A weakly informative prior on the log rate ratio, centred at 0 (IRR = 1), is a reasonable default that lets the data dominate unless they are very sparse. If evidence from similar products or pre-clinical studies exists, a more informative prior can be justified. Either way, document the prior and report results under alternative priors so readers can judge how much the conclusions depend on it.
Can I use this method with spontaneous adverse event reports rather than linked individual records?
Not for incidence rate ratios. Spontaneous reporting systems lack denominator data and are subject to under-reporting and other reporting biases. The method needs individual records with known exposure and event dates. Disproportionality methods are commonly used for spontaneous reports instead.
What sample size is needed?
There is no fixed minimum. When events are very few, the posterior will be wide, and the prior can dominate the conclusion. A prior stabilises estimates but cannot rescue a study that lacks information about the association. Report the influence of the prior alongside the result.
What if the outcome can recur within the same individual?
The basic SCCS model assumes that events are independent, or that the outcome is non-recurrent. If one event changes the probability of another, or alters later exposure, this assumption fails and the rate ratio may be biased. In that situation the basic model should not be applied without further modelling.
Related methods
Sources
Strom, B. L. (Ed.). (2001). Pharmacoepidemiology (3rd ed.). Wiley. [Chapter on case series and signal detection]
Open publication referenceWhitaker, H. J., Farrington, C. P., Spiessens, B., & Musonda, P. (2006). Tutorial in biostatistics: The self-controlled case series method. Statistics in Medicine, 25(10), 1768–1797.
Open DOI reference