This repository contains the files to replicate the simulations of the paper "Interbank Decisions and Margins of Stability: an Agent-Based Stock-Flow Consistent Approach" published in the Journal of Economic Dynamics and Control.
To contact me: Jessica Reale
Please cite this article as: Reale J. (2024), Interbank Decisions and Margins of Stability: an Agent-Based Stock-Flow Consistent Approach, Journal of Economic Dynamics and Control, 160, 104822.
The src folder contains the following elements:
the main module of this project IMS.jl which includes:
the scripts to run the model:
run.jl;run_complex.jl.the model characteristics within the model folder that includes:
init.jl;params.jl;structs.jl;utils.jl which also includes the Stock-Flow consistency checks performed at each simulation step;SFC where all behavioural rules are defined for each class of agents/sectors:
the scripts to load the data collected and generate plots plots;
the scripts to run sensitivity analysis on parameter values and plot the results sensitivity-analysis.

We run the simulations over two scenarios (scenario) diversified by the interbank matching protocol. Each scenario is shocked with three experiments. The table below summarises the shocks we implement.
Shocks shock |
Variables | Step shock_incr |
|---|---|---|
| Missing-shock | – | – |
| Corridor-shock | icbl, icbd, icbt += 0.005 |
every 300 steps |
| Width-shock | icbl, icbt += 0.005 |
every 300 steps |
| Uncertainty-shock | PDU += 0.2 |
every 300 steps |
We perform sensitivity tests on ten parameters:
| Parameter | Range | Description |
|---|---|---|
model.r |
{0.9, 1.1, 1.3} | government debt-to-GDP ratio |
model.δ |
{0.05, 0.5, 1.0} | capital depreciation |
model.l |
{0.03, 0.5, 1.0} | share of non-performing loans |
model.γ |
{0.1, 0.5, 1.0} | households’ leverage |
model.gd |
{0.1, 0.5, 1.0} | proportion of wages deposited |
model.m1 |
[0.0:0.1:1.0] | RSF risk factor on short-term loans |
model.m2 |
[0.0:0.1:1.0] | RSF risk factor on medium-term loans |
model.m3 |
[0.0:0.1:1.0] | RSF risk factor on long-term government bonds |
model.m4 |
[0.0:0.1:1.0] | ASF risk factor on deposits |
model.m5 |
[0.0:0.1:1.0] | ASF risk factor on term interbank loans |