[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Robert Duval <rduval@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: fixed effects with robust standard errors |

Date |
Wed, 26 Oct 2005 16:55:18 -0400 |

Hi Vivian, If you want an estimate of the individual fixed effects use areg as Mark rightly pointed out. Otherwise if you're only interested in the effects of your independent variables after controlling for individual FE then you don't need the adjustment to the DOF if you run your regression on demeaned variables. In other words transforming the data to deviations from individual means and then running the regress command doesn't "implicitly estimates" the FEffects, it just differences them out... making your estimator consistent. Hence no adjustment in the DOF needed. Greetings to the AEM crowd, Robert Duval On 10/25/05, Mark Schaffer <M.E.Schaffer@hw.ac.uk> wrote: > Vivian, > > > I am trying to do what Nick suggested in a posting a few years back (see > > below), i.e. to estimate a fixed effects model with > > heteroskedasticity-robust standard errors by transforming the data to > > deviations from means and then running the regress command, with the > > option robust specified. > > > > However, I believe I need to correct the degrees of freedom for the number > > of dummy variables this procedure implicitly estimates. Is it possible to > > do this within the regress command; > > There is an undocumented -dof()- option for -regress- that sets the > residual degrees of freedom to the number provided, but I don't see why > you need to do this. Why not just use -areg-? > > --Mark > > > should I (not being an expert > > programmer in the least) try to program it myself; or is there some other > > way to change the degrees of freedom used? > > > > Thanks very much, > > Vivian > > > > > > > >>From "Nick Cox" <n.j.cox@durham.ac.uk> > > To <statalist@hsphsun2.harvard.edu> > > Subject RE: st: robust st. errors and fixed effects > > Date Mon, 21 Oct 2002 15:50:47 +0100 > > > >> > is there a possibility to estimate a fixed effect model, > >> controlling for > >> > heteroskedasticity. > >> > the comad robust and xtreg don`t work togetehr. > >> > Is there an other way to control for h.? > >> > thanks for your help > >> > peter > >> > > >> ... > >> As was suggested in a posting to Statalist earlier today, > >> you can get > >> -regress- to estimate a fixed effects model for you, and -regress- > >> will of course generate robust SEs. > >> > >> The posting suggested estimating a "least squares dummy variable" > >> (LSDV) regression, with a dummy for each observational unit > >> (individual, firm, whatever). This is OK unless you have a lot of > >> different units, in which case you get more dummy variables > >> than you > >> can reasonable handle. A slightly more laborious but also > >> equivalent > >> method is to transform the data by putting it into mean-deviation > >> form, and then estimating on the transformed data. > > > > Mark mentioned -areg- in passing in his posting > > (abbreviated here): this is just to flag its > > availability given many dummy variables. > > > > Nick > > n.j.cox@durham.ac.uk > > > > > > > > * > > * For searches and help try: > > * http://www.stata.com/support/faqs/res/findit.html > > * http://www.stata.com/support/statalist/faq > > * http://www.ats.ucla.edu/stat/stata/ > > > > > Prof. Mark Schaffer > Director, CERT > Department of Economics > School of Management & Languages > Heriot-Watt University, Edinburgh EH14 4AS > tel +44-131-451-3494 / fax +44-131-451-3294 > email: m.e.schaffer@hw.ac.uk > web: http://www.sml.hw.ac.uk/ecomes > > > > __________________________________________________________________ > > DISCLAIMER: > > This e-mail message is subject to http://www.hw.ac.uk/disclaim.htm > __________________________________________________________________ > > * > * For searches and help try: > * http://www.stata.com/support/faqs/res/findit.html > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: fixed effects with robust standard errors***From:*"Vivian Hoffmann" <veh4@cornell.edu>

**Re: st: fixed effects with robust standard errors***From:*"Mark Schaffer" <M.E.Schaffer@hw.ac.uk>

- Prev by Date:
**st: Binary dep. var, endog rhs and panel data** - Next by Date:
**Re: st: transferring data from SPSS to STATA** - Previous by thread:
**Re: st: fixed effects with robust standard errors** - Next by thread:
**[no subject]** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |