AnovaModel Constructor

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

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

ArgumentNullException

dataFrame is null.

-or-

formula is null.

FormatException

The 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

ArgumentNullException

observationVariable is null.

-or-

factors is null.

InvalidCastException

One 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

ArgumentNullException

dataFrame is null.

-or-

factors is null.

ArgumentOutOfRangeException

dataFrame does not contain a column named dependentVariable.

-or-

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

See Also