PanelFE
Panel Data and Fixed Effects: Choosing Between FE and RE with TWFE in Practice
A systematic introduction to panel data analysis methods: the logic of choosing between fixed effects and random effects, the Hausman test, two-way fixed effects (TWFE), and the choice of clustered standard errors.