OneWayAnovaModel Constructor

Definition

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

Overload List

OneWayAnovaModel(IDataFrame, String) Constructs a new OneWayAnovaModel object for the specified data..
OneWayAnovaModel(Vector<Double>, ICategoricalVector) Constructs a new OneWayAnovaModel object for the specified data..
OneWayAnovaModel(IDataFrame, String, String) Constructs a new OneWayAnovaModel object for the specified data..

OneWayAnovaModel(IDataFrame, String)

Constructs a new OneWayAnovaModel object for the specified data..
C#
public OneWayAnovaModel(
	IDataFrame dataFrame,
	string formula
)

Parameters

dataFrame  IDataFrame
A data frame containing the data for the calculation.
formula  String
A formula that specifies the variables in the model.

Exceptions

ArgumentNullException

dataFrame is null.

-or-

formula is null.

FormatException

The formula is not in the correct format.

OneWayAnovaModel(Vector<Double>, ICategoricalVector)

Constructs a new OneWayAnovaModel object for the specified data..
C#
public OneWayAnovaModel(
	Vector<double> observationVariable,
	ICategoricalVector factorVariable
)

Parameters

observationVariable  Vector<Double>
A real vector that represents the dependent variable containing the observations.
factorVariable  ICategoricalVector
A ICategoricalVector that represents the independent variable or factor.

Remarks

Use this constructor to create a OneWayAnovaModel based on data in two statistical variables.

OneWayAnovaModel(IDataFrame, String, String)

Constructs a new OneWayAnovaModel object for the specified data..
C#
public OneWayAnovaModel(
	IDataFrame dataFrame,
	string observationVariableName,
	string factorVariableName
)

Parameters

dataFrame  IDataFrame
A IDataFrame containing the data for the calculation.
observationVariableName  String
A String that specifies the name of the variable in dataFrame that contains the observations.
factorVariableName  String
A String that specifies the name of the variable in dataFrame that contains the factor levels.

Remarks

Use this constructor to create a OneWayAnovaModel based on data in a IDataFrame. The table must contain variables whose name equals observationVariableName and factorVariableName.

The variable named by observationVariableName must be a numerical vector. If the variable named by factorVariableName is not categorical, it is converted to a categorical vector.

See Also