TBinaryTestTable Class

Header: Dew.Stats/StatTools.h · Cross-compiler
tObjectTBinaryTestTable

class TBinaryTestTable : public tObject;

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
F0intDefines number of false negative values.
F1intDefines number of false positive values.
M0intReturns second column total (T0+F0).
M1intReturns first column total (T1+F1).
NintReturns table grand total (T1+T0+F1+F0).
N0intReturns second row total (F1+F0).
N1intReturns first row total (T1+T0).
Se1doubleReturns test sensitivity.
Se2doubleReturns test sensitivity.
Sp1doubleReturns specificity.
Sp2doubleReturns specificity.
T0intDefines number of true negative values.
T1intDefines number of true positive values.

Methods

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

Fields

NameTypeDescription
FAlphadouble
FPairedbool