Extract Panel GLS Weights

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

rdwest
Posts: 18
Joined: Wed Dec 23, 2009 11:35 am

Extract Panel GLS Weights

Postby rdwest » Thu May 20, 2010 7:23 am

Hi,

I am working with panel data, using cross-sectional GLS weights in a least squares regression.

I know that the option "keepwgts" stores the vector of weights, but I can't figure out how to extract these values from the equation object.

Thank you,
Rachel

Simon_Banbury
Posts: 1
Joined: Tue Sep 27, 2016 9:40 am

Re: Extract Panel GLS Weights

Postby Simon_Banbury » Tue Sep 27, 2016 9:42 am

Hi - Did you ever find a way around this. Got the same problem at the moment.
Simon

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Extract Panel GLS Weights

Postby EViews Glenn » Tue Sep 27, 2016 5:16 pm

There's currently no function to expose those weights. The easiest thing to do is to estimate the model without GLS weights, save the residuals, then compute the variances by cross-section using the @varsby function. It's quite straightforward.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests