I have a model that includes both user fixed effects (fe) and country random effects (re). My question is: Should I be using the "mixed" command or the "xtreg" command to include both fixed effects and random effects in the model? I have attempted both and not been successful. I have 20,000 users and 150 countries. Could we absorb the Fixed effect in the model like what areg or reghdfe do?
my code for xtreg is:
xtset country
xtreg y x1 x2 i.user, re
my code for xtreg is:
xtset country
xtreg y x1 x2 i.user, re
Comment