Hello everyone,
I’m trying to replicate the “WVS 5” country fixed effects model (Bayerl & Best, 2018) with newer data: Array
However, I’m really struggling with the country fixed effects model. The dependent variable is “environmental consciousness” (envgro; a dummy that is either 1 or 0) and the observations are nested in countries (B_COUNTRY). How am I supposed to code this in Stata?
So far I’ve tried two things. First I tried allocating dummies to all the countries with the command below – however it didn’t work, Stata simply never stopped trying to compute this:
xtmelogit envgro oecd gdpgrowth c.C_gdp10000##c.postmat relinc gender C_agedec age2 i.B_COUNTRY || B_COUNTRY:
I also couldn’t do it like this:
xtset B_COUNTRY
xtreg envgro c.C_gdp10000##c.postmat relinc gender C_agedec age2 || B_COUNTRY: (I removed the variables oecd and gdpgrowth as they don’t differ within countries)
It also didn’t work and gave me various error messages and never stopped computing either.
The dataset has around 65k observations which are nested in 45 countries, so it shouldn't really be too big to compute.
Does anyone have an idea what I could be doing wrong? Grateful for any responses!
Related Posts with Country fixed effects multilevel analysis not working
Loop with missing valuesDear all, I want to estimate betas of the Fama French Model for every year. I have got weekly retur…
No observations in xtregHi statlist, I have a panel as follows: Code: * Example generated by -dataex-. To install: ssc i…
variable renaming with valuesHello, I have a series of variable names PID3, PID4, PID5...PIDn that I want to rename PID1, PID2, …
Moderated Mediation using Model 15 from HayesDear all, I am trying to do a moderated mediation analysis using Model 15 of Hayes SPSS Process. I …
Import delimited not importing all observationsMy colleagues and I are having issues importing a number of pipe (“|”) delimited .txt files of 5-10G…
Subscribe to:
Post Comments (Atom)
0 Response to Country fixed effects multilevel analysis not working
Post a Comment