| TwoWayAnovaTypeI Constructor |
Constructs a TwoWayAnovaTypeI instance from data in the given data frame.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public TwoWayAnovaTypeI(
DataFrame data,
int factorAColIndex,
int factorBColIndex,
int dataColIndex,
bool fullIncrementalSumOfSquares = true
)
Public Sub New (
data As DataFrame,
factorAColIndex As Integer,
factorBColIndex As Integer,
dataColIndex As Integer,
Optional fullIncrementalSumOfSquares As Boolean = true
)
public:
TwoWayAnovaTypeI(
DataFrame^ data,
int factorAColIndex,
int factorBColIndex,
int dataColIndex,
bool fullIncrementalSumOfSquares = true
)
new :
data : DataFrame *
factorAColIndex : int *
factorBColIndex : int *
dataColIndex : int *
?fullIncrementalSumOfSquares : bool
(* Defaults:
let _fullIncrementalSumOfSquares = defaultArg fullIncrementalSumOfSquares true
*)
-> TwoWayAnovaTypeI
Parameters
- data DataFrame
- A data frame.
- factorAColIndex Int32
- The index of the column for Factor A.
- factorBColIndex Int32
- The index of the column for Factor B.
- dataColIndex Int32
- The index of the data column. The indicated column
must be numeric and cannot contain missing values.
- fullIncrementalSumOfSquares Boolean (Optional)
- If true sums of squares
will be computed for each regression parameter. If false sums of
squares will be computed only for each regression factor. So, if factor
A has m levels and factor B has n levels and fullIncrementalSumOfSquares
is true (m - 1) + (n - 1) + (m - 1)*(n - 1) sums of squares will be
computed - one for each dummy regression parameter. if fullIncrementalSumOfSquares
is false, only 3 sums of squares will be computed - one for factor A,
one for factor B, and one for the interaction.
Exceptions Exception | Condition |
---|
InvalidArgumentException |
Thrown if the data column contains missing values (NaNs) or the data cannot
be converted into numeric values.
|
Remarks
Factors are constructed from the factor columns using the DataFrame method
GetFactor(), which creates a sorted array of the unique values.
See Also