explain why sensitivity and specificity must be analysed together, and how the threshold of a test trades one for the other;
move from a pooled sensitivity and specificity to likelihood ratios and post-test probabilities, and explain why predictive values should not be pooled;
assess diagnostic accuracy studies with QUADAS-2, and recognise threshold, spectrum and verification effects as sources of heterogeneity;
fit the bivariate random-effects model, draw the summary ROC curve with its confidence and prediction regions, convert to HSROC parameters, and add a covariate;
explain how GRADE treats diagnostic evidence, and why accuracy alone does not justify a recommendation;
appraise and pool external validations of a prediction model, using CHARMS and PROBAST, and pool C-statistics on the logit scale.
R packages:dplyr, tidyr, purrr, ggplot2, metafor, mada, ellipse, knitr; brms for code shown but not run here.
A review of an intervention asks whether a treatment works, and answers with one effect measure. A review of a diagnostic test asks how well the test separates people who have the target condition from those who do not. That needs two numbers, sensitivity and specificity, which are not independent: every test that produces a measurement must be turned into “positive” or “negative” at some threshold, and moving the threshold trades one for the other. This chapter develops the methods for diagnostic test accuracy (DTA) reviews, using high-sensitivity cardiac troponin (hs-cTn) to rule out acute myocardial infarction (MI) as the running example, and then turns to reviews of prediction models, which raise related problems.
Figure 20.1: Simulated troponin concentrations in 1000 patients with MI and 1000 without (left), and the ROC curve traced by moving the threshold (right). Each marked point is one threshold.
A low threshold detects almost every MI but labels many patients without MI as positive; a high threshold does the reverse. Studies that use different thresholds report different pairs of sensitivity and specificity for the same test. A review that pools sensitivities and specificities separately averages operating points that no study used, and finds “heterogeneity” that is largely the threshold.
20.2 From the 2×2 table to clinical decisions
Each study contributes a 2×2 table of test result against the reference standard: true positives (TP), false negatives (FN), false positives (FP) and true negatives (TN).
Table 20.1: Measures of diagnostic accuracy.
Measure
Formula
Meaning
Sensitivity
TP / (TP + FN)
Probability of a positive test in people with the condition; high sensitivity rules out
Specificity
TN / (TN + FP)
Probability of a negative test in people without it; high specificity rules in
Positive likelihood ratio, LR+
sens / (1 − spec)
Factor by which a positive test multiplies the odds of the condition
Negative likelihood ratio, LR−
(1 − sens) / spec
Factor by which a negative test multiplies the odds
Diagnostic odds ratio, DOR
(TP × TN) / (FP × FN) = LR+ / LR−
A single measure of discrimination
Positive and negative predictive values
TP / (TP + FP), TN / (TN + FN)
Depend on prevalence; not to be pooled across populations
Likelihood ratios link a test result to a patient. On the odds scale, Bayes’ theorem is a multiplication: post-test odds = pre-test odds × LR.
Code
post <- \(p, lr) { o <- p / (1- p) * lr; o / (1+ o) }lr_pos <-0.98/0.25; lr_neg <-0.02/0.75tibble::tibble(`Pre-test probability`=c(0.05, 0.15, 0.40)) |>mutate(`After a positive test`=post(`Pre-test probability`, lr_pos),`After a negative test`=post(`Pre-test probability`, lr_neg),across(everything(), \(x) sprintf("%.1f%%", 100* x))) |>kable(align ="ccc")
Table 20.2: Post-test probabilities for a test with sensitivity 0.98 and specificity 0.75, at three pre-test probabilities.
Pre-test probability
After a positive test
After a negative test
5.0%
17.1%
0.1%
15.0%
40.9%
0.5%
40.0%
72.3%
1.7%
With LR− = 0.027, a negative test lowers a 15% pre-test probability to 0.5%, low enough for a rule-out strategy; with LR+ = 3.9, a positive test raises it only to 41%. A test can be excellent for ruling out and poor for ruling in. Predictive values change with prevalence, so a review should pool sensitivity and specificity (or likelihood ratios) and apply them to the prevalence of the target setting.
20.3 Risk of bias: QUADAS-2
QUADAS-2 assesses diagnostic accuracy studies in four domains, each with signalling questions and a judgement of low, high or unclear risk of bias; the first three also have a judgement of applicability to the review question (1). The domains are not added into a score.
Table 20.3: QUADAS-2 domains.
Domain
Risk-of-bias questions
1. Patient selection
Consecutive or random sample? Case-control design avoided? Inappropriate exclusions avoided?
2. Index test
Interpreted without knowledge of the reference standard? Threshold pre-specified?
3. Reference standard
Likely to classify the target condition correctly? Interpreted without knowledge of the index test?
4. Flow and timing
Appropriate interval between tests? Same reference standard for everyone? All patients analysed?
Two designs are especially misleading. A case-control (“two-gate”) design compares clearly diseased patients with healthy volunteers and exaggerates accuracy (Section 20.5). Partial or differential verification, in which not everyone receives the same reference standard, biases sensitivity and specificity in predictable directions:
Table 20.4: One hypothetical study of 1000 patients (150 with MI; true sensitivity 0.90, specificity 0.80) under three verification schemes. Only 25% of test-negatives receive the full reference standard in the last two.
Both shortcuts inflate sensitivity; partial verification also deflates specificity. When verification depended only on the test result, the bias can be corrected (2).
20.4 The bivariate model
Each study gives two correlated estimates. The bivariate random-effects model treats each study’s logit sensitivity and logit false-positive rate (FPR = 1 − specificity) as drawn from a bivariate normal distribution, with within-study binomial variation (3):
Five parameters: two means (the summary operating point), two between-study SDs and a correlation. A positive correlation between logit sensitivity and logit FPR is the threshold effect: studies with a low threshold have high sensitivity and a high FPR.
To see what the model recovers, we simulate 14 studies of hs-cTn, each with 400 to 2500 emergency department patients and an MI prevalence of 8% to 20%, using thresholds of 3, 5, 7 or 9 ng/L. At 5 ng/L the true sensitivity is 0.97 and the true FPR 0.21; each 1 ng/L increase in threshold lowers logit sensitivity by 0.30 and logit FPR by 0.18; and studies differ randomly beyond that.
The summary point averages studies that used thresholds from 3 to 9 ng/L, a threshold nobody uses. The positive correlation is the threshold effect; the between-study SDs include it.
Figure 20.2: The bivariate model for 14 simulated hs-cTn studies: study estimates (points, coloured by threshold), summary point (diamond), 95% confidence region (shaded), 95% prediction region (dashed) and summary ROC curve (red).
The summary ROC (SROC) curve shows the trade-off between sensitivity and FPR as the threshold changes; its area is 0.93. The confidence region shows how well the average operating point is known; the prediction region, which adds between-study variation, shows where a new study is likely to fall, and is much larger. Studies spread along the curve, ordered by their thresholds.
20.4.2 HSROC parameters
The hierarchical summary ROC (HSROC) model describes the same studies as points on one curve: each study has an accuracy (Λ, the log DOR in the middle of the curve), a threshold or positivity parameter (Θ), and the curve has a shape (β, which allows the DOR to change along the curve) (4). Without covariates, the bivariate and HSROC models are the same model in different parameterisations, and the HSROC parameters are functions of the bivariate ones (5):
Λ = 4.24 corresponds to a DOR of about 69 in the middle of the curve. β = -0.73 is away from 0, so the DOR changes with the threshold, and the SD of accuracy is similar to the SD of threshold: not all of the heterogeneity is threshold variation.
At the summary point, LR− = 0.062, and a negative test lowers a 15% pre-test probability to 1.1%. Safe discharge after a rule-out test usually requires a miss rate below about 1%, so the average operating point is not good enough on its own. But the average is the wrong question: the rule-out decision needs accuracy at the low threshold actually used, which the next section estimates.
In the real evidence, all studies used one rule. A collaborative meta-analysis of 11 cohorts and 9241 patients evaluated a single hs-cTnT below the limit of detection (5 ng/L) combined with a non-ischaemic ECG: 30.6% of patients were classified as low risk, 0.5% of them had an MI, and the pooled sensitivity was 98.7% (95% CI 96.6% to 99.5%) (6). With one threshold there is no threshold effect to model, which is why the simulation is used here to illustrate the bivariate model.
20.5 Heterogeneity in diagnostic accuracy
Three sources of heterogeneity are specific to diagnostic studies.
Threshold variation, already seen. Report the SROC curve, and accuracy at clinically relevant thresholds.
Spectrum. Sensitivity is higher in patients with severe or established disease than in patients with early or mild disease; specificity is higher in healthy volunteers than in symptomatic patients without the disease. A case-control study that enrols both extremes overestimates both. The same assay at the same threshold has different accuracy in a tertiary centre and in an emergency department.
The between-study SD of logit sensitivity falls from 0.83 to 0.54 once the threshold is in the model: much of the heterogeneity was the threshold. At 3 ng/L, sensitivity is about 0.978, which is what a rule-out decision needs. The usual cautions of meta-regression apply (Section 10.1). Comparing two tests is best done with studies that applied both tests to the same patients; comparisons across separate sets of studies are confounded by everything else that differs (7).
20.6 GRADE for diagnostic evidence
GRADE rates the certainty of accuracy estimates with the usual domains (risk of bias judged with QUADAS-2, indirectness, inconsistency, imprecision and publication bias). Cross-sectional accuracy studies of consecutive patients with full verification start at high certainty for accuracy (8). Imprecision is judged against the decision: for rule-out, whether the lower limit of sensitivity still gives an acceptable miss rate.
Accuracy is only the first link of a chain. A test improves outcomes only if its result changes management and the change helps patients. That needs evidence on test-and-treat strategies. In the High-STEACS stepped-wedge cluster trial, ten Scottish hospitals introduced a high-sensitivity troponin I assay in random order (48,282 patients). The assay reclassified 1771 patients as having myocardial injury or infarction, but among them MI or cardiovascular death at one year was not reduced, 15% before and 12% after implementation, adjusted OR 1.10 (95% CI 0.75 to 1.61) (9). More accurate diagnosis does not automatically mean better outcomes; its main value may lie elsewhere, for example in faster safe discharge, which needs its own evaluation.
20.7 Reviews of prediction models
A prediction model estimates an individual’s probability of a diagnosis or a future outcome from several predictors, for example the 10-year risk of a cardiovascular event from age, sex, smoking, blood pressure, cholesterol and diabetes. Reviews of prediction models face their own versions of the problems above.
CHARMS structures data extraction: data source, participants, outcome, predictors, sample size and events, missing data, model development, and performance measures (10).
PROBAST assesses risk of bias in four domains (participants, predictors, outcome, analysis); the analysis domain is the one most often at high risk, through too few events per predictor, no internal validation, or no assessment of calibration (11).
TRIPOD is a reporting guideline for primary studies, not a quality tool; reviews are reported with TRIPOD-SRMA(12).
Performance has two parts. Discrimination, usually the C-statistic (the probability that a randomly chosen person with the outcome has a higher predicted risk than one without), measures ranking. Calibration, measured by the observed-to-expected (O:E) ratio and the calibration slope, measures whether predicted risks are right. A model can discriminate well and still predict risks that are systematically too high, which is what matters for decisions based on absolute risk (13).
Apparent performance, measured in the data used to develop a model, is optimistic. Internal validation (bootstrapping or cross-validation) estimates the optimism; only external validation in new patients shows whether a model transports (14). A meta-analysis of performance should pool external validations of one model and never mix in apparent performance from development studies.
20.7.1 Pooling C-statistics
Nine hypothetical external validations of one cardiovascular risk model report C-statistics in hospital clinics, community practices and primary care. The C-statistic is a bounded probability, so it is pooled on the logit scale, with its standard error converted by the delta method, and with random effects, because performance depends on case-mix and setting (15).
Figure 20.3: Nine simulated external validations of one risk model: C-statistics pooled on the logit scale (REML, Hartung-Knapp), with the 95% prediction interval. Colour: setting.
The pooled C-statistic is 0.74 (95% CI 0.70 to 0.77), adequate on average, but the prediction interval, 0.62 to 0.83, shows that in a new setting the model may discriminate well or barely adequately. Validations in hospitals do better than those in community and primary care, consistent with more heterogeneous case-mix in hospital populations (in these simulated data). Calibration is not shown because, as is common, it was not reported consistently; it usually varies far more between settings than discrimination, and a model should be recalibrated locally before use.
With few validations, τ is poorly estimated, and a Bayesian random-effects model with a weakly informative prior on τ (for example half-Student-t with scale 0.5 on the logit C scale) gives more honest prediction intervals and direct probabilities such as P(C > 0.70 in a new setting) (15):
Sensitivity and specificity are paired and depend on the threshold; analyse them jointly with the bivariate (or equivalent HSROC) model.
Pool sensitivity and specificity, not predictive values; translate them with likelihood ratios to the pre-test probability of the target setting.
Assess studies with QUADAS-2; case-control designs and partial or differential verification bias accuracy.
Report the summary point with its confidence and prediction regions and the SROC curve, and accuracy at the threshold used in practice.
Threshold, spectrum and verification explain much diagnostic heterogeneity; bivariate meta-regression can quantify the threshold effect.
Accuracy does not guarantee better outcomes; recommendations need evidence about test-and-treat strategies.
For prediction models, pool external validations only, on the logit (C-statistic) or log (O:E) scale, with random effects and prediction intervals; calibration matters as much as discrimination.
Exercises
Re-run dta-sim with all 14 studies at 5 ng/L. What happens to the correlation ρ and to the SROC curve?
Pool sensitivity and specificity separately with rma() on the logit scale and compare the result with reitsma().
Using the meta-regression, find the threshold at which the post-test probability after a negative test, at 15% pre-test probability, falls below 1%.
Add setting as a moderator to the C-statistic meta-analysis. How much of τ² does it explain?
Choose a published DTA review and check whether it reports a prediction region, accuracy at a specific threshold, and QUADAS-2 judgements by domain.
Van Calster B, McLernon DJ, Smeden M van, Wynants L, Steyerberg EW. Calibration: The Achilles heel of predictive analytics. BMC Medicine [Internet]. 2019;17:230. Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC6912996/