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
| Name | Type | Description |
|---|---|---|
| F0 | Integer | Defines number of false negative values. |
| F1 | Integer | Defines number of false positive values. |
| M0 | Integer | Returns second column total (T0+F0). |
| M1 | Integer | Returns first column total (T1+F1). |
| N | Integer | Returns table grand total (T1+T0+F1+F0). |
| N0 | Integer | Returns second row total (F1+F0). |
| N1 | Integer | Returns first row total (T1+T0). |
| Se1 | Double | Returns test sensitivity. |
| Se2 | Double | Returns test sensitivity. |
| Sp1 | Double | Returns specificity. |
| Sp2 | Double | Returns specificity. |
| T0 | Integer | Defines number of true negative values. |
| T1 | Integer | Defines number of true positive values. |
Methods
| Name | Description |
|---|---|
| GetSe1CI | Returns TBinaryTestTable.Se1 confidence interval. |
| GetSe2CI | Returns TBinaryTestTable.Se2 confidence interval. |
| GetSp1CI | Returns TBinaryTestTable.Sp1 confidence interval. |
| GetSp2CI | Returns TBinaryTestTable.Sp2 confidence interval. |