Allin Cottrell schrieb:
On Thu, 18 Feb 2010, Sven Schreiber wrote:
> I can't seem to use the new restrict after gmm feature.
>
> gmm
> series e = y - x*beta
> orthog e ; x
> weights V
> params beta
> end gmm
>
> restrict
> beta = 3
> end restrict
You must refer to the parameters in the canonical way, as set out
in the help for "restrict". In this case,
restrict
b[1] = 3
end restrict
Hm, ok, but given that here gretl's syntax allows (actually: forces) the
user to specify the names of the parameters, I think those names should
be valid throughout. Maybe b[beta] would be a compromise. Or the use of
b[i] is enforced even in the formulation of the equation (that's what
Eviews does [did?]).
I guess that applies also to NLS, and MLE.
The error message was misleading, this is now fixed in CVS.
thanks!
-sven