Yiqing Xu

Teaching

Please feel free to use and adapt lecture slides (with their LaTeX sources), R code and data in your own teaching. Each course site gives its license and how to cite it.

Courses

Short Course on Causal Inference with Panel Data
Short Course on Causal Inference with Panel Data
Short course, first taught at Waseda University, 2026
syllabus / course site / GitHub
Earlier four-lecture version (2021): 1 / 2 / 3 / 4 / YouTube / Bilibili

Six lectures on causal inference with panel data, from two-way fixed effects to heterogeneity-robust DID, synthetic control and latent factor models, with R code in panelView and fect. description

POLI 450A. Political Methodology I
POLI 450A. Political Methodology I
Stanford, graduate
syllabus / course site / GitHub / YouTube

A graduate introduction to regression and the probability and statistics behind it; the first course in Stanford PoliSci’s four-course methods sequence. description

POLI 158. AI & Politics
POLI 158. AI & Politics
Stanford, undergraduate
syllabus / course site

Co-taught with Simone Paci, the course pairs how AI systems work and how to use them well with the politics of AI, from labor markets and elections to data centers and chips; students design a project that uses or studies AI on a social or political problem. description

Earlier courses

Guides

Resources