Stepwise Least Squares ->Lag specification

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

andre182
Posts: 2
Joined: Fri May 14, 2010 8:25 am

Stepwise Least Squares ->Lag specification

Postby andre182 » Fri May 14, 2010 10:22 am

Hello,
I would like to know how to specify lags when doing the stepwise least squares method. I intend to run a backward stepwise least squares from a general to a specific model à la Hendry. I do not want to write down every single lagged independent variable into the "List of search regressors"-window. Is there a special way to include all lags(maximum possible number of lags) that the programme should stepwisely analyze like for instance inflation(-x) or inflation(-all) or inflation(-all lags) etc? Thank you very much in advance. Greetings

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

Re: Stepwise Least Squares ->Lag specification

Postby EViews Gareth » Fri May 14, 2010 10:31 am

inflation(-1 to -5)

will include all lags of inflation between 1 and 5

andre182
Posts: 2
Joined: Fri May 14, 2010 8:25 am

Re: Stepwise Least Squares ->Lag specification

Postby andre182 » Tue May 18, 2010 5:36 am

Thank you Gareth!
Now, I have encountered another problem-After clicking the OK-button to run the Stepwise Regression, EViews shows a failure message saying: "Positive or non-negative argument to function expected". What does this mean? The options that I have chosen are backwards, unidirectional with p-value of 0.05, 1000 backward steps, no number of regressors to select and no weight series. Thanks a lot. Regards

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

Re: Stepwise Least Squares ->Lag specification

Postby EViews Gareth » Tue May 18, 2010 8:18 am

Hard to say without having your workfile.

j52
Posts: 19
Joined: Wed Jul 24, 2013 1:56 am

Re: Stepwise Least Squares ->Lag specification

Postby j52 » Thu Aug 01, 2013 1:37 am

Hey Gareth,

is it possible to specify the lags for a differenced value? e.g. d(inflation(-1 to -5)) Because then I get an error message.

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

Re: Stepwise Least Squares ->Lag specification

Postby EViews Gareth » Thu Aug 01, 2013 6:49 am

No.

CharlieEVIEWS
Posts: 202
Joined: Tue Jul 17, 2012 9:47 am

Re: Stepwise Least Squares ->Lag specification

Postby CharlieEVIEWS » Sat Aug 10, 2013 8:11 am

If im not mistaken, and if you haven't already found a simple solution to your problem, I believe you could use:

Code: Select all

genr dinflation = inflation-inflation(-1),
then you can use:

Code: Select all

dinflation(-1 to -5)
?


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests