On Thu, 28 Mar 2013, Allin Cottrell wrote:
On Thu, 28 Mar 2013, Lee Adkins wrote:
> What do you think about a leads function to go with lags? Even better
> would be to allow synatx like x(2 to -2) to add two leads and two lags
> (along with the contemporaneous value of x) to a variable list.
Well the "even better" option works already ;-)
<hansl>
open data9-7
list foo = PRIME(2 to -2)
print foo -o
</hansl>
Truth be told, you need the "plus" sign to have this work with, say, ols,
as in
<hansl>
open data9-7
ols QNC const PRIME(+2 to -2)
</hansl>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------