[Gretl-users] matrix declaration error

Allin Cottrell cottrell at wfu.edu
Tue Jan 30 16:16:49 EST 2007


I think Ignacio or Sven probably answered this one already, but 
just to make sure....

On Tue, 30 Jan 2007, nadaud at centre-cired.fr wrote:

> I have a problem with matrix code. the following is part of my code :
>
> # standard errors of elasticities
> matrix EP={EP11,EP12,EP13;EP21,EP22,EP23;EP31,EP32,EP33}
> matrix EP
> matrix ER1
> matrix ER2
> matrix ER3
> matrix ER = {ER1;ER2;ER3}
> matrix ER
>
> The EP matrix is built without any problem but not the ER 
> matrix...

The syntax

matrix M = { X1;X2;X3 }

is designed for the case where X1, X2 and X3 are either scalars or 
series, not matrices.  For sticking matrices together 
(horizontally) one uses

matrix M = X1~X2~X3

Sticking matrices together vertically, we're working on!

Allin.



More information about the Gretl-users mailing list