FixedEffectModels.jl icon indicating copy to clipboard operation
FixedEffectModels.jl copied to clipboard

PPML with high-dimensional fixed effects?

Open Gkreindler opened this issue 4 years ago • 3 comments

Thank you for the fantastic package! I would like to ask whether there are any plans to implement a Poisson pseudo-maximum likelihood estimator with high-dimensional fixed effects, similar to STATA's PPMLHDFE? http://scorreia.com/software/ppmlhdfe/ Alternatively, is it possible to call FixedEffectModels from another package that estimates PPML?

Gkreindler avatar Feb 04 '21 13:02 Gkreindler

Hi Gabriel,

You're right, calculating the PPML and friends in the end boils down to a series of pseudo de-meaning operations followed by OLS, which is what FixedEffects.jl is doing. I've implemented a version of this in GLFixedEffectModels.jl, maybe this is of use to you. I should add that bias correction for the incidental parameter problem (which is a nice way to kill off annoying seminar questions) is not yet implemented, and that I also haven't done a lot of testing.

I think in the end it may make sense to put this into FixedEffectModels.jl, depending on how Matthieu and Erik feel about this.

jmboehm avatar Feb 04 '21 22:02 jmboehm

A quick update (I cannot believe that >2 years have passed!!) that I have been using a lot of the following, and it's been incredibly useful:

using GLFixedEffectModels
myformula = term(:myy) ~ term(:myx) + GLFixedEffectsModels.fe(:myfe1) + GLFixedEffectsModels.fe(:myfe2)
nlreg(df, myformula, Poisson(), LogLink(), GLFixedEffectsModels.Vcov.cluster(:a, :b))

Gkreindler avatar Feb 23 '23 18:02 Gkreindler

Glad to hear it's been useful!

jmboehm avatar Feb 24 '23 10:02 jmboehm