Tallies observations into a multi-way frequency table.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
[SerializableAttribute]
public class TableMultiWay
Visual Basic (Declaration)
<SerializableAttribute> _
Public Class TableMultiWay
Visual C++
[SerializableAttribute]
public ref class TableMultiWay

Remarks

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.

Inheritance Hierarchy

System..::.Object
Imsl.Stat..::.TableMultiWay

See Also