Constructs a new AnovaModel objects.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Protected Sub New ( _
	variables As VariableCollection, _
	dependentVariable As String, _
	factors As String() _
)
C#
protected AnovaModel (
	VariableCollection variables,
	string dependentVariable,
	string[] factors
)
C++
protected:
AnovaModel (
	VariableCollection^ variables, 
	String^ dependentVariable, 
	array<String^>^ factors
)

Parameters

variables (Extreme.Statistics.VariableCollection)
A VariableCollection that contains the data for this model.
dependentVariable (System.String)
A String that specifies the name of the dependent variable from variables.
factors ()
A String array containing the names of the variables from variables that serve as independent variables.

Remarks

This constructor creates an AnovaModel object using data stored in a VariableCollection.

Exceptions

ExceptionCondition
ArgumentNullExceptionvariables is nullNothingnullptr. -or-factors is nullNothingnullptr.
ArgumentOutOfRangeExceptiontable does not contain a column named dependentVariable.

-or-

table does not contain a column named by one of the elements of independentVariables.