Page 1 of 1

Dynare preamble: set a parameter which is a matrix

PostPosted: Thu Jan 27, 2011 1:30 pm
by Bene
Can I declare to Dynare preamble a parameter which is not a scalar but a matrix (NxN)?

I have a set of parameters stored in a matrix from another rutine, eg. A(5x5).
Am I forced to convert each cell of A into a 1x1 scalar parameter, eg. a=A(1,1); b=A(1,2); etc...
Or can I use directly A as a parameter in the declaration of the model?

Thanks

Re: Dynare preamble: set a parameter which is a matrix

PostPosted: Mon Feb 07, 2011 11:13 am
by SébastienVillemot
You need to convert everything to scalars. Dynare does not support matrix parameters, only scalar parameters.

Re: Dynare preamble: set a parameter which is a matrix

PostPosted: Tue Feb 08, 2011 2:02 pm
by Bene
Thanks Sebastien.