Page 1 of 1

Import parameters values in Dynare mod file

PostPosted: Wed May 11, 2011 2:57 pm
by nborri1
Hi,

Is it possible to have Dynare .mod file import the parameters values from an external file (i.e., a Matlab mat file)?

Thank you

N.

Re: Import parameters values in Dynare mod file

PostPosted: Tue May 24, 2011 10:36 am
by SébastienVillemot
There is no command for doing that out of the box, but it is nevertheless feasible with some programming.

There are several ways of doing that that you could try:

  • load your MAT file from your MOD file, and repeatedly use the "set_param_value" command
  • alternatively, write a MATLAB program which creates a text file containing the parameter assignations, and include that generated file from the top-level MOD file using the "@#include" macro-processor command