Weighted Least Squares

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

PatrickZ
Posts: 2
Joined: Thu Dec 17, 2015 5:11 am

Weighted Least Squares

Postby PatrickZ » Thu Dec 17, 2015 5:51 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Weighted Least Squares

Postby EViews Gareth » Thu Dec 17, 2015 10:37 am


PatrickZ
Posts: 2
Joined: Thu Dec 17, 2015 5:11 am

Re: Weighted Least Squares

Postby PatrickZ » Fri Dec 18, 2015 3:18 am

Thanks a lot. This is exactly what I needed.
Patrick


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests