Returns the regression coefficients.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public double[] GetCoefficients()
Visual Basic (Declaration)
Public Function GetCoefficients As Double()
Visual C++
public:
array<double>^ GetCoefficients()

Return Value

A double array containing the regression coefficients.

Remarks

If hasIntercept is false its length is equal to the number of variables. If hasIntercept is true then its length is the number of variables plus one and the 0-th entry is the value of the intercept.

Exceptions

ExceptionCondition
Imsl.Math..::.SingularMatrixException is thrown when the regression matrix is singular

See Also