This is the code repository for code used in Setterfield and Wheaton (2024) - Animal spirits and the Goodwin pattern. Please acknowledge the use of this by citing the following,
Mark Setterfield & George Wheaton, 2024. "Animal spirits and the Goodwin pattern," Working Papers 2407, New School for Social Research, Department of Economics.
available at https://ideas.repec.org/p/new/wpaper/2407.html
This agent-based model makes use of Julia's agents.jl library. See https://juliadynamics.github.io/Agents.jl/stable/.
The source code is under the src/ directory and the Jupyter notebook for driving the simulations (as well as the code for producing the figures in the paper) is under the notebooks/ directory.
This code has been provided with a Julia package definition can be installed locally through Julia's package management. See https://pkgdocs.julialang.org/v1/managing-packages/ for installing from an unregistered Github repository.