Artur T. schrieb:
Sven Schreiber schrieb:
> Second, I don't really know what's happening. What's your dataset, your
> data range, and your sample selection when you call the function?
> Related to that, some speculation: Maybe your sample doesn't start at
> the first available obs in the dataset, so when the function tries to
> set the startobs to 1, it's illegal for it to do so. If that were the
> case, I'm not sure whether it's a gretl bug or a bug in my function.
> (Meaning, I'm not sure whether it should be considered illegal, or
> whether the smpl command inside a function should be evaluated relative
> to the current sample.)
> thanks for testing!
It seems that the error is caused by a change in the sample size. Using
the full range works fine (tested on other data sets) but as soon as I
change the sample start arbitrarily the error occurs again. Only
changing the sample end (leaving the start at its first observation)
does not lead to any error.
So that would seem to confirm my speculation... Actually while trying to
reproduce this behavior I found another bug (this time clearly not a
gretl bug) so I will prepare a new version that tries to squash them both.