type TMtxBinaryTest = class(TMtxComponent);
Performs one and two test paired or unpaired binary test.
The component supports the following types of binary diagonstic tests:
- One-sample test where the results can be arranged in single 2x2 table,
- two-sample test where the results can be arranged in two 2x2 tables,
- two-sample paired test where the results can be combined and arranged in single 2x2 table.
How to use TMtxBinaryTest component?
- Drop a TMtxBinaryTest component on the form.
- Set TMtxBinaryTest.Paired to true if you're performing paired binary diagnostic test, otherwise set it to false.
- Define the Sensitivity and Specificity confidence level by setting the TMtxBinaryTest.CIAlpha property.
- Define binary test type (one, two test) by setting TMtxBinaryTest.TestType property.
- Define binary diagnostic test values by setting TMtxBinaryTest.Test1Table and (only if you use two-sample test) TMtxBinaryTest.Test2Table table values. See TBinaryTestTable class for more details.
Results:
Depending on test type, component returns the following results: 1. One-test : The TMtxBinaryTest.Test1Table returns test row totals, column totals, sensitivity and its CIAlpha confidence interval, specificity and it's CIAlpha confidence interval. 2. Two-test unpaired: The TMtxBinaryTest.Test1Table returns first test row and column totals, first test sensitivity and specificity, the TMtxBinaryTest.Test2Table returns second test row and column totals, second test sensitivity and specificity. 3. Two-test paired : The TMtxBinaryTest.Test1Table returns first and second test sensitivity i.e TBinaryTestTable.Se1 and TBinaryTestTable.Se2 and their CIAlpha confidence intervals.
Properties
| Name | Type | Description |
|---|---|---|
| AutoUpdate | Boolean | If true, any change will trigger the recalculation. |
| BlockAssign | Boolean | Block streaming of specific properties when storing only a "template". |
| CIAlpha | Double | Defines Se and SP desired confidence level. |
| Dirty | Boolean | When any of the TMtxBinaryTest properties changes, this property is automatically set to true. |
| EditorActive | Boolean | Returns True, if the component editor is displayed. |
| Paired | Boolean | If true then the table is paired. |
| Reference | TReferenceList | Stores a list of components that have to be notified, when this component is destroyed. |
| Test1Table | TBinaryTestTable | First test table. |
| Test2Table | TBinaryTestTable | Second test (optional) table. |
| TestType | TBinaryTestType | TBinaryTestType type. |
Methods
| Name | Description |
|---|---|
| AllowStreaming | Returns the negatated value of BlockAssign. |
| Assign | Assign values of all published properties from Source. |
| AssignTemplate | Assign values of "template-like" published properties from Source. |
| EditorClass | To be overriden in descendanr classses. |
| LoadFromStream | Load the component from Src stream. |
| LoadTemplateFromFile | Load a template from file. |
| LoadTemplateFromStream | Load a template from stream. |
| Recalc | Recalculates test resutlts. |
| Reset | Reset is called after loading the data from stream or file. |
| SaveTemplateToFile | Save template to file. |
| SaveTemplateToStream | Save template to stream. |
| SaveToStream | Save the component to Dst stream. |