Enhan Liu

M.A. student in Public Policy & Research Methods · The University of Chicago

Software I have helped build, and notes and tutorials from working through new methods.

Software

fdid: Factorial Difference-in-Differences R package

Implements factorial difference-in-differences for panel data where all units experience the same event but differ in a baseline factor.

R package and tutorial for Yiqing Xu, Anqi Zhao, and Peng Ding (2026), “Factorial Difference-in-Differences,” Journal of the American Statistical Association.

2026

Notes

Negative Weights in Staggered DiD: de Chaisemartin–D’Haultfœuille vs. Goodman-Bacon

How two influential staggered DiD papers decompose the same TWFE coefficient at different levels (2×2 comparisons vs. treated group–period cells), and why negative weights appear in only one.

Updated in 2026 from my 2024 note (in Chinese). The new version is in English and adds an interactive lab.

2026

Tutorials

Design-Based Supervised Learning: A Tutorial Course project

How to combine expert gold-standard labels, available only for a subsample, with imperfect LLM/ML labels to obtain valid downstream statistical inference.

Final project for PLSC 40601: Advanced Topics in Causal Inference.

2026