Returns the regression coefficients.
A double
array containing the regression coefficients.
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.
Exception Type | Condition |
---|---|
SingularMatrixException | is thrown when the regression matrix is singular |
LinearRegression Class | Imsl.Stat Namespace