ModelTerm.Variables Method

Definition

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

Overload List

Variables(IList<String>, Boolean) Returns a collection of model terms for the columns with the specified keys.
Variables(IDataFrame, String[], Boolean) Returns a collection of model terms for the columns with the specified keys in a data frame.

Variables(IList<String>, Boolean)

Returns a collection of model terms for the columns with the specified keys.
C#
public static ModelTermCollection Variables(
	IList<string> keys,
	bool noIntercept = false
)

Parameters

keys  IList<String>
A list of strings containing the keys of the columns
noIntercept  Boolean  (Optional)
Indicates whether a constant term should be included.

Return Value

ModelTermCollection
A collection of unbound terms with keys in keys.

Variables(IDataFrame, String[], Boolean)

Returns a collection of model terms for the columns with the specified keys in a data frame.
C#
public static ModelTermCollection Variables(
	IDataFrame source,
	string[] keys,
	bool noIntercept = false
)

Parameters

source  IDataFrame
keys  String[]
noIntercept  Boolean  (Optional)
Indicates whether a constant term should be included.

Return Value

ModelTermCollection
A collection of terms corresponding to the columns in source with keys in keys.

See Also