Sets the regression matrix, observation vector, and intercept option to the specified values, and recalculates the model parameters.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public void SetRegressionData(
	DataFrame data,
	IDFColumn observations,
	bool addIntercept
)
Visual Basic (Declaration)
Public Sub SetRegressionData ( _
	data As DataFrame, _
	observations As IDFColumn, _
	addIntercept As Boolean _
)
Visual C++
public:
void SetRegressionData(
	DataFrame^ data, 
	IDFColumn^ observations, 
	bool addIntercept
)

Parameters

data
Type: CenterSpace.NMath.Stats..::.DataFrame
Regression data.
observations
Type: CenterSpace.NMath.Stats..::.IDFColumn
Column of observations.
addIntercept
Type: System..::.Boolean
Intercept option. Set to true if you want the model to contain an intercept parameter that is not accounted for in the input regression data (in the form of a leading column of ones).

See Also