TableMultiWay Class |
Namespace: Imsl.Stat
The TableMultiWay type exposes the following members.
Name | Description | |
---|---|---|
TableMultiWay(Double, Int32) |
Constructor for TableMultiWay.
| |
TableMultiWay(Double, Int32) |
Constructor for TableMultiWay.
|
Name | Description | |
---|---|---|
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.) | |
GetGroups |
Returns the number of observations (rows) in each group.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetFrequencies |
Sets the frequencies for each observation in x.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
BalancedTable |
An object containing the balanced table.
| |
UnbalancedTable |
An object containing the unbalanced table.
|
The TableMultiWay class determines the distinct values in multivariate data and computes frequencies for the data. This class accepts the data in the matrix x, but performs computations only for the variables (columns) in the first nkeys columns of x or by the variables specified in indkeys. In general, the variables for which frequencies should be computed are discrete; they should take on a relatively small number of different values. Variables that are continuous can be grouped first. TableMultiWay can be used to group variables and determine the frequencies of groups.
The read-only property BalancedTable returns a TableBalanced object. Its GetValues method returns an array with the unique values in the vector of the variables and tallies the number of unique values of each variable table. Each combination of one value from each variable forms a cell in a multi-way table. The frequencies of these cells are entered in a table so that the first variable cycles through its values exactly once, and the last variable cycles through its values most rapidly. Some cells cannot correspond to any observations in the data; in other words, "missing cells" are included in table and have a value of 0.
The read-only property UnbalancedTable returns a TableUnbalanced object. The frequency of each cell is entered in the unbalanced table so that the first variable cycles through its values exactly once and the last variable cycles through its values most rapidly. table is returned by UnbalancedTable property. All cells have a frequency of at least 1, i.e., there is no "missing cell." The array listCells, returned by method GetListCells can be considered "parallel" to table because row i of listCells is the set of nkeys values that describes the cell for which row i of tablecontains the corresponding frequency.