Hi all,
I am bit puzzled about the following behaviour. Even though, the sample
is restricted to "t>3" obs. only, the strvals() function returns the
distinct string-values of series x of the full data set. Is this
intended, or a bug? I use latest git version on Ubuntu 19.04.
<hansl>
clear
set verbose off
nulldata 6 -p
genr time
series x = 1
smpl time > 3 --restrict
x = 2
smpl full
strings names = defarray("A", "B")
stringify(x, names)
eval strvals(x) # shows ["A", "B"]
smpl time > 3 --restrict
eval strvals(x) # still shows ["A", "B"]
</hansl>
Best,
Artur
Show replies by date