Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPML with high-dimensional fixed effects? #143

Open
Gkreindler opened this issue Feb 4, 2021 · 3 comments
Open

PPML with high-dimensional fixed effects? #143

Gkreindler opened this issue Feb 4, 2021 · 3 comments

Comments

@Gkreindler
Copy link

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?

@jmboehm
Copy link
Contributor

jmboehm commented Feb 4, 2021

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.

@Gkreindler
Copy link
Author

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))

@jmboehm
Copy link
Contributor

jmboehm commented Feb 24, 2023

Glad to hear it's been useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants