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 on April 23, and its replacement, is already up and running.

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

Re: st: 2-way Fixed Effects model

From   Lucas <>
Subject   Re: st: 2-way Fixed Effects model
Date   Tue, 4 Sep 2012 17:19:50 -0700


Thanks for your note.  I know I can do this for a one-way OLS fixed
effects model with the -noconstant- option. However, in a two-way
fixed effects model this should produce a dummy variable.  That's what
I expect with the reg command.  Am I mistaken?  Also, does the iv2reg
prevent the dummy variable trap?


On Tue, Sep 4, 2012 at 10:13 AM, Austin Nichols <> wrote:
> Lucas <> :
> Just use -regress- e.g.
>   reg y x* i.county
> but you will need many obs per company-cluster pair to trust those coefs.
> Also see -ivreg2- on SSC for one implementation of 2-way cluster-robust SE
> [ ]
> and compare SEs on x vars (not SE on fixed effects)
> using OIM, het-robust, and cluster-robust SEs.
> On Tue, Sep 4, 2012 at 1:02 PM, Lucas <> wrote:
>> Dear Statalisters,
>> I thought this was a simple issue, estimating a 2-way fixed effects
>> model, but, alas, I cannot figure it out. I see several stata and
>> user-written commands, but I am not certain any of them will work in
>> my situation.
>> My data is that I have dozens of companies crossed with dozens of
>> jurisdictions (e.g., counties).  For substantive reasons I need to
>> obtain the coefficients for each company and for each county (which
>> makes areg not quite what I need).
>> FYI, there is no time element here, so lags, AR processes, and such
>> are not relevant.
>> Any guidance anyone can offer is greatly appreciated.
>> Sam
> *
> *   For searches and help try:
> *
> *
> *
*   For searches and help try:

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