On Tue, 30 Mar 2010, Ignacio Diaz-Emparanza wrote:
I would like to report a small bug with the assignment operator:
The script below contains one of the NLS examples in the gretl users
guide (Davidson):
<script>
open ects_nls.gdt
ols y 0 x1 x2 --vcv
genr alpha = $coeff(0)
genr beta = $coeff(x1)
genr a0 = alpha
genr b0 = beta
# with analytical derivatives
mod1 <- nls y = alpha + beta*x1 + (1/beta)*x2
deriv alpha = 1
deriv beta = x1 - x2/(beta*beta)
end nls --vcv
</script>
In line 4 from the bottom I modified the example writing the assignment
operator '<-' so that the NLS model should be saved in the session and
be available as 'mod1' in the icon view. The problem is that now if I
click on mod1 in the icon view, I see that the saved model is not the
NLS but the OLS.
Thanks, this now fixed in CVS.
Allin