- Introduced by
- Joseph, Gyorkos & Coupal; Dendukuri & Joseph (formal Bayesian DTA framework)
- Year
- 1995–2001
- Type
- Bayesian inferential study design
- Family
- Clinical / epidemiology
What does it do?
A Bayesian diagnostic accuracy study estimates how well a medical test separates people who have a condition from those who do not.
It uses Bayesian methods that formally combine prior information with the study data to estimate sensitivity, specificity and related measures. Unlike analyses that rely only on the observed sample, it pairs a likelihood model of the data with prior probability distributions to produce posterior estimates and credible intervals. It is especially relevant when no perfect reference standard exists.
The intuition behind the method
Imagine you are evaluating a new rapid test for tuberculosis. A classical analysis would estimate sensitivity and specificity from your sample alone, which can be unreliable with small samples or when the reference standard is imperfect. A Bayesian approach lets you formally include what is already known, such as results from previous studies or expert opinion, as prior distributions. The analysis then updates those priors with your new data to give posterior distributions for sensitivity and specificity. These distributions express uncertainty directly and can accommodate disease prevalence, imperfect reference tests and dependence between tests. The priors matter most when the data alone cannot separate the unknowns, so their justification has to be reported.
History
Dendukuri & Joseph (2001) extended the Bayesian approach to diagnostic test evaluation to the conditional dependence between multiple tests. They proposed fixed and random effects models and noted that with fewer than four tests the problem is non-identifiable. MCMC software such as BUGS, JAGS and Stan is now widely used to fit these models.
When to use it
Choose a Bayesian diagnostic accuracy study when no perfect reference standard is available and a latent-class model is needed to estimate Se and Sp without one, provided there are enough tests or strong enough priors for the model to be identifiable. It is also suitable when reliable prior information from earlier studies or expert knowledge can meaningfully sharpen estimates, when the sample is small enough that large-sample frequentist intervals are unreliable, or when several potentially dependent tests are compared and the joint model is too complex for classical methods. Do not use it when the team has no access to MCMC software or Bayesian modelling expertise, when a regulatory submission requires frequentist operating characteristics, or when the priors cannot be justified well enough to answer the objection that the results are subjective.
Limitations and considerations
- When the model accounts for conditional dependence between tests, fewer than four tests leave the problem non-identifiable, so posterior distributions remain strongly dependent on the priors even with large sample sizes.
- Prior specification must be justified; poorly chosen or undisclosed priors can drive the conclusions and undermine credibility.
- MCMC implementation is more demanding, both computationally and technically, than classical 2×2 table analysis.
- Regulatory and clinical guideline bodies may expect frequentist operating characteristics, which can limit direct use of Bayesian results in formal submissions.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Formally integrates prior evidence from earlier studies or expert knowledge, which can reduce posterior uncertainty relative to a sample-only analysis when the prior is well justified.
- Latent-class models treat the true disease status as unobserved, so Se and Sp can be estimated without a perfect reference standard, subject to the identifiability conditions noted under limitations.
- Produces credible intervals that support direct probability statements about the true sensitivity or specificity, unlike frequentist confidence intervals.
- Can yield usable interval estimates in small samples or rare-disease settings where large-sample frequentist approximations are unreliable, provided the prior is documented.
- Models conditional dependence between tests explicitly within the likelihood, as in the Dendukuri and Joseph approach, rather than assuming independence.
Applications
- Evaluating rapid diagnostic tests for infectious diseases such as tuberculosis, COVID-19 and malaria when culture or PCR references are imperfect or unavailable, for example in field settings.
- Comparing several serological assays with latent-class models when no gold standard exists.
- Assessing imaging modalities such as MRI, CT or ultrasound for cancer detection in settings with small samples, or where biopsy as a reference standard is ethically constrained.
- Incorporating expert clinical knowledge into Se and Sp estimation for rare conditions where trial enrolment is too small for classical precision.
- Evaluating point-of-care tests in low-resource settings where reference testing is logistically infeasible for all participants. Combining accuracy estimates across several studies is a separate task, covered by the meta-analytic diagnostic accuracy study entry, where Gatsonis & Paliwal describe summary ROC (SROC) methods.
How it works
How it works
Before data collection, prior distributions are specified for the key parameters: sensitivity (Se), specificity (Sp) and disease prevalence. Priors can be informative, based on previous studies or expert opinion, or weakly informative, such as diffuse Beta distributions. The choice of prior must be documented transparently, and a sensitivity analysis across alternative priors should be planned in advance.
The design is set: a cross-sectional enrolment of participants who undergo both the index test and a reference standard, or several imperfect tests when no gold standard exists. Sample size is planned by simulation under the prior rather than with classical power formulas, so that the prior information already in the model is taken into account. A typical procedure is: (1) specify the prior distributions for Se, Sp and prevalence; (2) simulate datasets from the prior over a grid of candidate sample sizes; (3) fit the model to each simulated dataset and compute the expected posterior credible-interval width (or posterior variance) for each sample size; (4) choose the smallest sample size that meets the target precision. Because the result depends on the prior, repeat the calculation under alternative priors.
Participants are tested with the index test and the reference standard or comparator tests. Results are recorded as a contingency table or as individual-level data, capturing true positives, false positives, true negatives and false negatives. When no perfect reference standard is available, a latent-class structure models the unobserved true disease status.
A likelihood, typically multinomial or Bernoulli, is written for the observed pattern of test results as a function of Se, Sp and prevalence. When tests may be conditionally dependent, for example two assays that share a biological pathway, the likelihood models that dependence explicitly instead of assuming independence.
Formula
P(data | Se, Sp, prev)
Markov Chain Monte Carlo (MCMC) sampling, or analytic conjugate updating for simple binomial models, is used to draw samples from the joint posterior distribution P(Se, Sp, prevalence | data). Posterior summaries include the median or mean and a 95% credible interval. State explicitly whether the interval is equal-tailed (2.5th to 97.5th percentiles) or highest posterior density (HPD), because the two can differ for skewed posteriors, and report the choice. Credible intervals are read as probability statements about the parameters.
Formula
P(Se, Sp, prev | data) \propto P(data | Se, Sp, prev) \cdot P(Se, Sp, prev)
Results are reported following the STARD (Standards for Reporting Diagnostic Accuracy) guidelines, supplemented by Bayesian-specific elements: the prior specifications and their justification, MCMC convergence diagnostics, prior-sensitivity analyses showing how conclusions change under alternative priors, and posterior predictive checks of model fit.
Common pitfalls
- Using informative priors without a sensitivity analysis. If conclusions change markedly under alternative defensible priors, the findings are fragile and should be reported as such.
- Ignoring conditional dependence between tests. Assuming independence when two tests may be conditionally dependent, for example because they share a biological pathway, can distort the estimated accuracy. When the degree of correlation is not known precisely, the adjusted analysis carries that uncertainty and typically gives wider interval estimates (Dendukuri & Joseph, 2001).
- Treating posterior credible intervals as classical confidence intervals. They answer different questions and should not be labelled or interpreted interchangeably.
- Failing to check MCMC convergence. Non-converged chains give unreliable posterior summaries, so R-hat statistics and trace plots should always be reported.
Frequently asked questions
What software is used for Bayesian diagnostic accuracy studies?
Commonly used options include JAGS (through the R packages rjags or R2jags), Stan (through RStan or CmdStanR) and the WinBUGS/OpenBUGS suite. Check the documentation of any specialised package for latent-class support before choosing it.
How do I specify a prior for sensitivity and specificity?
Beta distributions are the natural choice because Se and Sp are bounded probabilities. A Beta(alpha, beta) prior can be parameterised using a mean, alpha/(alpha+beta), and an effective sample size, alpha+beta. For example, if a previous study found Se ≈ 0.85 based on 40 observations, Beta(34, 6) encodes that prior. When prior evidence is weak, a Beta(1,1) uniform or Beta(0.5, 0.5) Jeffreys prior is defensible. Compare results under two or three alternative priors as a sensitivity analysis.
When must I use a latent-class model instead of a standard 2×2 table?
Use a latent-class model when there is no perfect reference standard, that is, when the reference test itself has sensitivity or specificity below 1.0. This is common in practice; for example, culture for tuberculosis is sensitive but slow, and expert clinical diagnosis is imperfect. Errors in the reference standard can bias the estimated accuracy of the index test. A Bayesian latent-class model treats true disease status as a latent variable and estimates it alongside Se and Sp. For models that allow conditional dependence between tests, Dendukuri & Joseph report that classical identifiability requires results from at least four tests; with fewer tests, the posterior depends strongly on informative priors.
Is the STARD checklist sufficient for reporting a Bayesian DTA study?
STARD covers the core structure of a diagnostic accuracy study but does not address Bayesian-specific elements. Supplement STARD reporting with: (1) a clear statement of all prior distributions and their sources; (2) MCMC convergence diagnostics such as R-hat, effective sample size and trace plots; (3) prior-sensitivity analyses; and (4) posterior predictive checks. Some journals also request the analysis code and data as supplementary material to enable reproducibility.
How does sample size planning differ from classical diagnostic studies?
Classical DTA sample size formulas target a desired frequentist confidence interval width or a power for testing Se or Sp against a threshold. Bayesian planning instead simulates datasets from the prior, computes the expected posterior credible-interval width or posterior variance for each candidate sample size, and selects the smallest sample size that meets the target. This accounts for the information already in the prior and can give smaller required sample sizes when prior evidence is strong. Because the result depends on the prior, repeat the calculation under alternative priors.
Related methods
Sources
Dendukuri, N., & Joseph, L. (2001). Bayesian approaches to modeling the conditional dependence between multiple diagnostic tests. Biometrics, 57(1), 158–167.
Open DOI referenceGatsonis, C., & Paliwal, P. (2006). Meta-analysis of diagnostic and screening test accuracy evaluations: Methodologic primer. American Journal of Roentgenology, 187(2), 271–281.
Open DOI reference