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, statalist.org is already up and running.


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

Re: st: degrees of freedom correction: Frisch Waugh


From   Marcello Pagano <pagano@hsph.harvard.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: degrees of freedom correction: Frisch Waugh
Date   Fri, 22 Oct 2010 09:06:07 -0400

Please abide by the few rules we have on this list:

1. Refrain from using addresses that confound users. This poster is reported as "statalist" which, of course it is not.

2. Identify yourself.  It is a minimal sign of respect.

Abiding by the rules makes it more pleasant for others and increases your chances of getting a response.

m.p.


On 10/22/2010 8:18 AM, statalist wrote:
I am estimating a linear model with a large number of fixed effects  (e.g. worker/firm, student/teacher, etc...).

One way to do this would be to use a two-way fixed effects estimator (e.g. a2reg, felsdvreg, etc...), but I am not really interested in the estimates of the fixed effects per se.

An alternative would be to estimate the model in stages, using a wage equation as an example:
xtreg wage, fe i(worker_id)
predict wage_res1, e
xtreg experience, fe i(worker_id)
predict experience_res1, e

xtreg wage_res1, fe i(firm_id)
predict wage_res2, e
xtreg experience_res1, fe i(firm_id)
predict experience_res2, e

reg wage_res2 experience_res2

This should produce the exact same result as "xtreg wage experience i.firm_id, fe i(worker_id)" with the exception that the standard errors will be slightly smaller in the former example due to a degrees of freedom issue.

My question is as follows: is there an easy way to correct the standard errors from the two+ stage model to mimic the one stage model? This obviously will not make a huge difference in large samples, but I want to know if such a solution exists.






*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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