On Thu, 8 Jan 2015, Logan Kelly wrote:
Thanks. I will update my gretl install and try to crash it. ;-)
Be my quest!
Quick question, is a string ok for the second argument? The help
indicates a comand line (RHS of the assignment statement) without
quotes. I have been putting a string variable in and it works. But
is this an abuse of the function on my part?
It's a fairly new function, and originally it required a string
representation of the relevant formula as the second argument. I
recently rejigged it to accept the series-defining expression
straight, for reasons of efficiency. However, for backward
compatibility the string second argument is still accepted.
(Efficiency: in the string case we have to "loop back" and call a
second instance of "genr" to create the target series, but with the
straight formula the target series gets generated on the fly, in the
same way as any compound series argument to a function.)
Allin