Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
com
Chapter 535
Binary Diagnostic
Tests – Single Sample
Introduction
An important task in diagnostic medicine is to measure the accuracy of a diagnostic test. This can be done by
comparing the test result with the true condition status of a number of patients. The results of such a study can be
displayed in a 2-by-2 table in which the true condition is shown as the rows and the diagnostic test result is shown
as the columns.
Data such as this can be analyzed using the standard techniques for two proportions. However, specialized
techniques have been developed for dealing specifically with the questions that arise from such a study. These
techniques are presented in the book by Zhou, Obuchowski, and McClish (2002), and this is the reference that we
have used in developing this procedure.
Test Accuracy
Several measures of a diagnostic test’s accuracy are available. Probably the most popular measures are the test’s
sensitivity and the specificity. Sensitivity is the proportion of those that have the condition for which the
diagnostic test is positive. Specificity is the proportion of those that do not have the condition for which the
diagnostic test is negative. Other accuracy measures that have been proposed are the likelihood ratio and the odds
ratio.
Technical Details
Suppose you arrange the results of a diagnostic test into a 2-by-2 table as follows:
535-1
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Binary Diagnostic Tests – Single Sample
= T1
Se
n1
and the specificity is estimated as
= F0
Sp
n0
Confidence intervals may be formed for these two statistics. Rather than use the common confidence interval for a
proportion that uses the normal approximation to the binomial, we use the more accurate score method of Wilson
(1927). This method has been shown by Agresti and Coull (1998) to have much better coverage probabilities than
either the exact method of inverting the binomial or the simple Wald confidence interval.
The confidence limits for the sensitivity based on the score method are
( )
2
2 Se + z1−α / 2
1 − Se
+ z1−α / 2 ± z
Se 4n1
1− α / 2
2n1 n1
z12−α / 2
1+
n1
and for specificity are
( )
2
2 Sp + z1−α / 2
1 − Sp
+ z1−α / 2 ± z
Sp 4n0
1− α / 2
2n0 n0
z12−α / 2
1+
n0
Likelihood Ratio
The likelihood ratio (LR) statistic may be used as a measure of accuracy of a diagnostic test. This statistic is
calculated both for positive and negative test results as follows
P(Test = Positive|Condition = Present )
LR( + ) =
P(Test = Positive|Condition = Absent )
Se
=
1 − Sp
Se
=
FPR
535-2
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Binary Diagnostic Tests – Single Sample
and
P(Test = Negative|Condition = Present )
LR( − ) =
P(Test = Negative|Condition = Absent )
1 − Se
=
Sp
FPR
=
Sp
where FPR is the false positive rate and FNR is the false negative rate.
Confidence limits for LR(+)are calculated using the skewness adjusted score method of Gart and Nam (1998).
The lower limit is the solution of
( )
2
S (φ , ~
p2 ) µ3 z − 1
2
− − z2 = 0
V 6
and the upper limit is the solution of
( )
2
S (φ , ~
p2 ) µ3 z − 1
2
+ − z2 = 0
V 6
where ~
p2 is the appropriate solution of
Np2 [
~ 2 − φ ( n1 + T1) + F1 + n1 ~
p2 + m1 = 0 ]
and
T1 − n1( ~
p1 )
S (φ , ~
p2 ) = ~
φq1
−1
q~1 q~2
V = φ 2 + ~
( n1) p1 n0( p2 )
~
~
p1 = φ~
p2
q~ = 1 − ~
1 p 1
q~2 = 1 − ~
p2
q~ (q~ − ~ p2 )
p1 ) q~2 (q~2 − ~
µ~3 = v 3/ 2 1 1
−
( n1( ~p1 ))
2
(n0( ~p2 ))
2
−1
q~1 q~2
v= ~ + ~
n1( p1 ) n0( p2 )
535-3
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Binary Diagnostic Tests – Single Sample
Odds Ratio
Another measure of accuracy is the odds ratio which is
Se
1 − Se
o=
1 − Sp
Sp
Formulas for computing confidence limits of the odds ratio are given in the chapter on Two Proportions and they
will not be repeated here.
Data Structure
This procedure does not use data from the database. Instead, you enter the values directly into the panel. The data
are entered in the familiar 2-by-2 table format.
Procedure Options
This section describes the options available in this procedure.
Data Tab
Enter the data values directly on this panel.
Data Values
T1
This is the number of patients that had the condition of interest and responded positively to the diagnostic test.
T0
This is the number of patients that had the condition of interest but responded negatively to the diagnostic test.
535-4
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Binary Diagnostic Tests – Single Sample
F1
This is the number of patients that did not have the condition of interest but responded positively to the diagnostic
test.
F0
This is the number of patients that did not have the condition of interest and responded negatively to the
diagnostic test.
Report Options
Alpha - Confidence Limits
The confidence coefficient to use for the confidence limits of the difference in proportions. 100 x (1 - alpha)%
confidence limits will be calculated. This must be a value between 0 and 0.5.
Decimal - Proportions
The number of digits to the right of the decimal place to display when showing proportions on the reports.
535-5
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
Binary Diagnostic Tests – Single Sample
These reports display the data table that was input along with various proportions that make interpreting the table
easier. Note that the sensitivity and specificity are displayed in the Row Proportions table.
This report displays the sensitivity and specificity with their corresponding confidence limits. Note that for a
perfect diagnostic test, both values would be one. Hence, the higher the values the better.
This report displays LR(+) and LR(-) with their corresponding confidence limits. You would want LR(+) > 1 and
LR(-) < 1, so you should place close attention that the lower limit of LR(+) is greater than one and that the upper
limit of LR(-) is less than one.
Note the LR(+) means LR(Test=Positive). Similarly, LR(-) means LR(Test=Negative).
This report displays estimates of the odds ratio as well as confidence limits for the odds ratio. Because of the
better coverage probabilities of the Fleiss confidence interval, we suggest that you use the second line of the
report.
535-6
© NCSS, LLC. All Rights Reserved.