Page 1 of 1

functions of lags

Posted: Fri Jun 20, 2014 5:58 pm
by startz
Should it be possible to have functions of lag spans in a regression, as in

Code: Select all

 log(gdpc1(-1 to -4))

Re: functions of lags

Posted: Sat May 30, 2020 8:28 pm
by cbonham
Please seriously consider this request from 2014.
And, while we are at it, why not allow for the lag specification outside of the function. Such as

Code: Select all

log(gdpc) (-1 to -4)

Currently you would have to write this as

Code: Select all

log(gdpc(-1)) log(gdpc(-2)) log(gdpc(-3)) log(gdpc(-4))

Or maybe there is a way to write code more simply that i have missed.