 | TwoWayAnovaBase(DataFrame, Int32, Int32, Int32) Constructor |
Constructs a TwoWayAnova instance from data in the given data frame.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic TwoWayAnovaBase(
DataFrame data,
int factorAColIndex,
int factorBColIndex,
int dataColIndex
)
Public Sub New (
data As DataFrame,
factorAColIndex As Integer,
factorBColIndex As Integer,
dataColIndex As Integer
)
public:
TwoWayAnovaBase(
DataFrame^ data,
int factorAColIndex,
int factorBColIndex,
int dataColIndex
)
new :
data : DataFrame *
factorAColIndex : int *
factorBColIndex : int *
dataColIndex : int -> TwoWayAnovaBase
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.
ExceptionsException | 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