On Wed, 30 Jul 2008, Sven Schreiber wrote:
The following script gives an error:
# meta parameters (stacked time series)
N = 5000
T = 5
size = N*T
nulldata size
setobs T 1:1 --stacked-time-series
Obviously, setobs doesn't accept a variable for the periodicity.
It could be just a missing feature, but in the realm of gretl's
versatile scripting language I'm actually inclined to call it a
bug.
The failure here is over-determined: (a) up till now, setobs has
not accepted a variable for its first argument, only a numerical
value. That's now fixed in CVS. But then (b), as you noted
subsequently, "T" has been deleted by the time setobs is called.
We have a "preserve" option for nulldata. At present this only
preserves existing matrices. I think it should probably preserve
existing scalars too, but I'm not going to attempt that for 1.7.6,
I'll put it on the list for 1.7.7.
Allin.