2011-12-02 18:25:11 +01:00
|
|
|
Dynare
|
|
|
|
======
|
|
|
|
|
|
|
|
For information about how to use Dynare, you should have a look at the
|
|
|
|
documentation located in the 'doc' subdirectory of your Dynare installation (you
|
|
|
|
should have a shortcut in your Start Menu to access it directly).
|
|
|
|
|
|
|
|
Beginners should start with the Dynare user guide (under PDF format in
|
|
|
|
'UserGuide.pdf'). There is also a complete reference manual documenting all
|
|
|
|
Dynare functions (under HTML format in 'dynare.html/index.html', under PDF
|
|
|
|
format in 'dynare.pdf').
|
|
|
|
|
|
|
|
You can also get more information on the web, on Dynare homepage:
|
|
|
|
|
|
|
|
http://www.dynare.org
|
|
|
|
|
|
|
|
Or on Dynare Wiki:
|
|
|
|
|
|
|
|
http://www.dynare.org/DynareWiki
|
|
|
|
|
|
|
|
NOTE: To uninstall Dynare, simply drag the Dynare installation directory to the
|
|
|
|
Trash.
|
|
|
|
|
|
|
|
|
|
|
|
Using Dynare with MATLAB (R)
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
Dynare works on all versions of MATLAB (R) for Intel Macs.
|
|
|
|
|
|
|
|
To use Dynare, you just have to add the 'matlab' subdirectory of your Dynare
|
|
|
|
installation to MATLAB (R) path. You have two options for doing that:
|
|
|
|
|
|
|
|
* Use the addpath command, by typing the following (assuming that you have
|
|
|
|
installed Dynare at the standard location, and replacing '4.x.y' by correct
|
|
|
|
version number):
|
|
|
|
|
|
|
|
addpath /Applications/Dynare/4.x.y/matlab
|
|
|
|
|
|
|
|
MATLAB (R) will not remember this setting next time you run it, and you will
|
|
|
|
have to do it again.
|
|
|
|
|
|
|
|
* Select the "Set Path..." entry in the "File" menu, then click on "Add
|
|
|
|
Folder...", and select the 'matlab' subdirectory of your Dynare
|
|
|
|
installation. Note that you SHOULD NOT use "Add with Subfolders...". Apply
|
|
|
|
the settings by clicking on "Save". Note that MATLAB (R) will remember this
|
|
|
|
setting next time you run it.
|
|
|
|
|
|
|
|
You can test your installation by typing 'dynare' at the MATLAB (R)
|
|
|
|
prompt. This should give you an error message complaining that you did not
|
|
|
|
specify a MOD file.
|
|
|
|
|
|
|
|
|
|
|
|
Using Dynare with Octave
|
|
|
|
------------------------
|
|
|
|
|
2012-08-07 15:45:17 +02:00
|
|
|
Dynare also works on top of GNU Octave, a free clone of MATLAB (R) (see
|
2011-12-02 18:25:11 +01:00
|
|
|
<http://www.octave.org>).
|
|
|
|
|
2012-08-07 15:45:17 +02:00
|
|
|
This version of Dynare is compiled for Octave 3.6.2, and may not work
|
|
|
|
with other versions of Octave. You can download Octave through the Homebrew
|
|
|
|
package manager:
|
2011-12-02 18:25:11 +01:00
|
|
|
|
2012-08-07 15:45:17 +02:00
|
|
|
http://mxcl.github.com/homebrew
|
2011-12-02 18:25:11 +01:00
|
|
|
|
|
|
|
Every time you run Octave, you should type the two following commands (assuming
|
|
|
|
that you have installed Dynare at the standard location, and replacing '4.x.y'
|
|
|
|
by correct version number):
|
|
|
|
|
|
|
|
addpath /Applications/Dynare/4.x.y/matlab
|
|
|
|
|
|
|
|
NOTE: if you don't want to type this command every time you run Octave, you can
|
|
|
|
put it in a file called '.octaverc' in your home directory ('/Users/USERNAME').
|
|
|
|
This file is run by Octave at every startup.
|
|
|
|
|
|
|
|
You can test your installation by typing 'dynare' at the Octave prompt. This
|
|
|
|
should give you an error message complaining that you did not specify a MOD
|
|
|
|
file.
|
|
|
|
|
|
|
|
|
|
|
|
Dynamic Loadable Libraries
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
For better performance, some parts of Dynare are written in the C++ language,
|
|
|
|
which is faster than standard M-files. These parts are compiled and distributed
|
|
|
|
as shared libraries, located in the 'mex' subdirectory of your Dynare installation.
|
|
|
|
|
|
|
|
If the libraries are correctly detected by MATLAB (R) or Octave, the following should
|
|
|
|
be displayed when you launch Dynare:
|
|
|
|
|
|
|
|
Configuring Dynare ...
|
2012-08-07 15:45:17 +02:00
|
|
|
|
2011-12-02 18:25:11 +01:00
|
|
|
[mex] Generalized QZ.
|
|
|
|
[mex] Sylvester equation solution.
|
|
|
|
[mex] Kronecker products.
|
|
|
|
[mex] Sparse kronecker products.
|
2012-08-07 15:45:17 +02:00
|
|
|
[mex] Local state space iteration (second order).
|
2011-12-02 18:25:11 +01:00
|
|
|
[mex] Bytecode evaluation.
|
|
|
|
[mex] k-order perturbation solver.
|
|
|
|
[mex] k-order solution simulation.
|
2012-08-07 15:45:17 +02:00
|
|
|
[mex] Quasi Monte-Carlo sequence (Sobol).
|
2011-12-02 18:25:11 +01:00
|
|
|
|
|
|
|
On the contrary, if the libraries are not detected, Dynare will fallback on
|
|
|
|
slower alternatives written in M-files (which exist for some of the libraries),
|
|
|
|
and display the following:
|
|
|
|
|
|
|
|
Configuring Dynare ...
|
|
|
|
[m] Generalized QZ.
|
|
|
|
[m] Sylvester equation solution.
|
|
|
|
[m] Kronecker products.
|
|
|
|
[m] Sparse kronecker products.
|
2012-08-07 15:45:17 +02:00
|
|
|
[m] Local state space iteration (second order).
|
2011-12-02 18:25:11 +01:00
|
|
|
[no] Bytecode evaluation.
|
|
|
|
[no] k-order perturbation solver.
|
|
|
|
[no] k-order solution simulation.
|
2012-08-07 15:45:17 +02:00
|
|
|
[no] Quasi Monte-Carlo sequence (Sobol).
|
2011-12-02 18:25:11 +01:00
|
|
|
|
|
|
|
In this last case, Dynare will run correctly on the basic features,
|
|
|
|
but with suboptimal speed, and some features will be missing. There
|
|
|
|
could be several reasons for MATLAB (R) or Octave failing to detect
|
|
|
|
the libraries:
|
|
|
|
|
|
|
|
* Your path settings may be wrong. Make sure that the 'matlab' subdirectory of
|
|
|
|
your Dynare installation is the only Dynare directory present in the path
|
|
|
|
variable.
|
|
|
|
|
|
|
|
* Your MATLAB (R) or Octave version may be incompatible with the provided
|
|
|
|
binaries.
|
|
|
|
|
|
|
|
* You may have a custom M-file in your search path with the same name as one of
|
|
|
|
the Dynare libraries, thereby overriding it.
|
|
|
|
|
|
|
|
|
|
|
|
Credits
|
|
|
|
-------
|
|
|
|
|
|
|
|
MATLAB (R) is a registered trademark of The Mathworks, Inc.
|