Ok now I'm really confused:
(this is with the denmark.gdt dataset again)
<hansl>
ols LRM const LRY IBO
eval $depvar # gives LRM
series s1 = $depvar # wrong datatype error!?
</hansl>
The doc says that the $depvar accessor returns a string, alright. But in
gretl's world a string ('LRM' here) would always be valid as an
identifier, no?
(In the past I have grumbled about the sometimes fuzzy treatment of
strings and string literals in hansl/gretl, and it seems to strike back
here??)
Another consequence of this behavior is that the following also doesn't
work:
<hansl>
function void checkdepvar (series y)
print y
end function
ols LRM LRY
checkdepvar($depvar)
# (error: wrong argument type, is string should be series)
</hansl>
thanks,
sven