Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: hausman test for fixed effect logit vs. simple logit


From   "Arne Risa Hole" <[email protected]>
To   [email protected]
Subject   Re: st: hausman test for fixed effect logit vs. simple logit
Date   Tue, 24 Apr 2007 09:57:37 +0100

You can get around this problem by using the -equations(1:1)- option
with -hausman- as indicated by the error message.

Hope this helps.

Arne

On 24/04/07, Kanaka Shetty <[email protected]> wrote:
I had a similar problem a few months ago using Hausman with xtlogit. As I recall, xtlogit was storing the e(b) and e(V) matrices using names like y: x1, y: x2, whereas logit was storing them as simply x1 , x2. The coefficient matrices (and e(V)) matrices had different column names, and appeared to have different variables. To get around this, I extracted the relevant submatrices and constructed my own Hausman statistic, though perhaps someone knows a more elegant way of doing this - perhaps by renaming the columns in the matrices.

Kanaka

RE:
Subject: st: hausman test for fixed effect logit vs. simple logit

I am trying to test whether a fixed effect logit (xtlogit) is a better
fit than simple logit (logit). An error appeared when I did the
hausman test. Could someone help me out? Thank you!

xtlogit y x1 x2 x3, fe i(igrp)
est store panel
logit y x1 x2 x3
hausman panel

. no coefficients in common; specify equations(matchlist)
for problems with different equation names.
r(498);

Yun


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index