Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems Hausman test sigmamore

    Hello everyone,
    i have a problem implementating the hausman test for an unbalanced panel dataset in STATA.
    i have panel data of 50 countrys over 20 years. Now i want to do the hausman test to devide whether fixed-efects or random efects better fits my data.
    When i do the hausman test by:
    xtreg y x1 x2 x3 , fe
    estimates store fe
    xtregy x1 x2 x3, re
    estimates store re
    hausman fe re
    first i get the error:
    Note: the rank of the differenced variance matrix (4) does not equal the number of coefficients being tested (5); be sure this is what you expect, or there may be problems computing the test. Examine the output of yourestimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale.
    and then :
    (V_b-V_B is not positive definite)

    After reading about this problem in the forum i tried using the hausman fe re, sigmamore approach.
    But now i get the same error
    Note: the rank of the differenced variance matrix (4) does not equal the number of coefficients being tested (5); be sure this is what you expect, or there may be problems computing the test. Examine the output of yourestimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale.


    Are my results of the hausman test still valid after getting just the first error message, but not the second?
    and generally, can i use hausman test if i have an unbalanced panel?
    Thank you very much,
    kind regards Sophia

  • #2
    From what you have posted, I presume that one of your x's is time invariant, i.e., does not vary for each individual. If this is the case, then fixed effects will drop the variable and you will not have the same number of coefficients in the fe model and the re model.

    Comment


    • #3
      hi,i am also facing the same problem,

      Comment


      • #4
        thank you for your answer mr. Souza!
        Is this a problem? or can i still interpret the results of the hausman test to choose between fe and re?
        Thank you very much!

        Comment

        Working...
        X