Dynare preamble: set a parameter which is a matrix

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Dynare preamble: set a parameter which is a matrix

Postby Bene » Thu Jan 27, 2011 1:30 pm

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
Bene
 
Posts: 7
Joined: Thu Dec 11, 2008 6:29 pm

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

Postby SébastienVillemot » Mon Feb 07, 2011 11:13 am

You need to convert everything to scalars. Dynare does not support matrix parameters, only scalar parameters.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

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

Postby Bene » Tue Feb 08, 2011 2:02 pm

Thanks Sebastien.
Bene
 
Posts: 7
Joined: Thu Dec 11, 2008 6:29 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests