DeclareDesign / estimatr

estimatr: Fast Estimators for Design-Based Inference
https://declaredesign.org/r/estimatr
Other
131 stars 20 forks source link

Explanation of "Do not pass multiple-fixed effects with intersecting groups" #280

Open DeFilippis opened 5 years ago

DeFilippis commented 5 years ago

Hey team,

I notice in the documentation for the fixed_effects flag for lm_robust it mentions the following: "Do not pass multiple-fixed effects with intersecting groups." I can't find any documentation on what is meant by an intersecting group or why multiple fixed effects cannot be added.

For example, if I want to add a fixed effect for country and a fixed effect for company, would I not be able to do so if the same company exists more than once in the same country? Was just hoping for clarification on this point.