On Tue, 31 Jan 2012, Beek Pang wrote:
I am usingĀ gretl 1.7.4 under MS-Windows XP (Service Pack
2). My issue and question is the following:
That's an ancient version of gretl you have. Please try with
gretl 1.9.7.
I tried the following example using a panel dataset named
"airfare" (in the collection of Wooldridge data files for
gretl), and the sample restriction works as you'd expect:
open airfare.gdt
series firm = id
smpl --restrict firm=1 || firm=2 || \
firm=5 || firm=11 || \
firm=13 || firm=20 || \
firm=21 || firm=24 || \
firm=30 || firm=32 || \
firm=39 || firm=43 || \
firm=47 || firm=50 || \
firm=52 || firm=54 || \
firm=57 || firm=63 || \
firm=73 || firm=74 || \
firm=85 || firm=86 || \
firm=90 || firm=98 || \
firm=102 || firm=121 || \
firm=134 || firm=142 || \
firm=205 || firm=210 || \
firm=224 || firm=236
print firm -o
Allin Cottrell