Skip to content

Commit

Permalink
add example dsge
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Feb 13, 2022
1 parent ce4bcf0 commit d20c1f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ An small-scale nonlinear New Keynesian model with ZLB is provided `as an example
The impulse responses are the usual dynamics of a nonlinear DSGE.

The `yaml files <https://github.com/gboehl/econpizza/tree/master/econpizza/examples>`_ follow a simple structure:
The folder `yaml files <https://github.com/gboehl/econpizza/tree/master/econpizza/examples>`_ also contains a medium scale New Keynesian DSGE model as an example file (`med_scale_nk.yaml`). It can be imported with `from econpizza import example_dsge`.

The yaml files in the folder follow a simple structure:

1. define all variables and shocks
2. provide the nonlinear equations. Note that the dash at the beginning of each line is *not* a minus!
2. provide the nonlinear equations. Note that each line starts with a `~`.
3. provide the parameters and values.
4. optionally provide some steady state values and/or values for initial guesses
5. optionally provide some auxilliary equations that are not directly part of the nonlinear system (see the `yaml for the BH model <https://github.com/gboehl/econpizza/blob/master/econpizza/examples/bh.yaml>`_)
1 change: 1 addition & 0 deletions econpizza/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@

example_nk = os.path.join(pth, "examples", "nk.yaml")
example_bh = os.path.join(pth, "examples", "bh.yaml")
example_dsge = os.path.join(pth, "examples", "med_scale_nk.yaml")

0 comments on commit d20c1f4

Please sign in to comment.