Scraping International Investment Agreement Data

International Economics
Foreign Direct Investment
Web Scraping

Comprehensive and up-to-date data on international investment agreements (IIAs) concluded between (groups of) countries are hard to come by, making it difficult to study their effects on bilateral investment flows. In this post, I propose and describe a simple approach to obtain and manipulate data from UNCTAD's IIA Mapping Project using R.

Introduction to R: Assignment

Intensive Statistics

This assignment accompanies the "Introduction to R" tutorial session for MCom (Economics) students attending the Intensive Statistics course at Stellenbosch University (2024).

Introduction to R: Tutorial

Intensive Statistics

This post serves as the primary tutorial notes for the "Introduction to R" sessions of the Intensive Statistics course for MCom (Economics) students at Stellenbosch University (2024). This lecture is intended to offer a cursory introduction to enable students to perform basic operations in R and RStudio.

CPT to BRU: A (Very) Cursory Google Flights Analysis

Google Flights

Google Flights is a useful platform with which to find the cheapest flights for a given trip. However, a user like me could find it difficult to peruse prices for return flights across multiple dimensions simultaneously. I capture information from the platform's "Date Grid" and perform some very simple eyeballing.

OpenAI Playground: Chat Mode for Dummies

Artificial Intelligence

The OpenAI Playground is a web-based platform that enables users to generate text using artificial intelligence (AI) without any prior programming experience. In this post, we will explore the chat mode of the OpenAI Playground, which allows users to interact with the GPT-3 language model in a conversational manner.

Are humans rational?

Philosophy and Economics
Behavioural Economics

The question of human rationality has been debated since time immemorial. In recent decades, neuroscientific and behavioural evidence seem to suggest that people are not the paragons of rationality as we might have once believed.

The Benefits and Unintended Costs of Airline Alliances

Institutional Economics
Transaction Costs

The New Institutional Economics provides scholars with a useful framework with which to perform comparative institutional analyses. The notion of transaction costs is particularly valuable when comparing different institutional arrangements, such as hybrid organisational structures.

More articles »



If you see mistakes or want to suggest changes, please create an issue on the source repository.


Text and figures are licensed under Creative Commons Attribution CC BY-SA 4.0. Source code is available at, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".