residuals dependent on regression coefficients

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

mariaki
Posts: 3
Joined: Mon May 07, 2012 4:28 am

residuals dependent on regression coefficients

Postby mariaki » Mon May 07, 2012 4:51 am

Dear all,

I am a relatively new EViews user (have used it 10 years ago, and have forgotten the most).
Could you help me with the advice?

I need to estimate the following model:

Yt = a + b*x1(t) + c*x2(t)+d*x3(t)*x4(t)+error(t), where
Var(error(t)) =u+ (b^2)*z+ ((c+d*x3(t))^2)*w

So, variance of error term must have a structure, where u>0, z>0, w>0 and b,c,d come from the first equstion.

I was thinking in GARCH direction, but I do not have lag dependance here.
I can estimate the following:

Yt = a + b*x1(t) + c*x2(t)+d*x3(t)*x4(t)+error(t), where
Var(error(t)) =v+ ((c+d*x3(t))^2)*w+(error(t-1))^2

And this I can do without programming (as I do not know programming, I do not see, how to skip error(t-1))^2 ).


Could you advice me a direction, where to look for idea at least? Or how to convert what I have into program code, which I (hopefully) would be able to change.
Thank you very much in advance!

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

Re: residuals dependent on regression coefficients

Postby EViews Glenn » Tue May 08, 2012 10:21 am

You'll have to do this in steps.

1. estimate the model without weights and obtain residuals.

2. fit the variance specification by hand--generally people just regress the squared residuals on their variance regressors.

3. create a series of weights and do weighted least squares.

mariaki
Posts: 3
Joined: Mon May 07, 2012 4:28 am

Re: residuals dependent on regression coefficients

Postby mariaki » Mon May 14, 2012 2:09 am

Thank you very much, Glenn!

From the suggested path I can do first and second step. Could you, please, comment a bit more on how to do 3? how to obtain weights series from the regression 2?

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

Re: residuals dependent on regression coefficients

Postby EViews Glenn » Mon May 14, 2012 9:44 am

Create a series that has either the estimated variances, standard deviations, inverse variances, or inverse standard deviations for each observation, and then do weighted least squares as described in the manual. You'll have to choose the weighting specification that matches the series you created. I would recommend that unless you have a specific reason to do otherwise, you use Inverse standard deviations as your weighting type and then EViews scaling. This will offer the maximal backward compatibility with earlier versions of EViews. But it that's not a concern just pick the weight type with which you feel most comfortable.

mariaki
Posts: 3
Joined: Mon May 07, 2012 4:28 am

Re: residuals dependent on regression coefficients

Postby mariaki » Mon Jul 30, 2012 12:09 am

In order to avoid creating another topic, I will ask here.

I need to go GARCH in the model above, so my question is, how can I estimate GARCH(0,0) with particular structure of residuals. The problem is that I can not choose GARCH(0,0); it seems that I have to program it (the meaning of using GARCH is just because it lets to put a structure for residuals). Does anybody know, how can I do it?

Thank you very much in advance!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests