Feel free to download and use the codes. Please cite the source if you use them in public events or for publication.

Videos

Video tutorials are available at the links below:

Request the passwords to access the videos by contacting  marco.veronese.passarella@gmail.com. The related codes and additional codes can be downloaded from my GitHub repository. NEW

See also the seminar by Gennaro Zezza on Applied Stock-Flow Consistent Modelling (YouTube)


R codes for selected SFC and AB toy models (see also my GitHub repository).

  • SIM model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 3, figures 3.2 and 3.3. See also: Matlab version; Python version; EViews version (from Gennaro Zezza‘s website). If you would like to receive a Simulink version, just contact me.
  • SIM model 2. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 3, figure 3.1.
  • SIM micro model. This code replicates model SIM but using individual consumption functions.
  • PC model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 4, figures 4.3 and 4.4.
  • EMP model (or PC BIMETS model). This code replicates and estimates model PC by using Eurostat data for Italy and the Bimets package. NEW
  • PCEX2 model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 4, figures 4.9 and 4.10.
  • OPEN model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 6, figures 6.8 to 6.11.
  • OPENFLEX model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 12.
  • BMW model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 7, figures 7.1 to 7.4.

Other useful codes:

  • HIA model. This code replicates results in the book Economics with Heterogeneous Interacting Agents, by Alessandro Caiani, Alberto Russo, Antonio Palestrini and Mauro Gallegati, chapter 2.2, figure 2.4.
  • Solow model. This code replicates the dynamics of a Solow-like growth model.
  • SIR model. This code replicates a simple Susceptible-Infected-Recovered model of virus spread, assuming a fixed population with only three compartments (susceptible, infected and removed).
  • SIM interactive model with Python (Jupyter Viewer). This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 3, figures 3.2, 3.3 and 3.8.

Models from my publications (in progress):

  • Economy-Finance-Environment-Society Interconnections in a Stock-Flow Consistent Dynamic Model (with E. Carnevali, M. Deleidi and R. Pariboni), Review of Political Economy, 2023. EViews code: model; dataset: data
  • Is the Italian government debt sustainable? Scenarios after the Covid-19 shock (with
    R. Canelli, G. Fontana and R. Realfonzo), Cambridge Journal of Economics, 2022. R code: Italy-SFC-Model
  • A comprehensive comparison of fiscal and monetary policies: a comparative dynamics approach (with M. Sawyer), Structural Change and Economic Dynamics, 2021. R codes (STRECO 2021 model)
  • Cross-border financial effects of global warming in a two-area SFC model (with E. Carnevali, M. Deleidi and R. Pariboni), Socio-Economic Planning Sciences, 2020. Eviews program file, data
  • Assessing the Marshall-Lerner condition within a stock-flow consistent model (with E. Carnevali and G. Fontana), Cambridge Journal of Economics, 2019. EViews program file: openflex model, openfix model
  • SFC models: features, limitations and developments (with E. Carnevali, M. Deleidi and R. Pariboni), International Papers of Political Economy, 2019. EViews program file
  • The monetary circuit in the age of financialisation (with M. Sawyer), Metroeconomica, 2017. EViews program file

Web resources for SFC modellers and other useful links:

  • SIM model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 3, figures 3.2 and 3.3. See also: Matlab version; Python version; EViews version (from Gennaro Zezza‘s website). If you would like to receive a Simulink version, just contact me.
  • SIM model 2. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 3, figure 3.1.
  • SIM micro model. This code replicates model SIM but using individual consumption functions.
  • PC model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 4, figures 4.3 and 4.4.
  • EMP model (or PC BIMETS model). This code replicates and estimates model PC by using Eurostat data for Italy and the Bimets package. NEW
  • PCEX2 model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 4, figures 4.9 and 4.10.
  • OPEN model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 6, figures 6.8 to 6.11.
  • OPENFLEX model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 12.
  • BMW model. This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 7, figures 7.1 to 7.4.

Other useful codes:

  • HIA model. This code replicates results in the book Economics with Heterogeneous Interacting Agents, by Alessandro Caiani, Alberto Russo, Antonio Palestrini and Mauro Gallegati, chapter 2.2, figure 2.4.
  • Solow model. This code replicates the dynamics of a Solow-like growth model.
  • SIR model. This code replicates a simple Susceptible-Infected-Recovered model of virus spread, assuming a fixed population with only three compartments (susceptible, infected and removed).
  • Covid-19 Data Analysis. This code was developed by Yanchang Zhao. It is an analysis report of the Novel Coronavirus (COVID-19) around the world, to demonstrate data processing and visualisation with R, tidyverse and ggplot2.
  • SIM interactive model with Python (Jupyter Viewer). This code replicates results in the book Monetary Economics: An Integrated Approach to Credit, Money, Income, Production and Wealth, by Wynne Godley and Marc Lavoie, chapter 3, figures 3.2, 3.3 and 3.8.

Models from my publications 


Web resources for SFC modellers and other useful links:


Share on Socials: