Dear gretl community,
I am using gretl 1.7.4 under MS-Windows XP (Service Pack 2). My issue and question is the
following:
When using the gretl editor to write a piece of code, I have to split a command over
several lines. Specifically, with a panel dataset, I need to restrict the sample by just
keeping a small number of the firms included in the full dataset. I tried to do this in
various ways, but only one way appears to be feasible, as follows:
% code snippet begin ----
smpl --restrict firm=2 || \
firm=5 || \
firm=11
% code snippet end ----
My problem is that my subsample will contain many more than just 3 firms (over 30 firms,
that is), and when I code this in the way demonstrated above and run the code, gretl
unfortunately does not restrict the sample exactly as I say in the code. Specifically, (a)
firms appear in the subsample which are unwanted (like in the above example, having firm
17 in it), and also, (b) some firms I want to have are missing (like in the above example,
not having firm 5 in it).
I understand that the gretl character for splitting commands over several lines is the
"\" character. However, in my case at least, it seems that when the number of
lines over which the splitting takes place is larger, the command may not work properly.
Could anyone of you provide an idea what may be going on or an idea how to solve resp.
work around this problem, please? I'd appreciate this very much.
Many many thanks in advance.
Beek