On Wed, 2 Jul 2008, Allin Cottrell wrote:
On Tue, 1 Jul 2008, Gordon Hughes wrote:
> I have come across slightly strange and inconsistent behaviour
> in gretl. It is generated by the following script commands for
> a dataset that has been declared as a panel
>
> series panel_unit=$unit
> genr unitdum
> list dlist = du_*
> matrix dunit={dlist}
...
> When I run this as a script it fails at the "matrix
> dunit={dlist}" because all of the dummy variables are missing or
> rather "NA" even though panel_unit has created correctly.
Looking at the code, I now see "in principle" how this could
happen, but I'm still puzzled. If you call for "print -o"
for a series from your panel dataset, what do you see in the
leftmost Obs column? For example,
nulldata 50
setobs 5 1:01 --stacked-time-series
print -o
Obs index
1:1 1
1:2 2
1:3 3
1:4 4
1:5 5
2:1 6
and so on.
Allin.