Constructs a TwoWayAnova instance from data in the given data frame.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public TwoWayAnova( DataFrame data, int factorAColIndex, int factorBColIndex, int dataColIndex ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ data As DataFrame, _ factorAColIndex As Integer, _ factorBColIndex As Integer, _ dataColIndex As Integer _ ) |
| Visual C++ |
|---|
public: TwoWayAnova( DataFrame^ data, int factorAColIndex, int factorBColIndex, int dataColIndex ) |
Parameters
- data
- Type: CenterSpace.NMath.Stats..::.DataFrame
A data frame.
- factorAColIndex
- Type: System..::.Int32
The index of the column for Factor A.
- factorBColIndex
- Type: System..::.Int32
The index of the column for Factor B.
- dataColIndex
- Type: System..::.Int32
The index of the data column. The indicated column must be numeric and cannot contain missing values.
Remarks
Factors are constructed from the factor columns using the DataFrame method
GetFactor(), which creates a sorted array of the unique values.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the data column contains missing values (NaNs) or the data cannot be converted into numeric values. |