Panel Data

Spatial Dynamic Panel Data Modeling in R: Cigarette Demand Across US States

A hands-on guide to spatial panel data modeling using the SDPDmod package in R --- from Bayesian model comparison through static and dynamic SAR/SDM estimation with Lee-Yu bias correction to direct, indirect, and total effect decomposition --- applied to cigarette demand across 46 US states (1963--1992).

Spatial Dynamic Panels with Common Factors in Stata: Credit Risk in US Banking

Estimate spatial dynamic panel models with unobserved common factors using the spxtivdfreg package in Stata --- an IV approach that handles spatial lags, temporal persistence, endogenous regressors, and latent factors simultaneously

Difference-in-Differences for Policy Evaluation: A Tutorial using R

A guide to Difference-in-Differences with staggered treatment --- from TWFE pitfalls through Callaway-Sant'Anna group-time ATTs, doubly robust estimation, and HonestDiD sensitivity analysis --- applied to minimum wage effects on teen employment.

Evaluating a Cash Transfer Program (RCT) with Panel Data in Stata

Evaluate the causal effect of a cash transfer program on household consumption using regression adjustment, inverse probability weighting, doubly robust, and difference-in-differences methods in Stata

High-Dimensional Fixed Effects Regression: An Introduction in Python

Estimating regression models with high-dimensional fixed effects using PyFixest, from simple OLS through two-way FE, instrumental variables, panel data, and event studies

Introduction to Difference-in-Differences in Python

Estimating causal treatment effects using Difference-in-Differences with the diff-diff package, from the classic 2x2 design through staggered adoption with Callaway-Sant'Anna and HonestDiD sensitivity analysis

Heterogeneous treatment effects via two-stage DID

An introduction to heterogeneous treatment effects using the two-stage DID estimator of Gardner (2021)

Spatial Panel Regression in Stata: Cigarette Demand Across US States

Model spatial spillovers in panel data using the Spatial Durbin Model (SDM), Wald specification tests, and dynamic extensions with the xsmle package in Stata

Staggered DiD (Ex1)

An introduction to difference in differences with multiple time periods and staggered treatment adoption.

Staggered DiD

An introduction to difference in differences with multiple time periods and staggered treatment adoption.