Resources
Resources for research in politics and economics
Data
A list of data resources I have found useful in empirical analysis.
V-Dem Project
More than 600 indicators of democracy for 200+ countries, from 1789 to today. Co-hosted by the University of Gothenburg and the Kellogg Institute.
Quality of Government
Quality of democracy, corruption, bureaucracy and institutional indicators, University of Gothenburg.
Macrohistory Database
Jordà–Schularick–Taylor: 18 advanced economies, 48 real and nominal variables, annually since 1870 (release R.6).
Barro–Lee Dataset
Educational attainment and human capital for 146 countries, 1950–2015 (dataset last updated September 2021).
World Income Inequality Database
Income inequality for 200+ countries, 1867 to today.
World Inequality Database
Income distribution, wealth and top incomes for 100+ countries, 1820 to today. Stata: ssc install wid.
Fraser Institute — Economic Freedom
Economic freedom index for 165 countries and territories, from 1970 onwards.
Heritage Foundation — Economic Freedom
Annual economic freedom index for 180+ countries, 1995 onwards.
KOF Globalisation Index
Economic, social and political globalisation for 190+ countries, 1970 onwards.
Eurostat
European official statistics.
VOLARE — VOLatility Archive for Realized Estimates
An open research infrastructure (hosted at the University of Messina) providing realized volatility and covariance measures from ultra-high-frequency data on stocks, exchange rates and futures, including interactive visualization and real-time HAR/MEM model estimation.
Itiner-e — Digital Atlas of Ancient Roads
An open, GIS-ready dataset of the Roman road network, with each segment geo-referenced (GeoJSON/ndjson) plus a route-finding tool for ancient travel times. Useful for spatial analysis in a historical context linking geography, market access and long-run regional development.
Human Mobility Index
GIS raster data (GeoTiff, 1km/10km resolution) estimating minimum travel time across the globe before the widespread use of steam power, accounting for terrain, biological constraints and (optionally) seafaring. Used to construct historical isolation, trade-network and market-access measures; a companion Python package (hmi) computes travel-time distances directly.
Global Macro Database
A harmonized panel of 46 macro-financial variables for 239 countries and territories, 1086 to today, built from over 150 contemporary and historical sources (IMF, World Bank, OECD, plus long-run country archives).
World Bank Business Ready
The World Bank's successor to Doing Business (discontinued in 2021 over data-integrity concerns), redesigned with independent third-party data collection. Benchmarks regulatory framework, public services and operational efficiency for the private sector; 101 economies in the 2025 report, expanding toward ~180 by 2027.
Stata
Stata is my software of choice for empirical work: user-friendly for beginners, fully programmable for advanced users, and backed by thousands of freely downloadable community routines. Alternatives worth knowing are Matlab (very powerful), EViews (popular in finance, but static) and R (open source and flexible).
Useful resources
Oscar Torres-Reyna (Princeton)
A set of notes covering material for beginners, useful for researchers as well.
OARC Stats (UCLA)
Numerous explanations and tutorials that can promptly solve several issues.
Statalist forum
StataCorp technicians, researchers and beginners share questions and solutions, even to very advanced problems.
Official Stata channel on YouTube
Videos on the most popular routines and procedures.
Stata News
Recent advancements among Stata users, including the Stata Conference and Users Group Meetings proceedings.
The Stata Blog
Official StataCorp blog: tutorials, worked examples and deep dives on statistics, data management and new features.
Routines I find particularly useful
Most user-written routines below can be installed from the command window with: ssc install <name>.
- xtabond2
- A largely-used routine for dynamic panel data models with the Arellano–Bond or Blundell–Bond estimators: more flexible and informative than the official routines. Roodman (2009), Stata Journal 9(1), pp. 86–136.
- xtlsdvc
- Bias-corrected LSDV estimators for standard dynamic panel data models. Bruno (2005), Stata Journal 5(4), pp. 473–500.
- xtdpdbc
- Bias-corrected method-of-moments estimator for linear dynamic panel data models (Breitung, Kripfganz and Hayakawa, 2021); corrects the Nickell bias of the fixed-effects estimator without relying on instruments, typically retaining FE's smaller variance relative to GMM.
- xtdpdgmm
- GMM estimators for linear dynamic panel data models; reproduces xtabond2 results and adds the Ahn–Schmidt (1995) nonlinear moment conditions, useful under high persistence.
- getsymbols & mvport
- Download financial time series (Yahoo Finance, Alpha Vantage, Quandl…) and compute minimum-variance portfolios.
- kountry
- A 'universal' converter that standardises country names and codes across sources, making it much easier to merge macro datasets.
- utest
- Correct test for a U-shaped (or inverse U-shaped) relationship on an interval, implementing Lind and Mehlum (2010).
- inteff
- Correct marginal effects — and standard errors — of interacted variables in logit and probit models.
- nwcommands
- A full suite for network analysis in Stata; see the companion website for installation.
- ivreg2
- IV estimation with much richer diagnostics on instrument validity than the official ivregress.
- ivreg2h
- Lewbel (2012): IV estimation with instruments generated from heteroskedastic errors, when external instruments are unavailable or weak.
- grstyle
- Set the overall look of graphs from within a do-file — palettes, absolute sizes — without touching the graph itself.
- esttab
- The reference routine to export Stata results to LaTeX; the estout companion site documents the whole family.
Just for fun
Animated graphs
Stata can produce animated GIFs by generating multiple frames and assembling them with FFMPEG — I use it to visualise spillover effects in a spatial autoregressive (SAR) model of homicide and unemployment across Texas counties. Robert Grant's page on animated graphs is a useful reference.
Pairs trading strategy
Pairs trading is a market-neutral strategy that exploits temporary divergences between two historically co-moving assets: when the spread between their prices widens beyond its normal range, you short the outperforming asset and go long the underperforming one, betting on reversion to their historical relationship. This package contains the Stata files to identify candidate pairs and backtest the strategy. A Python script that replicates the same analysis is available here.
LaTeX
LaTeX is a high-quality typesetting system and the de facto standard for scientific writing. I moved from Word to Scientific WorkPlace and finally to pure LaTeX, and I have not regretted the choice. My favourite setup is TeXworks with MiKTeX: auto-completion, unicode support and a nice built-in PDF viewer. Beyond papers, LaTeX (with the TikZ package) can draw diagrams, game trees and best-response functions, and Beamer can animate them in presentations.
Useful links
TeX StackExchange
My favourite source: answers are always clear and useful, and arrive within a couple of days at most.
Overleaf
Online editor and a huge library of templates: journals, presentations, CVs, books.
Overleaf — Beamer themes
A gallery of Beamer templates and themes to start from.
Lorenzo Pantieri
Introductory and advanced material on LaTeX with several downloadable PDFs (in Italian).
Chiu Yu Ko — TikZ examples
A rich page of TikZ examples for economists, plus getting-started material.
A few examples
UniME Beamer template
My Beamer theme and a ready-to-use lecture template, packaged as a .zip. Just unzip the folder and compile unime_template.tex (e.g., with pdfLaTeX).
Matching pennies
Best-response functions for the matching pennies game, drawn with TikZ: standalone, ready to compile and drop straight into a paper or slide.
Extensive-form game
A game tree for a simple sequential game with three strategies and terminal payoffs, drawn with TikZ.
Publish or perish
A light-hearted TikZ diagram of the academic idea → research → write → publish cycle (and the perpetual risk of perishing at each step).