TBinaryTestTable Class

type TBinaryTestTable = class(TPersistent);

Defines binary test table structure.

Defines 2x2 binary test table structure. An important task in diagnostic 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.

Class Diagnostic Test Results --------------- ---------- -------- ------- True condition Positive Negative Total Present(true) T1 T0 N1 Absent (false) F1 F0 N0 Total M1 M0 N

Properties

NameTypeDescription
F0IntegerDefines number of false negative values.
F1IntegerDefines number of false positive values.
M0IntegerReturns second column total (T0+F0).
M1IntegerReturns first column total (T1+F1).
NIntegerReturns table grand total (T1+T0+F1+F0).
N0IntegerReturns second row total (F1+F0).
N1IntegerReturns first row total (T1+T0).
Se1DoubleReturns test sensitivity.
Se2DoubleReturns test sensitivity.
Sp1DoubleReturns specificity.
Sp2DoubleReturns specificity.
T0IntegerDefines number of true negative values.
T1IntegerDefines number of true positive values.

Methods

NameDescription
GetSe1CIReturns TBinaryTestTable.Se1 confidence interval.
GetSe2CIReturns TBinaryTestTable.Se2 confidence interval.
GetSp1CIReturns TBinaryTestTable.Sp1 confidence interval.
GetSp2CIReturns TBinaryTestTable.Sp2 confidence interval.