Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / FR / FR_WLD_2025_379
fr

Reproducibility package for The World Bank's MFMod Framework In Python With Modelflow

2025
Get Reproducibility Package
Reference ID
FR_WLD_2025_379
DOI
https://doi.org/10.60572/4f0w-p770
Author(s)
Andrew Burns, Ib Hansen
Collections
Flagships and Reports
Metadata
JSON
Created on
Sep 08, 2025
Last modified
Sep 08, 2025
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Citation
  • Overview

    Abstract

    This book provides a comprehensive guide to using macroeconometric models developed by the World Bank using the Python modelling library ModelFlow. Assuming no previous knowledge of python, the book takes the reader through the installation process, and provides them with sufficient python and Jupyter notebook skills to work with World Bank models. Topics covered include acquiring a model, simulating a model, report writing and model analytics. The entire book was produced using Jupyter notebooks, so all of the examples and models discussed are available to readers as Jupyter Notebooks so that they can be used as a basis for independent learning and experimentation.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/index.php/catalog/324/download/984/README.pdf
    Reproducibility package for The World Bank's Mfmod Framework In Python With Modelflow
    File name
    RR_WLD_2025_379
    Zip package
    RR_WLD_2025_379.zip
    Title
    Reproducibility package for The World Bank's Mfmod Framework In Python With Modelflow
    Date
    2025-09
    Dependencies
    All dependencies are listed in the "environment.yml" file.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Python
    Name
    Python
    Version
    3.12.6

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise, version 24H2
    • Processor: Intel(R) Core(TM) Ultra 7 165U (2.10 GHz)
    • Memory available: 31.5 GB
    • Software version: Python 3.12.6

    Technology requirements

    Runtime: 20 minutes.

    Reproduction instructions

    Reproduction instructions are detailed in the README of the reproducibility package. They are summarized here:

    1. Replicate and activate the conda environment in the file "environment.yml" included in the reproducibility package, or manually install the dependencies "jupyter" and "jupyter-book" from the conda-forge channel of conda, "ModelFlow_book" from the channel ibh, and "dash_interactive_graphviz" from pip.
    2. Enable the necessary jupyter notebook extensions by running these commands:
      • jupyter contrib nbextension install --user
      • jupyter nbextension enable hide_input_all/main
      • jupyter nbextension enable splitcell/splitcell
      • jupyter nbextension enable toc2/main
      • jupyter nbextension enable varInspector/main
    3. Run the "build" Python script.

    Data

    Datasets
    World Bank Macrostructural Models
    Name
    World Bank Macrostructural Models
    Note
    Source: World Bank. The reproducibility package downloads and saves macrostructural models containing macroeconomic data for Bolivia, Croatia, Iraq, Nepal, Pakistan, and Turkiye using the Python package "modelflow_book". The data are collected and saved every time the code is executed; future versions of "modelflow_book" might contain updated data and not reproduce exactly the same results as verified by the reviewers. . The files are stored in the folders "mfbook/content/05_WBModels/WorldbankModels/{country}/data".
    Access policy
    All data sources are publicly available and collected when running the reproducibility package.
    Data statement

    All data sources are publicly available. (Open Data)

    Description

    Output
    The World Bank's MFMod Framework In Python With Modelflow
    Type
    Book
    Title
    The World Bank's MFMod Framework In Python With Modelflow
    Description
    Book
    Authors
    Author Affiliation Email
    Andrew Burns World Bank aburns@worldbank.org, home@a-burns.com
    Ib Hansen Danmarks Nationalbank (retired) ibhansen.iv@gmail.com
    Date of production

    2025-09-05

    Scope and coverage

    Geographic locations
    Location Code
    World WLD
    Keywords
    MFMod Macroeconomic Modelling
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    E17 Forecasting and Simulation: Models and Applications E1 Journal of Economic Literature (JEL)
    E13 Neoclassical E1 Journal of Economic Literature (JEL)
    C63 Computational Techniques • Simulation Modeling C6 Journal of Economic Literature (JEL)
    C88 Other Computer Software C8 Journal of Economic Literature (JEL)

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    Modified BSD3 https://opensource.org/license/bsd-3-clause/

    Contacts

    Contacts
    Name Affiliation Email
    Andrew Burns World Bank aburns@worldbank.org, home@a-burns.com
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DECDI World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2025-09-05

    Document version

    1

    Citation

    Citation
    loading, please wait...
    Citation format
    Export citation: RIS | BibTeX | Plain text
    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.