Import parameters values in Dynare mod file

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.

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