Differences between revisions 23 and 24
Revision 23 as of 2009-09-02 16:43:44
Size: 2283
Comment:
Revision 24 as of 2009-10-01 09:54:15
Size: 2368
Comment:
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:
Note that the type change applies to the ''whole'' MOD file. This command is mainly useful when symbol declarations are taken from an included file, and you want to change the types of some variables (for example for "variable flipping"). Note that the type (parameters, var or varexo) change applies to the ''whole'' MOD file. This command is mainly useful when symbol declarations are taken from an included file, and you want to change the types of some variables (for example for "variable flipping"). This feature should not be used for dynamic simulations.

This page documents new or previously undocumented features.

New in Dynare 4.0

Preprocessor

Dynare functions

Octave support (free alternative to Matlab)

New in Dynare unstable (to be released as version 4.1)

var alpha;
parameters beta;
...
change_type(parameters) alpha;
change_type(var) beta;

Note that the type (parameters, var or varexo) change applies to the whole MOD file. This command is mainly useful when symbol declarations are taken from an included file, and you want to change the types of some variables (for example for "variable flipping"). This feature should not be used for dynamic simulations.

  • The macro-language accepts a new operator in, which tests memberships of an element inside an array. In the following example, the body of the if statement will be evaluated:

@#define x = [ 1 3 5 ]
@#if 3 in x
...
@#endif
  • The Dynare command line accepts three new options:
    • onlymacro: only do the macro-processing step and stop there

    • nolinemacro: do not include original line numbers in the macro-expanded MOD file

    • savemacro=filename: save the macro-expanded file in filename (if no filename is specified, a default value is computed: it is obtained by adding -macroexp to the name of the MOD file)

DynareWiki: NewFeatures (last edited 2017-05-29 09:09:50 by StéphaneAdjemian)