On Tue, 1 Oct 2013, Artur T. wrote:
I've got an issue with the following. It used to work in the
past, but
doesn't do so anymore. I want to estimate a panel model for a sub-sample
dataset. I am using current cvs on linux.
<hansl>
open abdata.gdt
# Restriction for which panel structure remains
smpl YEAR > 1977 --restrict
smpl full
# Restriction for which panel structure doesn't remain
# -> Undated dataset
smpl YEAR > 1977 && EMP > 40 --restrict
# Redefinition to panel structure is not allowed acc. to gretl
setobs unit YEAR --panel-vars
<\hans>
Any hints what's wrong here?
A short statement for the record:
We can't guarantee the safety of using setobs with the --panel-vars option
when the dataset is sub-sampled: this is known to crash gretl under some
conditions. That's why it is now not allowed. The safe way of doing this
is to use the --balanced option with the smpl command. In this case:
smpl YEAR > 1977 && EMP > 40 --restrict --balanced
(The --balanced option may be turned into the default for panel data,
depnding on how discussion goes.)
Allin Cottrell