python

A Beginner's Guide to Causal Inference with DoWhy in Python

A beginner-friendly introduction to causal inference using DoWhy's four-step framework with simulated observational data on working from home and productivity

Double Machine Learning with 401(k) Data: From Eligibility Effects to Complier Analysis

Estimating the causal effect of 401(k) eligibility and participation on net financial assets using three DoubleML models (PLR, IRM, IIVM) with the 1991 SIPP pension dataset

MGWRFER: Causal Spatially Varying Coefficients via Panel Fixed Effects

Using within-transformation to remove time-invariant spatial confounders from Multiscale GWR, recovering unbiased spatially varying coefficients from simulated panel data (225 units x 3 periods)

Causal Machine Learning for Policy Evaluation: From ATE to IATE to a Better Assignment Rule

A beginner-friendly walk-through of Causal Machine Learning — ATE, GATE, IATE, and welfare-maximising assignment — using DoubleML and EconML on a synthetic Flanders ALMP-style cohort with known true effects.

Introduction to Difference-in-Differences (DiD) in Python

Learn Difference-in-Differences (DiD) in Python using PyFixest and Great Tables. Covers the 2x2 design, TWFE regression, inference comparison, publication-quality tables, event studies, and parallel trends testing based on Corral and Yang (2024).

Introduction to Panel Data Methods in Python

A beginner-friendly tour of seven panel-data estimators — POLS, Between, First-Differences, Fixed Effects, Two-Way FE, Random Effects, and Correlated Random Effects (Mundlak) — applied to a two-period worker wage panel.

Regional Inequality and the Kuznets Curve: Panel Fixed Effects in Python

Replicating the N-shaped Kuznets curve with panel data fixed effects in Python using PyFixest, from pooled OLS through two-way FE, turning point analysis, and determinants of regional inequality across 180 countries

Mastering Causal Metrics

A hands-on AI-powered study guide to causal inference with Python notebooks

Standard Errors in Panel Data: A Beginner's Guide in Python

Comparing standard error estimators in panel data regressions using Python and linearmodels --- from conventional to clustered, Driscoll-Kraay, and fixed effects

Exploratory Spatial Data Analysis: Spatial Clusters and Dynamics of Human Development in South America

An introduction to exploratory spatial data analysis using PySAL, covering choropleth maps, spatial weights, Moran's I, LISA clusters, space-time dynamics, and a Venezuela-Bolivia comparative analysis for 153 South American regions