Tallies observations into a multi-way frequency table.
For a list of all members of this type, see TableMultiWay Members.
System.Object
Imsl.Stat.TableMultiWay
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
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 table
contains the corresponding frequency.
Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll)
TableMultiWay Members | Imsl.Stat Namespace | Example 1 | Example 2 | Example 3