Dear Stata List,
I have found that calculating clustered standard errors using "xtreg fe" does not match those from "regress". Here is some sample code to recreate this discrepancy:
webuse nlswork, clear
keep if _n <= 100
regress ln_w age tenure i.idcode, vce(cluster idcode)
xtset idcode
xtreg ln_w age tenure, fe vce(cluster idcode)
I have written some thoughts on what might be happening here: http://amarder.github.com/2013/03/29/clustered-standard-errors.html
Is this a bug in Stata or am I doing something silly?
Thanks for the help, Andrew
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/