On Sun, 11 Jan 2009, Ivan Sopov wrote:
I've just downloaded the snapshot for windows and the third line
of the
following script crashes gretl.
<script>
open "hamilton.gdt"
model1 <- ols EXRITL PZUNEW PC6IT const
genr temp1 = model1.$coeff(const)
</script>
"command genr temp1 = model1.$coeff" works good
Thanks for the report. In fact, that's not a new bug: I see that
the formulation "<modelname>.$<matrix>(<element>)" has never
been
hooked up properly in genr. However, I didn't realize that this
would produce a crash rather than an error message. I'll work on
that. Meanwhile, you should find that
genr foo = <modelname>.$coeff
works (as you said), to give the vector of coeffcients, and also
that
genr foo = $coeff(<varname>)
works (for the last model estimated).
Allin.