Dear Listers,

I'm currently working with an unbalanced panel of 9000 individuals over a 10 years period.

Whenever I run my hausman test, I get the following error message:

Note: the rank of the differenced variance matrix (11) does not equal the number of coefficients being tested (12); be sure this is what you expect, or there may be problems computing the test. Examine the output of your estimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale.
I've tried to look for a clear explanation of what it means, so I can address it. Sadly, most of what comes up highlights error in code (random before fixed) rather than what is probably, in my case, a misunderstanding of econometrics. Then again, maybe my google-fu is too weak.

Here's my code:

Code:
// Regression 

xtset id date

* Fixed effects

xtreg ideology male age education revenue rural religion extroversion conscientiousness stability openness compassion politeness, fe 
estimates store fixed

* Random effects

xtreg ideology male age education revenue rural religion extroversion conscientiousness stability openness compassion politeness, re 
estimates store aleatoire


// Hausman Test

hausman fixed random
Description of my variables:
  • ideology : 0 to 10
  • male : 0 or 1
  • age (years)
  • education (completed)
  • revenue (Euros)
  • rural : 1 to 5
  • religion : 0 or 1
  • The rest are Likert scales :
    • extroversion
    • conscientiousness
    • stability
    • openness
    • compassion
    • politeness
Hopefully, you can help me understand my mistake here.

NB: I'm using Stata 13