Allin,
Please forgive the silly question, but just out of curiosity
Why is the double minus "--" ok?
Logan
Sent from my T-Mobile 4G LTE Device
-------- Original message --------
From: Allin Cottrell <cottrell@wfu.edu>
Date:2015/03/14 9:15 AM (GMT-06:00)
To: Gretl list <gretl-users@lists.wfu.edu>
Cc:
Subject: Re: [Gretl-users] why the error
On Sat, 14 Mar 2015, Sven Schreiber wrote:
> Am 14.03.2015 um 09:36 schrieb Qi Shi:
>
>> ? list X=dummify(Z5) --drop-first
>>> list X=dummify(Z5) --drop-
>> The symbol 'drop' is undefined
>>
>> Error executing script: halting
>>> list X=dummify(Z5) --drop-first
>> "
>>
>> why did i encounter the error?
>>
>
> You're mixing up the 'dummify' command with the 'dummify()' function.
> Only the command takes these double-dash-style options like
> "--drop-first". For the function you have a second argument, please see
> the help for that (haven't used it myself yet).
>
> Remark for Allin and Jack:
> BTW, I think the error message is strange insofar as IMO the parser
> should complain already about the "--" in there, not about the "drop"
> word, no? But perhaps this has been changed since last release.
The "--" is in principle OK if interpreted as "minus minus",
as in "y = f(x) --a".
Allin
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users