*! version 1.0.0

Title

GMD -- Download and analyze Global Macro Database with version control

Syntax

GMD [varlist] [, version(YYYY_QQ) country(string)]

Description

This command downloads and loads the Global Macro Database. Users can specify which version to load,
which variables to keep, and filter for specific countries. The dataset is available in quarterly
versions (YYYY_QQ format). Visit https://www.globalmacrodata.com/data.html
to see available version dates. The command automatically clears any data in memory before loading.

Options

version(YYYY_QQ) specifies which version of the dataset to load (e.g., 2025_01).

Visit https://www.globalmacrodata.com/data.html to see all available version dates.

country(string) specifies a country to filter by using its ISO3 code
(e.g., USA, GBR). Case-insensitive.

Type GMD isomapping to see a list of valid country codes and their corresponding full names.

Arguments

varlist optional list of variables to keep in addition to ISO3 and year. If not specified, all variables are retained.

Examples

Load the latest version:

. GMD

Load a specific version, default is current:

. GMD, version(2025_01)

Load specific variables:

. GMD nGDP pop

Load data for a specific country:

. GMD, country(SIN)

View country codes and names:

. GMD isomapping

Combine options:

. GMD nGDP pop, country(SIN) version(2025_01)

Author

Mohamed Lehbib

Email: lehbib@nus.edu.sg

Website: https://www.globalmacrodata.com

Citation

To cite this dataset, please use:

Müller, Karsten, Chenzi Xu, Mohamed Lehbib, and Ziliang Chen. 2025.

"The Global Macro Database: A New Historical Dataset of Macroeconomic Statistics."

Working Paper.

BibTeX:

@techreport

Version

1.0.0