IMSL C# Numerical Library

UserBasisRegression.GetCoefficients Method 

Returns the regression coefficients.

public 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

Exception TypeCondition
SingularMatrixException is thrown when the regression matrix is singular

See Also

UserBasisRegression Class | Imsl.Stat Namespace