dynare

dynare — executes Dynare

Synopsis

dynare FILENAME[.mod] [noclearall] [savemacro] [debug] [notmpterms]

Description

dynare executes instruction included in FILENAME.mod. This user-supplied file contains the model and the processing instructions, as described in Chapter 4, The Model file.

Details

dynare begins by launching the preprocessor on the .mod file. By default (unless use_dll option has been given to model), the preprocessor creates three intermediary files:

FILENAME.m

Contains variable declarations, and computing tasks

FILENAME_dynamic.m

Contains the dynamic model equations

FILENAME_static.m

Contains the long run static model equations

These files may be looked at to understand errors reported at the simulation stage.

dynare will then run the computing tasks by executing FILENAME.m.

Options

noclearall

By default, dynare will issue a clear all command to Matlab® or Octave, thereby deleting all workspace variables; this options instructs dynare not to clear the workspace

savemacro

Instructs dynare to save the intermediary file which is obtained after macro-processing (see Section 13, “Macro-processing language”); the saved output will go in FILENAME-macroexp.mod

debug

Instructs the preprocessor to write some debugging information about the scanning and parsing of the .mod file

notmpterms

Instructs the preprocessor to omit temporary terms in the static and dynamic files; this generally decreases performance, but is used for debugging purposes since it makes the static and dynamic files more readable

Output

Depending on the computing tasks requested in the .mod file, executing command dynare will leave in the workspace variables containing results available for further processing. More details are given under the relevant computing tasks.

The M_, oo_ and options_ structures are also saved in a file called FILENAME_results.mat.

Examples

dynare ramst
dynare ramst.mod savemacro