Linear Regression Model.Get Breusch Godfrey Test Method
Gets the Breusch-Godfrey test for serial correlation
in the residuals of the regression model.
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A hypothesis test with the null hypothesis that there is no autocorrelation between the residuals.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public SimpleHypothesisTest GetBreuschGodfreyTest(
int order
)
Parameters
- order Int32
- The highest auto-regressive order to include in the test. Must be at least 1.
Return Value
SimpleHypothesisTestA hypothesis test with the null hypothesis that there is no autocorrelation between the residuals.
Exceptions
Argument | order is less than 1. |
Argument | order is greater than or equal to the number of observations. |
Invalid | The model has not been fitted. |