Does anyone know about a R package that supports fixed effect, instrumental variable regression like xtivreg in stata (FE IV regression). Yes, I can just include dummy variables but that just gets impossible when the number of groups increases.
Thanks!
By “impossible,” do you mean “computationally impossible”? If so, check out the
plmpackage, which was designed to handle cases that would otherwise be computationally infeasible, and which permits fixed-effects IV.Start with the
plmvignette. It will quickly make clear whetherplmis what you’re looking for.Update 2018 December 03: the
estimatrpackage will also do what you want. It’s faster and easier to use than theplmpackage.