[Gretl-devel] error with appending transformed series to lists

Sven Schreiber svetosch at gmx.net
Wed Jul 6 12:14:50 EDT 2016


Am 06.07.2016 um 18:10 schrieb Sven Schreiber:

> <hansl>
> list checkl = index
> series st = index^2
> checkl += st
> checkl += log(index)
> checkl += index^2    # fails
> </hansl>
>
> The on-the-fly transformation doesn't seem to be a problem per se, or
> else log(index) would also fail.
>

Ah, sorry to reply to myself (and so quickly), I think I understand: 
there is no named series for "index^2", and appending to a list doesn't 
work for an anonymous series. In contrast, "log(index)" is automatically 
named "l_index".

Using "square(index)" instead of "index^2" works.

thanks,
sven



More information about the Gretl-devel mailing list