Click or drag to resize

LogisticRegressionParameterCalcSetRegressionData Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void SetRegressionData(
	DoubleMatrix A,
	IList<bool> obs,
	bool addIntercept
)

Parameters

A  DoubleMatrix
A regression matrix.
obs  IListBoolean
A vector of observations.
addIntercept  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 matrix (in the form of a leading column of ones).
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the number of rows in the regression matrix is not equal to the length of the observation vector.
See Also