2018-10-25 16:31:53 +02:00
|
|
|
|
.. default-domain:: dynare
|
|
|
|
|
|
|
|
|
|
########
|
|
|
|
|
Examples
|
|
|
|
|
########
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
Dynare comes with a database of example ``.mod`` files, which are
|
|
|
|
|
designed to show a broad range of Dynare features, and are taken from
|
|
|
|
|
academic papers for most of them. You should have these files in the
|
|
|
|
|
``examples`` subdirectory of your distribution.
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
Here is a short list of the examples included. For a more complete
|
|
|
|
|
description, please refer to the comments inside the files themselves.
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
``ramst.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
An elementary real business cycle (RBC) model, simulated in a
|
|
|
|
|
deterministic setup.
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
``example1.mod``
|
|
|
|
|
``example2.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
Two examples of a small RBC model in a stochastic setup, presented
|
|
|
|
|
in *Collard (2001)* (see the file ``guide.pdf`` which comes with
|
|
|
|
|
Dynare).
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
``example3.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
A small RBC model in a stochastic setup, presented in *Collard
|
|
|
|
|
(2001)*. The steady state is solved analytically using the
|
|
|
|
|
``steady_state_model`` block (see :bck:`steady_state_model`).
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
``fs2000.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
A cash in advance model, estimated by *Schorfheide (2000)*. The
|
|
|
|
|
file shows how to use Dynare for estimation.
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
``fs2000_nonstationary.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
The same model than ``fs2000.mod``, but written in non-stationary
|
|
|
|
|
form. Detrending of the equations is done by Dynare.
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
``bkk.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
Multi-country RBC model with time to build, presented in *Backus,
|
|
|
|
|
Kehoe and Kydland (1992)*. The file shows how to use Dynare’s
|
2019-06-25 08:58:44 +02:00
|
|
|
|
macro processor.
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
``agtrend.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
Small open economy RBC model with shocks to the growth trend,
|
|
|
|
|
presented in *Aguiar and Gopinath (2004)*.
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
2021-08-16 15:39:33 +02:00
|
|
|
|
``Gali_2015.mod``
|
|
|
|
|
|
|
|
|
|
Basic New Keynesian model of *Galí (2015)*, Chapter 3 showing how to
|
|
|
|
|
i) use "system prior"-type prior restrictions as in *Andrle and Plašil (2018)*
|
|
|
|
|
and ii) run prior/posterior-functions.
|
|
|
|
|
|
2018-10-25 16:31:53 +02:00
|
|
|
|
``NK_baseline.mod``
|
|
|
|
|
|
2019-02-04 14:44:01 +01:00
|
|
|
|
Baseline New Keynesian Model estimated in *Fernández-Villaverde
|
|
|
|
|
(2010)*. It demonstrates how to use an explicit steady state file
|
|
|
|
|
to update parameters and call a numerical solver.
|
2020-01-10 17:52:18 +01:00
|
|
|
|
|
2021-08-12 20:57:21 +02:00
|
|
|
|
``Occbin_example.mod``
|
|
|
|
|
|
2021-08-16 12:26:20 +02:00
|
|
|
|
RBC model with two occasionally binding constraints. Demonstrates
|
2021-08-12 20:57:21 +02:00
|
|
|
|
how to set up Occbin.
|
|
|
|
|
|
2020-01-10 17:52:18 +01:00
|
|
|
|
``Ramsey_Example.mod``
|
|
|
|
|
|
|
|
|
|
File demonstrating how to conduct optimal policy experiments in a
|
|
|
|
|
simple New Keynesian model either under commitment (Ramsey) or using
|
2020-11-13 14:29:12 +01:00
|
|
|
|
optimal simple rules (OSR)
|
|
|
|
|
|
|
|
|
|
``Ramsey_steady_file.mod``
|
|
|
|
|
|
|
|
|
|
File demonstrating how to conduct optimal policy experiments in a
|
|
|
|
|
simple New Keynesian model under commitment (Ramsey) with a user-defined
|
2021-08-16 12:26:20 +02:00
|
|
|
|
conditional steady state file
|