Interactive Fixed Effects for Balanced and Unbalanced Panels
Introduction | Why interactive fixed effects? | The IFE model | What xtife provides | Balanced Panel IFE | Data | Quick start | Estimation algorithm | Standard error types | Comparison with TWFE | Factor number selection | Asymptotic bias correction (balanced panel) | Static regressors — Bai (2009) | Dynamic regressors — Moon and Weidner (2017) | Unbalanced Panel IFE | Motivation | The unbalanced IFE model | Identification | Additive fixed effects via force | Quick start with unbalanced data | Outer alternating-maximisation (AM) loop | EM inner loop (Bai 2009, Appendix B) — used within each AM iteration | Initialisation | Analytical standard errors | Analytical bias correction | Strictly exogenous regressors (exog = "strict") | Weakly exogenous regressors (exog = "weak") | Balanced vs unbalanced on the same data | Input validation and common errors | Quick reference: argument tables | ife() — balanced panel | ife_unbalanced() — unbalanced panel | References