Am 11.07.2021 um 22:52 schrieb Allin Cottrell:
On Sun, 11 Jul 2021, Sven Schreiber wrote:
> - open abdata and estimate something with OLS
> - run hausman
> - execute 'print $test' (which produces NA)
Not having $test available in this case seems a bit lame. In git I've
made $test and $pvalue available as 3-vectors following "hausman". The
three tests are in the order shown in the printout:
I think in principle having these accessors here is good, yes. (This
looks a bit like phasing out the usage of the special accessor $hausman
at least in the panel context, which I'd see as further harmonization, a
good thing IMO.)
1 Wald test for poolability in relation to fixed effects.
2 Breusch-Pagan test for poolability in relation to random effects.
Couldn't these be done as "modtest --poolability" or something?
3 The Hausman test itself.
If this behavior seems OK I can document it. (Maybe there's a case for
just giving the Hausman test result?)
Yes, I tend to think it's better to separate those things. The Hausman
test principle is very general, but Wald or LM tests are different, so
I'd say it gets confusing when those have to be invoked by a "hausman"
command.
The other way around: the Hausman result in the narrow sense could also
be returned as part of a new "modtest --poolability".
thanks
sven