Hi,
I am trying understand what the weights option in a LS model is actually doing. Ideally I want to be able to rebuild it manually in R, so that my EViews model and my R model do the same thing.
For my application the estimation of
"equation myEq.ls(w=z) y C x1 x2 x3 ..."
uses: "Weight type: Inverse standard deviation (EViews default scaling)".
In my understanding z is not the actual weight assigned to each observation, but rather the variable of which we assume that it explaines the heterogeneity in variance, is this correct?
So if I try to rebuild it manually I would first estimate the LS model without the weight option, model the squared residuals as a function of z (and a constant?) and then use the inverse of the square root of the fitted variance as the actual weight for each observation. Does this make sense?
Regards
Patrick
Weighted Least Squares
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Weighted Least Squares
This recent post probably helps:
http://forums.eviews.com/viewtopic.php? ... 27&p=47310
http://forums.eviews.com/viewtopic.php? ... 27&p=47310
Re: Weighted Least Squares
Thanks a lot. This is exactly what I needed.
Patrick
Patrick
Who is online
Users browsing this forum: No registered users and 2 guests
