Diagnostic Test 2 by 2 Table

 

Menu location: Analysis_Clinical Epidemiology_Diagnostic Test (2 by 2).

 

This function gives predictive values (post-test likelihood) with change, prevalence (pre-test likelihood), sensitivity, specificity and likelihood ratios with robust confidence intervals (Sackett et al., 1983, 1991; Zhou et al., 2002).

 

The quality of a diagnostic test is often expressed in terms of sensitivity and specificity. Sensitivity is the ability of the test to pick up what it is testing for and specificity is the ability of the test to reject what it is not testing for.

 

    DISEASE
    Present Absent
TEST: +: a (true +ve) b (false +ve)
-: c (false -ve) d (true -ve)

 

Sensitivity = a/(a+c)

Specificity = d/(b+d)

 

+ve predictive value = a/(a+b)

-ve predictive value = d/(d+c)

 

Likelihood ratio of a positive test = [a/(a+c)]/[b/(b+d)]

Likelihood ratio of a negative test = [c/(a+c)]/[d/(b+d)]

 

Likelihood ratios have become useful because they enable one to quantify the effect a particular test result has on the probability of a certain diagnosis or outcome. Using a simplified form of Bayes' theorem:

 

posterior odds = prior odds * likelihood ratio

 

where:

odds = probability/(1-probability)

probability = odds/(odds+1)

 

This function is not truly Bayesian because it does not use any starting/prior probability. Likelihood ratios, however, are provided and these can be used to direct the flow of probabilities in Bayesian analysis. For an excellent account of this approach in medical diagnosis, see Sackett (1991).

 

Another way to summarise diagnostic test performace is via the diagnostic odds ratio:

 

Diagnostic odds ratio = true/false = (a * d)/(b * c)

 

Technical validation

The confidence intervals for the likelihood ratios are constructed using the likelihood-based approach to binomial proportions of Koopman (1984) suggested by Gart and Nam (1988). The confidence intervals for all other statistics are exact binomial confidence intervals constructed using the method of Clopper and Pearson (Newcombe, 1998c).

 

Example

In a hypothetical example of a diagnostic test, serum levels of a biochemical marker of a particular disease were compared with the known diagnosis of the disease. 100 international units of the marker or greater was taken as an arbitrary positive test result:

 

  Disease No Disease
Marker ≥100: 431 30
Marker < 100: 29 116

 

To analyse these data in StatsDirect select Diagnostic Test (2 by 2) from the Clinical Epidemiology section of the Analysis menu. Choose the default a 95% confidence interval. Then enter the above frequencies into the 2 by 2 table on the screen.

 

For this example:

    Disease / Feature:
    Present Absent Totals
Test: Positive: 431 30 461
Negative: 29 116 145
Totals: 460 146 606

 

Including 95% confidence intervals:

 

Prevalence (pre-test likelihood of disease)

0.759076 (0.722988 to 0.792617), 75.91% (72.3% to 79.26%)

 

Predictive value of +ve test (post-test likelihood of disease)

0.934924 (0.908401 to 0.955666), 93.49% (90.84% to 95.57%), {change = 17%}

 

Predictive values of -ve test

(post-test likelihood of no disease)

0.8 (0.725563 to 0.861777), 80% (72.56% to 86.18%), {change = 56%}

(post-test disease likelihood despite -ve test)

0.2 (0.274437 to 0.138223), 20% (27.44% to 13.82%), {change = -56%}

 

Sensitivity (true positive rate)

0.936957 (0.910711 to 0.957376), 93.7% (91.07% to 95.74%)

 

Specificity (true negative rate)

0.794521 (0.719844 to 0.856862), 79.45% (71.98% to 85.69%)

 

Likelihood Ratio

LR (positive test) = 4.559855 (3.364957 to 6.340323)

LR (negative test) = 0.079348 (0.055211 to 0.113307)

 

Diagnostic Odds Ratio

Observed odds ratio = 57.466667

Conditional maximum likelihood estimate = 56.64839 (32.064885 to 103.54465)

 

Here we can say with 95% confidence that marker results of ≥ 100 are at least three (3.365) times more likely to come from patients with disease than those without disease. Also with 95% confidence we can say that marker results of <100 are at most only about one tenth (0.133) as likely to come from patients with disease as from those without disease.

 

confidence intervals