Hi to everyone in this forum,
I am currently struggling with an issue regarding Hausman tests for multilevel models. I couldn't find any other post that would answer my questions. Still, I am a rookie to this platform and even though I read the posting advices, I might have missed out on something. So please, excuse me if I violate any points of the code of conduct. If I should correct or add something, please let me know!
My data structure looks as follows (data obtained from ISSP and WID):
The model I want to implement:
>> mixed Likert_Prot_Env WID_gini_NI left_right post_materialist mixed middle_edu high_edu middle_income high_income age gender if ISSP==1 || encCountry <<
with individual observations being nested in countries. All variables are on the individual level except WID_gini_NI which is the gini for each country.
If I go on to implement the following FE model:
>> reg Likert_Prot_Env left_right post_materialist mixed middle_edu high_edu middle_income high_income age gender i.encCountry if ISSP==1 <<
I only get negative chi2-values for Hausman:
"Test of H0: Difference in coefficients not systematic
chi2(9) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= -16.56
Warning: chi2 < 0 ==> model fitted on these data
fails to meet the asymptotic assumptions
of the Hausman test; see suest for a
generalized test."
Usually, this problem seems to be fixed with the "sigmamore"-option. Yet, this option is not available for "mixed"-commands, since it does not store sigma.
Another solution would be to use "xtreg, re" instead of "mixed". This is also not viable for me (if I am correct), since I include variables on the second/country level (random slopes), which is not possible for ", re".
Does any-one know a solution for this? I really tried lots of things and still, I wasn't able to find any solution for this. All help will be very, very much appreciated!
(If it is of any help to get the intuition behind the model: I am checking for a relationship between the personal willingness to pay for a green transition of the economy and the economic inequality in a country)
I am currently struggling with an issue regarding Hausman tests for multilevel models. I couldn't find any other post that would answer my questions. Still, I am a rookie to this platform and even though I read the posting advices, I might have missed out on something. So please, excuse me if I violate any points of the code of conduct. If I should correct or add something, please let me know!
My data structure looks as follows (data obtained from ISSP and WID):
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float Likert_Prot_Env double WID_gini_NI byte left_right float(post_materialist mixed middle_edu high_edu middle_income high_income age) byte gender long encCountry float ISSP . .426481367479445 . 0 1 0 0 0 0 3 1 1 0 . .426481367479445 1 0 1 1 0 0 0 2 2 1 0 . .426481367479445 10 1 0 0 0 0 0 2 2 1 0 . .426481367479445 5 0 1 0 0 0 0 5 2 1 0 . .426481367479445 10 0 1 0 0 0 0 5 1 1 0 . .426481367479445 1 0 1 1 0 0 0 3 2 1 0 . .426481367479445 10 0 1 0 0 0 0 4 2 1 0 . .426481367479445 8 1 0 1 0 0 0 5 1 1 0 . .426481367479445 1 0 1 0 0 0 0 6 1 1 0 . .426481367479445 10 0 1 1 0 0 0 5 2 1 0 . .426481367479445 10 0 1 0 0 0 0 6 1 1 0 . .426481367479445 8 0 1 1 0 0 0 3 1 1 0 . .426481367479445 . 1 0 0 1 0 0 2 2 1 0 . .426481367479445 . 0 0 1 0 0 0 2 1 1 0 . .426481367479445 10 0 1 0 0 0 0 6 2 1 0 . .426481367479445 5 0 1 0 0 0 0 3 2 1 0 . .426481367479445 . 0 1 1 0 0 0 2 2 1 0 . .426481367479445 3 0 0 1 0 0 0 4 1 1 0 . .426481367479445 10 0 0 0 0 0 0 6 1 1 0 . .426481367479445 7 0 1 1 0 0 0 4 2 1 0 . .426481367479445 . 0 1 1 0 0 0 5 1 1 0 . .426481367479445 1 0 1 1 0 0 0 5 1 1 0 . .426481367479445 1 0 1 1 0 0 0 6 2 1 0 . .426481367479445 5 0 1 0 0 0 0 5 2 1 0 . .426481367479445 1 0 0 0 0 0 0 5 2 1 0 . .426481367479445 5 0 1 0 0 0 0 4 2 1 0 . .426481367479445 3 0 1 1 0 0 0 4 2 1 0 . .426481367479445 3 0 0 1 0 0 0 3 2 1 0 . .426481367479445 . 0 1 0 0 0 0 5 2 1 0 . .426481367479445 . 0 1 1 0 0 0 6 1 1 0 . .426481367479445 6 0 0 0 0 0 0 5 2 1 0 . .426481367479445 5 0 1 0 0 0 0 4 2 1 0 . .426481367479445 10 0 1 1 0 0 0 1 2 1 0 . .426481367479445 8 0 0 0 0 0 0 5 2 1 0 . .426481367479445 8 0 0 0 0 0 0 1 1 1 0 . .426481367479445 10 1 0 0 0 0 0 5 2 1 0 . .426481367479445 . 0 1 0 0 0 0 4 2 1 0 . .426481367479445 4 0 0 1 0 0 0 3 2 1 0 . .426481367479445 2 0 0 1 0 0 0 3 2 1 0 . .426481367479445 9 0 1 0 0 0 0 4 2 1 0 . .426481367479445 6 0 0 0 0 0 0 2 2 1 0 . .426481367479445 . 0 1 0 0 0 0 3 2 1 0 . .426481367479445 1 0 0 1 0 0 0 2 2 1 0 . .426481367479445 . 0 1 0 0 0 0 5 1 1 0 . .426481367479445 3 0 0 0 0 0 0 4 2 1 0 . .426481367479445 3 1 0 1 0 0 0 6 2 1 0 . .426481367479445 . 0 1 1 0 0 0 2 2 1 0 . .426481367479445 . 0 1 0 0 0 0 3 2 1 0 . .426481367479445 5 0 1 1 0 0 0 6 1 1 0 . .426481367479445 1 0 1 0 0 0 0 4 2 1 0 . .426481367479445 10 0 1 1 0 0 0 5 2 1 0 . .426481367479445 10 0 1 0 0 0 0 3 2 1 0 . .426481367479445 1 0 0 1 0 0 0 5 2 1 0 . .426481367479445 . 1 0 0 0 0 0 3 1 1 0 . .426481367479445 3 0 1 1 0 0 0 6 2 1 0 . .426481367479445 7 0 1 0 0 0 0 4 2 1 0 . .426481367479445 . 0 1 1 0 0 0 3 2 1 0 . .426481367479445 . 0 1 0 0 0 0 4 1 1 0 . .426481367479445 10 0 1 0 0 0 0 6 1 1 0 . .426481367479445 1 0 1 0 0 0 0 3 2 1 0 . .426481367479445 8 0 0 1 0 0 0 2 2 1 0 . .426481367479445 10 0 1 0 0 0 0 2 1 1 0 . .426481367479445 . 0 1 1 0 0 0 1 2 1 0 . .426481367479445 1 1 0 0 0 0 0 3 2 1 0 . .426481367479445 . 0 1 0 0 0 0 2 2 1 0 . .426481367479445 1 0 0 0 0 0 0 4 1 1 0 . .426481367479445 1 0 1 1 0 0 0 4 1 1 0 . .426481367479445 . 0 0 0 0 0 0 6 2 1 0 . .426481367479445 . 0 1 0 0 0 0 3 2 1 0 . .426481367479445 10 0 1 1 0 0 0 4 2 1 0 . .426481367479445 . 0 1 1 0 0 0 4 1 1 0 . .426481367479445 1 0 1 1 0 0 0 5 2 1 0 . .426481367479445 . 0 1 1 0 0 0 5 2 1 0 . .426481367479445 10 0 0 0 0 0 0 4 2 1 0 . .426481367479445 . 0 1 1 0 0 0 1 2 1 0 . .426481367479445 5 0 1 0 0 0 0 2 2 1 0 . .426481367479445 1 0 1 1 0 0 0 3 2 1 0 . .426481367479445 5 0 0 1 0 0 0 5 2 1 0 . .426481367479445 . 0 1 0 0 0 0 6 1 1 0 . .426481367479445 2 0 1 0 0 0 0 2 1 1 0 . .426481367479445 . 0 1 1 0 0 0 5 2 1 0 . .426481367479445 . 0 1 0 0 0 0 4 2 1 0 . .426481367479445 . 0 0 1 0 0 0 5 2 1 0 . .426481367479445 10 0 0 0 1 0 0 6 1 1 0 . .426481367479445 1 0 1 1 0 0 0 6 2 1 0 . .426481367479445 1 0 1 0 0 0 0 6 2 1 0 . .426481367479445 . 0 1 0 0 0 0 6 1 1 0 . .426481367479445 . 0 1 0 0 0 0 2 2 1 0 . .426481367479445 . 0 1 1 0 0 0 3 1 1 0 . .426481367479445 1 0 0 1 0 0 0 4 1 1 0 . .426481367479445 . 0 1 0 0 0 0 6 2 1 0 . .426481367479445 5 0 0 0 0 0 0 4 2 1 0 . .426481367479445 . 0 0 0 0 0 0 4 2 1 0 . .426481367479445 1 0 1 0 0 0 0 6 2 1 0 . .426481367479445 5 0 1 0 0 0 0 3 1 1 0 . .426481367479445 . 0 1 0 0 0 0 4 1 1 0 . .426481367479445 . 0 1 1 0 0 0 4 1 1 0 . .426481367479445 10 0 1 0 0 0 0 5 1 1 0 . .426481367479445 . 0 1 0 0 0 0 3 2 1 0 . .426481367479445 . 0 1 0 1 0 0 5 2 1 0 end label values left_right PARTY_LR label def PARTY_LR 1 "1. Far left (communist, etc.)", modify label def PARTY_LR 2 "2. Left / center left", modify label def PARTY_LR 3 "3. Center / liberal", modify label def PARTY_LR 4 "4. Right / conservative", modify label def PARTY_LR 5 "5. Far right (fascist, etc.)", modify label def PARTY_LR 6 "6. Other", modify label values gender SEX label def SEX 1 "1. Male", modify label def SEX 2 "2. Female", modify label values encCountry encCountry label def encCountry 1 "Albania", modify
>> mixed Likert_Prot_Env WID_gini_NI left_right post_materialist mixed middle_edu high_edu middle_income high_income age gender if ISSP==1 || encCountry <<
with individual observations being nested in countries. All variables are on the individual level except WID_gini_NI which is the gini for each country.
If I go on to implement the following FE model:
>> reg Likert_Prot_Env left_right post_materialist mixed middle_edu high_edu middle_income high_income age gender i.encCountry if ISSP==1 <<
I only get negative chi2-values for Hausman:
"Test of H0: Difference in coefficients not systematic
chi2(9) = (b-B)'[(V_b-V_B)^(-1)](b-B)
= -16.56
Warning: chi2 < 0 ==> model fitted on these data
fails to meet the asymptotic assumptions
of the Hausman test; see suest for a
generalized test."
Usually, this problem seems to be fixed with the "sigmamore"-option. Yet, this option is not available for "mixed"-commands, since it does not store sigma.
Another solution would be to use "xtreg, re" instead of "mixed". This is also not viable for me (if I am correct), since I include variables on the second/country level (random slopes), which is not possible for ", re".
Does any-one know a solution for this? I really tried lots of things and still, I wasn't able to find any solution for this. All help will be very, very much appreciated!
(If it is of any help to get the intuition behind the model: I am checking for a relationship between the personal willingness to pay for a green transition of the economy and the economic inequality in a country)
Comment