Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: [xtreg fe] [regress] clustered standard errors differ


From   "Marder, Andrew" <amarder@hbs.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: [xtreg fe] [regress] clustered standard errors differ
Date   Fri, 29 Mar 2013 22:51:22 -0400

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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index