On 11/17/2012 07:53 PM, Lee Adkins wrote:
Thanks Sven. That is clever! I suppose that there is some danger
in
referring to a list in a bundle since variable ID numbers can change
when a variable is deleted?
I don't know, I still don't completely understand how lists are handled
in gretl internally, but I guess it's possible that that's the reason.
OTOH that would also affect the lists themselves, whether or not they
are also part of a bundle. So I suppose there must be something else
going on as well.
Personally I don't really bother with the ID numbers, precisely because
they can change all the time. To my mind, the unique key to a series is
simply its identifier (the string), and nothing else. AFAI understand,
internally these need to be mapped to some ID number because the number
then essentially gives the position of the series in the internal
dataset array (or something closely related).
If a list were just a collection of names of series which would be
resolved to the actual series every time something is done with the list
(or its members), then I don't see any reason why a list couldn't also
live in a bundle. But I guess for performance reason that's not quite
how they work.
good luck with your project,
sven