Am 04.12.2015 um 18:28 schrieb Sven Schreiber:
Hi again,
as you will notice, I am currently working on a real-life panel dataset,
and so here's another panel problem, with example; the following doesn't
work for me ("no obs would be left"):
<hansl>
open abdata.gdt
smpl IND == 3 --restrict # leaves 89 obs
smpl unit == min(unit) --restrict # lowest unit value of the 89 obs is 6
</hansl>
OTOH I just noticed that the following variant works:
<hansl>
open abdata.gdt
smpl IND == 3 --restrict # leaves 89 obs
scalar u = min(unit)
smpl unit == u --restrict # lowest unit value of the 89 obs is 6
</hansl>
So maybe it is something more trivial, a limitation of the type of
expressions allowed in a smpl command?
thanks,
sven