Dear all,
I am having trouble understanding why Stata drops constraints when I am conducting a test. I have searched the forum without finding any answers, so I post here. My code is appended below. I was unable to reproduce the error in the preloaded data sets, so I am using one of my own.
The problem is that I am trying to show how to perform a manual RESET test and comparing the result to the ovtest in Stata. The ovtest works fine, but when I use the manual test Stata drops to of the constraints. The test result is still reported but it is only a test of the restriction that the forth polynomial is 0, rather than testing if all polynomials are 0. My theory so far is that it has to do with the size of the coefficients somehow. The coefficients on the polynomials range from -.00009 to -3.02e-15.
Any ideas would be greatly appreciated.
reg faminc he we kl6
estat ovtest
reg faminc he we kl6
predict faminc_hat
gen faminc_hat2 = faminc_hat^2
gen faminc_hat3 = faminc_hat^3
gen faminc_hat4 = faminc_hat^4
reg faminc he we kl6 faminc_hat2 faminc_hat3 faminc_hat4
test faminc_hat2 faminc_hat3 faminc_hat4
I am having trouble understanding why Stata drops constraints when I am conducting a test. I have searched the forum without finding any answers, so I post here. My code is appended below. I was unable to reproduce the error in the preloaded data sets, so I am using one of my own.
The problem is that I am trying to show how to perform a manual RESET test and comparing the result to the ovtest in Stata. The ovtest works fine, but when I use the manual test Stata drops to of the constraints. The test result is still reported but it is only a test of the restriction that the forth polynomial is 0, rather than testing if all polynomials are 0. My theory so far is that it has to do with the size of the coefficients somehow. The coefficients on the polynomials range from -.00009 to -3.02e-15.
Any ideas would be greatly appreciated.
reg faminc he we kl6
estat ovtest
reg faminc he we kl6
predict faminc_hat
gen faminc_hat2 = faminc_hat^2
gen faminc_hat3 = faminc_hat^3
gen faminc_hat4 = faminc_hat^4
reg faminc he we kl6 faminc_hat2 faminc_hat3 faminc_hat4
test faminc_hat2 faminc_hat3 faminc_hat4
Comment