Contingency Table Class
Represents a table that cross-tabulates totals from two categorical variables.
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.5
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.5
public class ContingencyTable- Inheritance
- Object → ContingencyTable
Remarks
Use the ContingencyTable class to represent a 2x2 or RxC contingency table and make inferences about the relative frequencies of the tabulated data.
Individual cells are indexed through the indexed Item[Object, Object] property.
Once the Compute() method is called, various properties are available, including the Chi-square value, the coefficient of contingency, and the Cramer V.
Constructors
| Contingency | Constructs a new contingency table object from counts stored in a matrix. |
| Contingency | Constructs a new contingency table for the specified variables. |
| Contingency | Constructs a new contingency table for the specified variables. |
| Contingency | Constructs a new contingency table object from counts stored in a matrix. |
Properties
| Chi | Returns the chi-square value for the contingency table. |
| Coefficient | Returns the coefficient of contingency of the contingency table. |
| Column | Gets the number of columns in the contingency table. |
| Column | Gets the index that contains the categories corresponding to the columns in the contingency table. |
| Cramer | Returns the Cramer V statistic for the contingency table. |
| Item[Int32, Int32] | Gets the cell at the specified position in the contingency table. |
| Item[Object, Object] | Gets the cell for the specified values of the categories in the contingency table. |
| Phi | Returns the Phi coefficient for the contingency table. |
| Row | Gets the number of rows in the contingency table. |
| Row | Gets the index that contains the categories corresponding to the rows in the contingency table. |
| Total | Gets the total of all counts in the contingency table. |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| Get | Returns the Chi-Square test for the contingency table. |
| Get | Gets the probability of Fisher's exact test for the contingency table. |
| Get | Gets the probability of Fisher's exact test for the contingency table. |
| Get | Serves as the default hash function. (Inherited from Object) |
| Get | Returns the likelihood ratio test for the contingency table. |
| Get | Returns the Mantel-Haenszel Chi-Square test for the contingency table. |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| Get | Returns the Yates-corrected Chi-Square test for the contingency table. |
| Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |