Skip to main content

Global Macro Database by Karsten Müller, Chenzi Xu, Mohamed Lehbib and Ziliang Chen (2025)

Project description

The Global Macro Database (Python Package)

Website Badge

License: MIT

Link to paper 📄

This repository complements paper, Müller, Xu, Lehbib, and Chen (2025), which introduces a panel dataset of 46 macroeconomic variables across 243 countries from historical records beginning in the year 1086 until 2024, including projections through the year 2030.

Features

  • Unparalleled Coverage: Combines data from 32 contemporary sources (e.g., IMF, World Bank, OECD) with 78 historical datasets.
  • Extensive Variables: GDP, inflation, government finance, trade, employment, interest rates, and more.
  • Harmonized Data: Resolves inconsistencies and splices all available data together.
  • Scheduled Updates: Regular releases ensure data reliability.
  • Full Transparency: All code is open source and available in this repository.
  • Accessible Formats: Provided in .dta, .csv and as Stata /Python/R package.

Data access

Download via website

Python package:

pip install global_macro_data

How to use (examples)

from global_macro_data import gmd

# Get preview data (Singapore 2000-2020)
df = gmd()

# Get data from latest available version
df = gmd(show_preview=False)

# Get data from a specific version
df = gmd(version="2025_01")

# Get data for a specific country
df = gmd(country="USA")

# Get data for multiple countries
df = gmd(country=["USA", "CHN", "DEU"])

# Get specific variables
df = gmd(variables=["rGDP", "infl", "unemp"])

# Combine parameters
df = gmd(version="2025_01", country=["USA", "CHN"], variables=["rGDP", "unemp", "CPI"])

Parameters

  • version (str): Dataset version in format 'YYYY_MM' (e.g., '2025_01'). If None, the latest dataset is used.
  • country (str or list): ISO3 country code(s) (e.g., "SGP" or ["MRT", "SGP"]). If None, returns all countries.
  • variables (list): List of variable codes to include (e.g., ["rGDP", "unemp"]). If None, all variables are included.
  • show_preview (bool): If True and no other parameters are provided, shows a preview.

Release schedule

Release Date Details
2025-01-30 Initial release: v2025-01
2025-04-01 v2025-04
2025-07-01 v2025-09
2025-10-01 v2025-12
2026-01-01 v2026-03

Citation

To cite this dataset, please use the following reference:

@techreport{mueller2025global, 
    title = {The Global Macro Database: A New International Macroeconomic Dataset}, 
    author = {Müller, Karsten and Xu, Chenzi and Lehbib, Mohamed and Chen, Ziliang}, 
    year = {2025}, 
    type = {Working Paper}
}

Acknowledgments

The development of the Global Macro Database would not have been possible without the generous funding provided by the Singapore Ministry of Education (MOE) through the PYP grants (WBS A-0003319-01-00 and A-0003319-02-00), a Tier 1 grant (A-8001749- 00-00), and the NUS Risk Management Institute (A-8002360-00-00). This financial support laid the foundation for the successful completion of this extensive project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

global_macro_data-0.3.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

global_macro_data-0.3.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file global_macro_data-0.3.0.tar.gz.

File metadata

  • Download URL: global_macro_data-0.3.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for global_macro_data-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7a7184c33cbba3ac473e1455cb4c1906345ae76cdd6f7e25e70a1e090b376a35
MD5 acba67b1bcf6393e4a3313ab59d6fbdd
BLAKE2b-256 8f0686107d133a739bd02d83852108e10b9df4a54712c6bbece7d58a64212a4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for global_macro_data-0.3.0.tar.gz:

Publisher: publish.yml on KMueller-Lab/Global-Macro-Database-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file global_macro_data-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for global_macro_data-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbd927d5445ab67827fddc2d8a4684af746ae62908003aad480423277403206b
MD5 31a496aa3b18188564a6acb55295ff49
BLAKE2b-256 e515e47ee8512780672e4dce970bc3e06f0ec1cb37183fd151f3fe1ee9c3c973

See more details on using hashes here.

Provenance

The following attestation bundles were made for global_macro_data-0.3.0-py3-none-any.whl:

Publisher: publish.yml on KMueller-Lab/Global-Macro-Database-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page