Page 1 of 1

dlog with lags

Posted: Wed Aug 10, 2011 1:33 pm
by basil
how do I run an OLS with lagged logs? While i can do the following: "x c x(-1 to 05)" i was not able to do "x c dlog(x(-1 to 05))"

Re: dlog with lags

Posted: Wed Aug 10, 2011 1:36 pm
by EViews Gareth

Code: Select all

ls x c dlog(x(-1)) dlog(x(-2)) dlog(x(-3)) dlog(x(-4)) dlog(x(-5))
or

Code: Select all

series dlogx = dlog(x) ls x c dlogx(-1 to -5)

Re: dlog with lags

Posted: Wed Aug 10, 2011 1:39 pm
by basil
thanks. So it looks like there is no similar shortcut as in "x(-1 to -5)". Ok