Am 29.01.2009 00:44, Riccardo (Jack) Lucchetti schrieb:
How about this?
<script>
list Y = y1 y2 y3
loop foreach i Y
ols Y.$i const x1 x2
end loop
</script>
I must say I find this $i business confusing; fortunately it's very well
documented in the manual!
At some point IMHO it may be worthwhile to think about a syntax reform;
here it's not clear (to me) what the variable type of the loop index i
actually is. A newcomer to gretl would probably think that since i is
looping through the list of variables, it's either a series itself, or
alternatively the string holding the name of the series ('y1' etc.). But
without some black $-magic it really is neither of those apparently.
But of course that would be an error-prone reform, I'm sure.
cheers,
sven