This repo contains the main files to implement the truncation method in heterogeneous-agent models. The associated article is “The truncation method to solve heterogeneous-agent models”, by François Le Grand and Xavier Ragot.
- First, to understand the algorithm, the best is to start from the file “0. Simple Case/Truncation_simple_case.m” This files is self-contained and commented to solve the model with aggregate shocks. It requires Matlab/Octave and Dynare.
- The Folder “1. Truncation” provides additional codes and is more efficient in solving the model. It requires the Julia language a. In this folder there is a README file which explains the various files. b. We solve for a Bewley model, using the EGM method and then provide procedures to aggregate models in the space of history, and then we write a Dynare code to solve the dynamics with perturbation method.
- The folder “2. Transition” provides the solution of the same model using the transitio. method.
- The folder “3. Reiter provides the solution of the same model using the Reiter model. The main file is “Main_Reiter.jl”. Note that we use the Dynare solver to implement the Reiter solution
- The folder “4. REPRESENTATIVE AGENT” provides the solution of the same model for the representative agent economy, using Dynare.
- The folder “5. Figures” contains a Julia code to Plot figures with the information contained in the other folders.
- The folder “6. Paper” provides the last version of the paper.