Fixed-Effects Panel Regression in Stata: What the Within Transformation Actually Drops
Fixed-effects regression in Stata sweeps out entity-specific intercepts, but the within transformation drops all time-invariant variables and requires strict exogeneity. This blog walks through the mechanics, a worked firm-level example, and the trade-offs you accept when you type xtreg, fe.