On Tue, 10 Sep 2013, Artur Tarassow wrote:
I obtain an error running the following script + panel dataset. The
error message I receive is
*** Error in `/usr/bin/gretl_x11': corrupted double-linked list:
0x0a2a82c0 ***
and gretl stops working. I am using current cvs on ubuntu.
I finally found the place in gretl_panel.c where it says:
/* FIXME sub-sampled dataset (needs to be disallowed?) */
The thing that I thought might have to be disallowed (and I now see it
does have to be!) is the setting of panel structure as in your
setobs ID year --panel
after sub-sampling the dataset. That now generates an error message.
However, there are other ways of doing what you want.
1) Just do "setobs ID year --panel" once, right after opening your
dataset. Your subsequent sample restrictions do not destroy the panel
structure, since they just involve removing (all countries for certain
years) or (all years for certain countries).
2) If you want a "really" smaller dataset, then
i) Apply all your restrictions.
ii) Save the reduced dataset ("store")
iii) Open the reduced dataset and do setobs ID year --panel
Allin