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]

st: FGLS Estimation


From   Stefan <stefan@gravemeyer.de>
To   statalist@hsphsun2.harvard.edu
Subject   st: FGLS Estimation
Date   Wed, 09 Jun 2010 15:21:25 +0200

Hello,

I am trying to do a three step FGLS estimation with Stata but run into some problems maybe someone has a good idea. I start with an ordinary OLS regression and then regress the residuals on the same right hand side variables. Then I have adjust the right and left hand side variables as well as the residuals by the predicted values of the right hand side variable y.
Here is my problem:
I did not find a way to adjust the residuals for the regression by my predicted weights.

This is the transformation I would like to do:
y/weight=X/weight * ß + e/weight

Adjusting the variables is no problem. I simply use egen to generate new ones. (using aweights does not work since I can not simply square my predicted value weight to fit the sqrt(weight)*y formula used by aweights, maybe there is exists an easier way here too?) But I simply do not know how to transform the residuals for my next step regression.

Thanks in advance

Stefan


*
*   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