Open pdeffebach opened 4 years ago
The current show method uses the LR test in favor of the Wald test for those models. However, you should be able to get the Wald test by calling
W, F, p = Econometrics.wald(s)
if !isnan(p)
println(Econometrics.@sprintf("Wald: %.2f ∼ F(%i, %i) ⟹ Pr > F = %.4f", W, Econometrics.params(F)..., p))
end
Let me know if that works in your case. I could consider making it print both the LR test and the Wald test for the default show
or export and document wald
.
Thanks! I didn't realize that wald
was available, thanks!
I think it would be nice to print the F of the first stage, it's so visible in Stata that I (and I'm sure others) would expect to see it.
I could add a line in the default show
of IV to include the First Stage Wald Test...
Is your feature request related to a problem? Please describe. My problem set asked me for the F-test of a first stage of a 2SLS estimator. Unfortunately I can't report it based off of the output from
fit
.Describe the solution you'd like Ideally we should print the F-test.
Additional context Looking at the docs, it looks like we print the F-test for the random effects estimator. I think we just need to report it for the more basic case as well.