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.
Thanks for the report. I'll work on the problem, but in the meantime note
that you can work around it by simplifying your "outlier" function. You
have:
<hansl>
function series outlier (series Y)
smpl Y > quantile(Y,0.01) && Y < quantile(Y,0.99) --restrict --replace
series Ytmp = Y
smpl full
Y = Ytmp
return Y
end function
</hansl>
and the segfault is coming from incorrect handling of the panel
sub-sampling and restoration inside the function, which needs to be fixed.
But you don't need to mess with the sample; this should have the same
effect:
<hansl>
function series outlier (series Y)
scalar q01 = quantile(Y,0.01)
scalar q99 = quantile(Y,0.99)
return Y > q01 && Y < q99 ? Y : NA
end function
</hansl>
Allin