Constructs a new CategoricalVariable object.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ name As String, _ dataArray As ICollection _ ) |
| C# |
|---|
public CategoricalVariable ( string name, ICollection dataArray ) |
| C++ |
|---|
public: CategoricalVariable ( String^ name, ICollection^ dataArray ) |
Parameters
- name (System.String)
- A String containing a name for the variable.
- dataArray (System.Collections.ICollection)
- An Object array containing the data values.
Remarks
Use this constructor to create a named CategoricalVariable using data stored in
any object that implements the ICollection interface, such as arrays,
ArrayList, or Hashtable.
The name of the variable is used to refer to the variable when it is part of a VariableCollection. It is also serves to identify the factor in an AnovaTable and for naming the parameters of a regression analysis.