SimpleRegressionModel Constructor

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

SimpleRegressionModel(Vector<Double>, Vector<Double>)

Constructs a new SimpleRegressionModel.
C#
public SimpleRegressionModel(
	Vector<double> dependentVariable,
	Vector<double> independentVariable
)

Parameters

dependentVariable  Vector<Double>
A vector that specifies the dependent variable.
independentVariable  Vector<Double>
A vector that specifies the independent variable.

SimpleRegressionModel(IDataFrame, String, String)

Constructs a new SimpleRegressionModel.
C#
public SimpleRegressionModel(
	IDataFrame dataFrame,
	string dependentVariable,
	string independentVariable
)

Parameters

dataFrame  IDataFrame
A data frame containing the data for the regression.
dependentVariable  String
The name of the dependent variable.
independentVariable  String
The name of the independent variable.

SimpleRegressionModel(Vector<Double>, Vector<Double>, SimpleRegressionKind)

Constructs a new SimpleRegressionModel.
C#
public SimpleRegressionModel(
	Vector<double> dependentVariable,
	Vector<double> independentVariable,
	SimpleRegressionKind kind
)

Parameters

dependentVariable  Vector<Double>
A vector that specifies the dependent variable.
independentVariable  Vector<Double>
A vector that specifies the independent variable.
kind  SimpleRegressionKind
A SimpleRegressionKind value that specifies the kind of regression curve.

SimpleRegressionModel(IDataFrame, String, String, SimpleRegressionKind)

Constructs a new SimpleRegressionModel.
C#
public SimpleRegressionModel(
	IDataFrame dataFrame,
	string dependentVariable,
	string independentVariable,
	SimpleRegressionKind kind
)

Parameters

dataFrame  IDataFrame
A data frame containing the data for the regression.
dependentVariable  String
The name of the dependent variable.
independentVariable  String
The name of the independent variable.
kind  SimpleRegressionKind
A SimpleRegressionKind value that specifies the kind of regression curve.

SimpleRegressionModel(Vector<Double>, Vector<Double>, Vector<Double>, SimpleRegressionKind, Boolean)

Constructs a new LinearRegressionModel.
C#
public SimpleRegressionModel(
	Vector<double> dependentVariable,
	Vector<double> independentVariable,
	Vector<double> weightVariable = null,
	SimpleRegressionKind kind = SimpleRegressionKind.Linear,
	bool noIntercept = false
)

Parameters

dependentVariable  Vector<Double>
The name of the dependent variable.
independentVariable  Vector<Double>
An array containing the names of the independent variables.
weightVariable  Vector<Double>  (Optional)
The name of the variable that contains the case weights. May be null.
kind  SimpleRegressionKind  (Optional)
A SimpleRegressionKind value that specifies the kind of regression curve.
noIntercept  Boolean  (Optional)
Indicates whether a constant term should be excluded from the model. The default is false.

SimpleRegressionModel(IDataFrame, String, String, String, SimpleRegressionKind, Boolean)

Constructs a new LinearRegressionModel.
C#
public SimpleRegressionModel(
	IDataFrame dataFrame,
	string dependentVariable,
	string independentVariable,
	string weightVariable = null,
	SimpleRegressionKind kind = SimpleRegressionKind.Linear,
	bool noIntercept = false
)

Parameters

dataFrame  IDataFrame
A IDataFrame containing the data for the regression.
dependentVariable  String
The name of the dependent variable.
independentVariable  String
An array containing the names of the independent variables.
weightVariable  String  (Optional)
The name of the variable that contains the case weights. May be null.
kind  SimpleRegressionKind  (Optional)
A SimpleRegressionKind value that specifies the kind of regression curve.
noIntercept  Boolean  (Optional)
Indicates whether a constant term should be excluded from the model. The default is false.

See Also