gretl doesn't find packages in zip form
by Sven Schreiber
Hi,
I saved a zipped function package (.zip) manually in a directory with
other standard (.gfn) packages and then tried to load those from the GUI
in the normal way. But gretl tells me that no additional packages could
be found in the directory and so it doesn't load it.
thanks,
sven
9 years, 5 months
parser bug with matrix slice
by Sven Schreiber
Sorry, I know it's been a couple of days with email flooding...
<hansl>
matrix m = I(3)
eval sdc(m)[1,] # works!
eval mcorr(m)[1,] # doesn't work, why not?
</hansl>
I see no reason why the same construct shouldn't work with mcorr, right?
(yesterday's snapshot)
thanks,
sven
9 years, 5 months
Strange behavior executing function package w/o dataset
by Sven Schreiber
Hi,
I just noticed that when I try to execute a package ("gears" button) and
no dataset is in place, the sample script is opened instead. From the
point of view of gretl it's perhaps understandable, but I was quite
confused even with all my gretl experience. Presenting an example is
nowhere near the definition of execution IMHO. I'd prefer a message like
"this package needs a dataset in place".
Also, what about packages that don't operate on actual data? I think
there was some discussion about it a while ago, but I don't remember the
conclusion.
thanks,
sven
9 years, 5 months
$depvar not a series?
by Sven Schreiber
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
9 years, 5 months