AnovaModel Constructor

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

AnovaModel(IDataFrame, String)

Constructs a new AnovaModel objects.
C#
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

ArgumentNullExceptiondataFrame is null.
-or-
formula is null.
FormatExceptionThe formula is not in the correct format.

AnovaModel(Vector<Double>, ICategoricalVector[])

Constructs a new AnovaModel objects.
C#
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

ArgumentNullExceptionobservationVariable is null.

-or-

factors is null.

InvalidCastExceptionOne of the components of factors is not of type ICategoricalVector.

AnovaModel(IDataFrame, String, String[])

Constructs a new AnovaModel objects.
C#
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

ArgumentNullExceptiondataFrame is null.
-or-
factors is null.
ArgumentOutOfRangeExceptiondataFrame does not contain a column named dependentVariable.

-or-

dataFrame does not contain a variable named by one of the elements of factors.

See Also