Am 10.04.2026 um 15:27 schrieb Ramki S:
When I run the code in the stata, the results are matching with gretl
only when I specify the robust standard errors. Why is this case?
xtreg ANS FDIENT FDICAP FDIAST FDITUR FDIGDP FDIROTC FDIROFA FDIROS FDIEMP FDICOM FDIWAG
GDPgrowth Size, re
I don't understand where you were specifying the robust
covariance
estimation, in Stata or in gretl? Gretl would not automatically employ
the robust estimates, but I don't know your Stata settings.
Hausman test results are also different.
Hausman test -
Null hypothesis: GLS estimates are consistent
Asymptotic test statistic: Chi-square(13) = 341.943
with p-value = 3.83701e-65
Gretl by default uses a regression-based form of the
Hausman test, in
the spirit of Davidson / MacKinnon. For comparison purposes you could
try the --matrix-diff option.
Stata:
Test of H0: Difference in coefficients not systematic
chi2(13) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= -918.16
Warning: chi2 < 0 ==> model fitted on these data
fails to meet the asymptotic assumptions
of the Hausman test; see suest for a
generalized test.
This is a nice example of the widespread problem of
negative test
statistics. It cannot happen with the auxiliary regression approach.
With sigmamore:
Test of H0: Difference in coefficients not systematic
chi2(13) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= 237.83
Prob > chi2 = 0.0000
And this is also a nice example of my old argument that negative test
statistics typically mean that H0 is wrong. (Shameless plug, but it's
quite old:
https://www.degruyterbrill.com/document/doi/10.1515/jbnst-2008-0407/html)
cheers
sven