Am 03.07.2022 um 13:49 schrieb Cottrell, Allin:
On Sat, Jul 2, 2022 at 3:14 PM Sven Schreiber
> The whole thing works when I work with a copy to a temp series
The keyword "to" is valid only in a very specific context, and in the
case above that context is not being created. Why not? That's not very
easy to see, but no doubt it can be tracked down via debugging
statements in lib/src/gen*.c. Notice that "to" is indeed the problem
(though it shouldn't be).
Yes, we have discussed in the past that perhaps in gretl there are too
many ways to indicate a range, depending on the context. ("..", ":",
"to", perhaps even others)
But I take your "shouldn't be" to mean that it's a bug and is supposed
for the line in question it works fine.
Another workaround for the original problem is:
ols L.$i const lags(2, L.$i)
which I guess I'd recommend anyway over the very old-school "to" thing,
at least in a function and/or script (as opposed to a command line).