On Tue, 18 Jan 2022, Sven Schreiber wrote:
Am 18.01.2022 um 03:18 schrieb Cottrell, Allin:
> I tried a simple example following your description and it worked
> fine. We'll need to see what's the active ingredient in your case.
Thanks, Allin. I was going to say my suspicion is that it's related to
the recent panel-time changes, but then Artur reported he knows the
problem already, in principle. [...]
Here's my simple case. Can you see what extra stuff you need to
introduce to provoke the problem?
<hansl>
function void pansmpl (series y, scalar val1, scalar val2)
series u = $unit
smpl u == val1 --restrict
print u
smpl u == val2 --restrict --replace
print u
end function
nulldata 40
setobs 4 1:1 --stacked-time
series y = normal()
# complicate things a little?
# smpl 2 8 --unit
pansmpl(y, 3, 7)
print -o
</hansl>
Allin