Gustavo Arruda
DSGE Lab
Research
Runtime idle
New Keynesian, 3 equationsGalí (2015), ch. 3
Not validated
Stage 1

Start from a model

Bring your own .mod file or open one of the canonical models. Linear models, first order, impulse responses.

Drop a .mod file

or browse your files

Reads a documented subset: var, varexo, parameters, model(linear), shocks, stoch_simul. Leads and lags up to one period. Macro directives and external steady-state functions are not covered.

Canonical models

Stage 1 · Compose

Build from blocks

Pick components on the left. The stack on the right is the model as it stands, and the wiring panel tracks every symbol that is still unresolved.

Wiring

Closed

Model stack

Generated .mod

Stage 2

Check what the parser read

Declarations on the left as written, structure on the right as understood. Edit any parameter and the whole path downstream recomputes.

nk_gali_ch3.mod

Declarations

Endogenous
Exogenous
Steady state
Declared model(linear). All variables are deviations from steady state, so the steady state is the zero vector and the residual check is exact.

Parameters

as declared
A link carries the model and the calibration in the fragment, which never reaches a server.

Equations

Stage 3

Does the model have a solution

The eigenvalues of the transition matrix against the unit circle. Blanchard-Kahn holds when the number of roots outside the circle equals the number of forward-looking variables.

Eigenvalues

outside the circle (explosive) inside the circle (stable)
2
roots outside
the unit circle
=
2
forward-looking
variables

Determinacy over two parameters

unique stable equilibrium indeterminate no stable solution boundary, refined by bisection
Click anywhere on the map to load that calibration. Every cell is the same QZ the verdict above runs, solved in the worker so the page stays live while the region is drawn.
Stage 4

Shocks and responses

Impulse responses to a one-time innovation. Pin a calibration to keep it on screen while you move the parameters.

Shock
Impulse
0.25
0.50
20 q
now
Calibration

Theoretical moments

What the peak depends on

Each parameter moves ten per cent either way, on its own, and the model is solved again. One at a time says nothing about what two parameters do together, and ten per cent is a local answer: the policy map is where a two dimensional question gets a two dimensional answer.

Forecast error variance