Anova Model Constructor
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Anova | Constructs a new AnovaModel objects. |
Anova | Constructs a new AnovaModel objects. |
Anova | Constructs a new AnovaModel objects. |
AnovaModel(IDataFrame, String)
protected AnovaModel(
IDataFrame dataFrame,
string formula
)
Parameters
- dataFrame IDataFrame
- A IDataFrame that contains the data for this model.
- formula String
- A formula that specifies the variables in the model.
Remarks
This constructor creates an AnovaModel object using data stored in an IDataFrame. The variables in the model are derived from an R-style formula.
Exceptions
Argument | dataFrame is null. -or- formula is null. |
Format | The formula is not in the correct format. |
AnovaModel(Vector<Double>, ICategoricalVector[])
protected AnovaModel(
Vector<double> observationVariable,
ICategoricalVector[] factors
)
Parameters
- observationVariable Vector<Double>
- A vector that specifies the dependent variable.
- factors ICategoricalVector[]
- An array of ICategoricalVector objects containing the independent or factor variables.
Remarks
All independent variables must be of type ICategoricalVector.
Exceptions
Argument | observationVariable is null. -or- factors is null. |
Invalid | One of the components of factors is not of type ICategoricalVector. |
AnovaModel(IDataFrame, String, String[])
protected AnovaModel(
IDataFrame dataFrame,
string dependentVariable,
string[] factors
)
Parameters
- dataFrame IDataFrame
- A IDataFrame that contains the data for this model.
- dependentVariable String
- A String that specifies the name of the dependent variable from dataFrame.
- factors String[]
- An array containing the names of the variables from dataFrame that serve as independent variables.
Remarks
This constructor creates an AnovaModel object using data stored in an IDataFrame.
Exceptions
Argument | dataFrame is null. -or- factors is null. |
Argument | dataFrame does not contain a column named dependentVariable. -or- dataFrame does not contain a variable named by one of the elements of factors. |