On Fri, 19 Feb 2010, Sven Schreiber wrote:
Allin Cottrell schrieb:
> On Fri, 19 Feb 2010, Sven Schreiber wrote:
>
>> 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.
>
> b[beta] works OK. I'll think about how we might permit use of the
> original (scalar) parameter names for NLS, MLE and GMM.
well as I said, b[beta] seems like an ok solution, so if that works
already, and with a more informative error message, maybe no need to
touch that.
In fact, it was not too difficult to enable the use of the
original names of scalar parameters for MLE, NLS and GMM, in the
context of a "restrict" block. That's now in CVS. It looks better
that way, since when gretl prints the restriction (so you can
verify that it has been recognized correctly) it uses the
parameter names.
Allin