Overview: Econpizza#

Econpizza is a framework to solve and simulate fully nonlinear perfect foresight models, with or without heterogeneous agents. The package implements the solution method proposed in HANK on Speed: Robust Nonlinear Solutions using Automatic Differentiation (Gregor Boehl, 2023, SSRN No. 4433585). It allows to specify and solve nonlinear macroeconomic models quickly in a simple, high-level fashion.

The package builds heavily on automatic differentiation via JAX. A central philosophy is to consequently separate the low-level routines for model solution (which is what happens under the hood) from model specification (via a yaml file) and model analysis (what the user does with the model).

The package can solve nonlinear models with heterogeneous households or firms with one or two assets and portfolio choice. Steady state and nonlinear impulse responses (including, e.g., the ZLB) can typically be found within a few seconds. It not only allows to study the dynamics of aggregate variables, but also the complete nonlinear transition dynamics of the cross-sectional distribution of assets and disaggregated objects. Routines for models with a representative agents are also provided. These are faster and more reliable than the extended path method in dynare due to the use of automatic differentiation for the efficient Jacobian decompositions during each Newton-step. Nonlinear perfect-foresight transition dynamics can - even for large-scale nonlinear models with several occassionally binding constraints - be computed in less than a second.

How to cite#

Please cite with

    title       = {HANK on Speed: Robust Nonlinear Solutions using Automatic Differentiation},
    author      = {Boehl, Gregor},
    journal     = {Available at SSRN 4433585},
    year        = {2023}