The diagnostic odds ratio is undefined when the number of false negatives
or false positives is zero – if both false negatives
and false positives are zero, then the test is perfect, but if only one is, this ratio does not give a usable measure. The typical response to such a scenario is to add 0.5 to all cells in the
contingency table, although this should not be seen as a correction as it introduces a bias to results. It is suggested that the adjustment is made to all contingency tables, even if there are no cells with zero entries. Another solution is to consider 1 -\frac{2}{DOR+1} = \frac{DOR-1}{DOR+1} = \frac{TP \cdot TN - FP \cdot FN}{TP \cdot TN + FP \cdot FN} . This metric is well defined if the test is not constant (all positive or all negative), it ranks the tests in the same order as the diagnostic odds ratio, it is between -1 and 1 and it is positive for tests that are better than chance. == See also ==