On Tue, 1 Mar 2016, Sven Schreiber wrote:
Am 01.03.2016 um 20:14 schrieb Allin Cottrell:
> On Tue, 1 Mar 2016, Sven Schreiber wrote:
>
>> Am 01.03.2016 um 19:44 schrieb Pedro Bação:
>>> Hello,
>>> If I run the script
>>>
>>> nulldata 10
>>> smpl 6 10
>>> series y=t
>>> matrix my=y
>>
>> I cannot explain why exactly you are getting the results you are
>> getting with the different gretl versions [...]
>
> The old version did not record and make use of the observation
> information when matrix (column vector) "my" was created. The new
> version does, so when you go to make a series out of "my", gretl
"knows"
> that it contains no data corresponding to observations 1 to 5.
>
Hm, I'm not sure I like it. I mean in principle it is very clever, but OTOH
up to now the clear distinction between series and matrices in gretl was that
that latter is just pure numbers (well, sometimes with column and row names,
ok).
I admit that sometimes I wish I could use matrices in gretl commands just
like series, and there are problems with the division between series and
matrices, but that's a pretty fundamental design decision. It kind of feels
like R-dataframe-envy or something like that :-)
And as Pedro demonstrated, trying to be clever does come with side effects.
I'm with Sven on this. It's ok to decorate matrices with row and column
names, but IMO the contents of a matrix should be completely independent
from the currently open dataset.
I can't remember when the feature Allin describes was introduced, nor why.
Perhaps I'm missing something here?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------