ABCredit.jl

A fast and simple to use Julia implementation of the macroeconomic model described in [Assenza, Delli Gatti, Grazzini (2015)]
Author bancaditalia
Popularity
8 Stars
Updated Last
3 Months Ago
Started In
June 2024
Logo adapts to light and dark modes *

The ABC of macroeconomic agent-based modelling

A fast and easy to use Julia implementation of the model described in Emergent dynamics of a macroeconomic agent based model with capital and credit. The package can be used to simulate the original model or as a base for extensions. If you are not familiar with Julia and the way in which multiple dispatch allows for powerful extensions, don't hesitate to get in touch!

Installation

using Pkg
Pkg.add("ABCredit")

Quick example

using ABCredit

W = 1000 # number of workers
F = 100  # number of consumption firms
N = 20   # number of capital firms

model = ABCredit.initialise_model(W, F, N)

T = 1000 # number of epochs

d = ABCredit.run_one_sim!(model, T)

To plot the results of the simulation, install the Plots package via Pkg.add("Plots") and then run

using Plots

plot(d.Y_real)

Citing ABCredit

If you found this package useful for your research, please cite the following publication

@inproceedings{glielmo2023reinforcement,
  title={Reinforcement Learning for Combining Search Methods in the Calibration of Economic ABMs},
  author={Aldo Glielmo and Marco Favorito and Debmallya Chanda and Domenico Delli Gatti},
  booktitle={Proceedings of the Fourth ACM International Conference on AI in Finance},
  pages={305--313},
  year={2023}
}

Disclaimer

This package is an outcome of a research project. All errors are those of the authors. All views expressed are personal views, not those of Bank of Italy.

* Credits to Sara Corbo for the logo, echoing the logo of BeforeIT but with warmer colors.

Used By Packages

No packages found.