Am 29.05.2017 um 17:14 schrieb A. T.:
Am 29.05.2017 um 17:02 schrieb Sven Schreiber:
> Hi,
>
> is there a way to find out with script programming if and how many
> lagged endogenous terms have been included in a single equation estimation?
>
At the moment I could only think of using the name (string) of the
endogenous and count via a loop how often it occurs in the array $
strings vnames = varnames($xlist) $. I guess you also want to know which
lags are included in the final set, right?
Yes, and thanks for your inspiring comments -- the varnames() suggestion
got me thinking, and attached is a function that gets me what I meant
(even with a test case).
Of course the limitation is that it relies on the standard naming of the
lags, i.e. LRM(-1) must appear as LRM_1. I think gretl's internals are
more clever and keep track of the lags even if they're renamed. So
perhaps still some reason for a feature request, like a new accessor or
s.th. like that.
thanks,
sven