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
Cluster by firmHi- does clustering by firm has any impact on coefficient (or on Constant)? I read it reduces coeffi…
Instrument set from initial period regressionHi I am running af 2sls model with panel data where I on average have 6 observation for each indivi…
Saving first-stage F-statistic with -ivprobit, twostep-I am running -ivprobit, twostep first- and want to capture the first-stage F-statistic. The e(return…
Error in forestplot: option lalign() not allowedHello, on running the "metan" command, metan OR ORlci ORuci, label(namevar=id) wgt(bweight) first(0.…
Gravity model estimation using PPML with fixed effectsHello All, I'm trying to estimate GVC trade flows in a gravity model, using the PPML method. My dep…
Subscribe to:
Post Comments (Atom)
0 Response to Country fixed effects multilevel analysis not working
Post a Comment