Skip to content
Prev 82006 / 398503 Next

masked from package:base?

On Friday 02 December 2005 09:00, you wrote:
The object "h" is not numeric, but a list:
R> class(h)
[1] "hausman.systemfit"
R> names(h)
[1] "q"    "qVar" "m"    "df"   "pval"

You probably want this:
R> pval <- 1 - pchisq( h$m, dim( fit3sls$bcov )[1] )

Or you can just type
R> h
2.53565 (P-value: 0.924389)

This is documented in the systemfit manual, please type
R> ?hausman.systemfit

Best wishes,
Arne