Import parameters values in Dynare mod file

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.

Import parameters values in Dynare mod file

Postby nborri1 » Wed May 11, 2011 2:57 pm

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.
nborri1
 
Posts: 1
Joined: Fri Oct 10, 2008 4:07 pm
Location: Boston

Re: Import parameters values in Dynare mod file

Postby SébastienVillemot » Tue May 24, 2011 10:36 am

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
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests