powered by
Test for detecting violation of Gauss-Markov assumptions.
reg_test(y)
reg_test returns an object of class "reg_test". An object of class "reg_test" is a list containing the following components:
reg_test
"reg_test"
Breusch-Pagan statistic
Breusch-Godfrey statistic
Durbin-Watson statistic
Godfrey-Quandt statistic
A numeric vector or an object of class lm.
lm
data(macroKZ) model <- lm(real_gdp~ imp + exp + poil + eurkzt + usdkzt, macroKZ) reg_test(model)
Run the code above in your browser using DataLab