Page 1 of 1

Auto-Series and Lags

Posted: Tue Nov 10, 2009 6:30 am
by Daniel Bachman
I'm having trouble with what seems to be a simple problem. I don't understand how auto-series work with multiple lags when defining an equation. The following command:

EQUATION EXPORTS.LS DLOG(XR) DLOG(GDPROWR(-1)) C

works. But if I try to use multiple lags:

EQUATION EXPORTS.LS DLOG(XR) DLOG(GDPROW(-1 TO -8)) C

I get an error message

-1 to -8 is not a valid index for GDPROWR

I can't find any examples of specifications of multiple lags with auto-series in the documentation, although I certainly could have missed something. I'm very familiar with other time series programs, but new to Eviews.

Re: Auto-Series and Lags

Posted: Tue Nov 10, 2009 6:53 am
by trubador
Transform the series first and then specify the lag length:

Code: Select all

genr dlgdprowr = dlog(gdprowr) equation exports.ls dlog(xr) dlgdprowr(-1to-8) c

Re: Auto-Series and Lags

Posted: Tue Nov 10, 2009 12:55 pm
by Daniel Bachman
Thanks. I will do this.

Although it does somewhat reduce the value of the auto-series function.

Re: Auto-Series and Lags

Posted: Tue Nov 10, 2009 5:24 pm
by EViews Glenn
An intermediate step improves slightly on trubador's suggestion.

Replace the line

Code: Select all

genr dlgdprowr = dlog(gdprowr)
with

Code: Select all

frml dlgdprowr = dlog(gdprowr)
and you'll get back most of the auto-series behavior.