10

Stata allows estimating clustered standard errors in models with fixed effects but not in models random effects? Why is this?

By clustered standard errors, I mean clustering as done by stata's cluster command (and as advocated in Bertrand, Duflo and Mullainathan).

By fixed effects and random effects, I mean varying-intercept. I have not considered varying slope.

amoeba
  • 104,745
DanB
  • 958
  • 2
    I would consider varying intercept fixed effects, see http://www.stata.com/support/faqs/stat/xtreg.html . It probably isn't a bad idea to check out those Stata FAQ's to see if they have anything pertinent to your question as well. – Andy W Mar 14 '11 at 23:58
  • @Andy The intercept can vary as either a fixed effect or a random effect. In the notation of your link, if it's a fixed effect then $u_i$ is treated as a constant to be estimated from the info within each group, while if it's a random effect it's assumed to have a normal distribution whose mean and variance the model estimates, and you can afterwards get 'predictions' of the individual $u_i$s which use info from all the groups and are closer to their mean than in the fixed effect models due to 'shrinkage'. – onestop Mar 15 '11 at 09:45
  • See http://andrewgelman.com/2007/11/28/clustered_stand/ See also StasK's answer in http://stats.stackexchange.com/questions/38419 – amoeba Feb 02 '17 at 22:57

1 Answers1

12

When you cluster on some observed attribute, you are making a statistical correction to the standard errors to account for some presumed similarity in the distribution of observations within clusters. When you estimate a multi-level model with random effects, you are explicitly modeling that variation, not treating it simply as a nuisance, thus clustering is not needed.

Jason Morgan
  • 1,214
  • 11
  • 15