Model Selection in Two-Way Fixed Effects Models
Introduction | Installation | Example 1: Real Data (mpdta) | Example 2: Simulation --- Homogeneous Effects (TWFE Should Win) | Example 3: Simulation --- Substantial Heterogeneous Effects (ETWFE Should Win) | Example 4: Simulation --- Very Mild Heterogeneity with Small Sample | Monte Carlo Validation | Appendix | Cochran's Q Test | The Heterogeneity Fraction ($I^2$) | Empirical Bayes Shrinkage | Confidence Intervals on the Event Study Plot