Tabulates the results of applying the given delegate to the values in the specified data
column for every combination of the two specified factors.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public DataFrame Tabulate( int factorAColIndex, int factorBColIndex, int dataColIndex, StatsFunctions..::.IntIDFColumnFunction function ) |
| Visual Basic (Declaration) |
|---|
Public Function Tabulate ( _ factorAColIndex As Integer, _ factorBColIndex As Integer, _ dataColIndex As Integer, _ function As StatsFunctions..::.IntIDFColumnFunction _ ) As DataFrame |
| Visual C++ |
|---|
public: DataFrame^ Tabulate( int factorAColIndex, int factorBColIndex, int dataColIndex, StatsFunctions..::.IntIDFColumnFunction^ function ) |
Parameters
- factorAColIndex
- Type: System..::.Int32
The index of the column for the first grouping factor.
- factorBColIndex
- Type: System..::.Int32
The index of the column for the second grouping factor.
- dataColIndex
- Type: System..::.Int32
The index of the data column.
- function
- Type: CenterSpace.NMath.Stats..::.StatsFunctions..::.IntIDFColumnFunction
A delegate that takes a data frame column and returns an integer.
Return Value
A new data frame.
Remarks
The returned data frame has row keys containing the sorted, unique levels of
the first grouping factor as strings. The columns in the data frame, all instances
of DFIntColumn, are named using the sorted, unique levels of the second grouping
factor. Each cell in the data frame contains the results of applying the given
delegate to the values in the data column tabulated for the appropriate combination of
the two factors.
A final column is appended, named Overall, containing the overall results for each level of the first factor. A final row is appended, with key Overall, containing the overall results for each level of the second factor. The lower right corner cell, accessed by this["Overall","Overall"], contains the results of applying the given delegate to all values in the data column.
In the case where there is no data, the function is called. If an exception is called, however, a missing value will be placed in the cell.
A final column is appended, named Overall, containing the overall results for each level of the first factor. A final row is appended, with key Overall, containing the overall results for each level of the second factor. The lower right corner cell, accessed by this["Overall","Overall"], contains the results of applying the given delegate to all values in the data column.
In the case where there is no data, the function is called. If an exception is called, however, a missing value will be placed in the cell.