reghdfe

REGHDFE: Stata module to perform linear or instrumental-variable regression absorbing any number of high-dimensional fixed effects. reghdfe fits a linear or instrumental-variable regression absorbing an arbitrary number of categorical factors and factorial interactions Optionally, it saves the estimated fixed effects.