On Fri, 3 Apr 2009, Itai Zohar wrote:
In process of learning the gretl programming interface I'm
trying to write a stepwise regression procedure (btw, does this
exist already?), and encounter strange results when I apply the
-= operation to a list within a loop. So outside of a loop when
I execute:
xlist -= Z2
the Z2 variable is removed from the list xlist. Inside a loop,
however, xlist only contains Z2 and not the other variables...
Thanks for the report. That's a bug; I'm not sure how long it has
been there. It's now fixed in CVS and the current Windows
snapshot.
As for stepwise regression, there is the --auto option for the
"omit" command; I'm also attaching a sample script for going in
the other direction (not that I'd recommend doing that!).
Allin Cottrell