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>
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.
This is with a Dec 29th snapshot.
thanks
sven