Am 19.01.22 um 12:34 schrieb Sven Schreiber:
Am 18.01.2022 um 17:58 schrieb Allin Cottrell:
> Here's my simple case. Can you see what extra stuff you need to
> introduce to provoke the problem?
OK, thanks, this is helpful. I managed to provoke the same error message
that I had before (no obs would be left):
<hansl>
function void pansmpl (series y, int val1, int val2)
series u = $unit
smpl u == val1 --restrict
print u
# workaround:
# smpl --full
smpl u == val2 --restrict --replace
print u
end function
nulldata 40
setobs 4 1:1 --stacked-time
series y = normal()
setobs 4 2000:1 --panel-time
series mydates = $obsdate
smpl mydates < 20001001 --restrict # discard last quarter
pansmpl(y, 3, 7)
</hansl>
The error is confirmed here, too (latest git under linux).
Whether it's truly my problem I'm not 100% sure, but the
setup looks
quite similar indeed. Notice that the extra "smpl --full" line seems to
solve it, like Artur also remarked.
True, not 100 % sure whether it replicates the error you and I have
experienced. But still it looks like you've found a way to replicate
_some_ bug :-D
Artur