Literature by the same author at Google Scholar Bibliografische Daten exportieren |
|
Fast Estimation of Linear and Poisson Models with High-Dimensional Fixed Effects in Python : The FastHDFE package
Title data
Larch, Mario ; Schönfeld, Mirco ; Shikher, Serge:
Fast Estimation of Linear and Poisson Models with High-Dimensional Fixed Effects in Python : The FastHDFE package.
Bayreuth, Germany
,
2026
. - 70 p.
DOI: https://doi.org/10.15495/EPub_UBT_00009520
Official URL:
Abstract in another language
We present FastHDFE, an easy-to-install Python package providing the commands reghdfe and ppmlhdfe for estimating linear and multiplicative (Poisson pseudo-maximum-likelihood, PPML) models with high-dimensional fixed effects. They rest on the method of alternating projections and, for PPML, iteratively reweighted least squares, and provide homoskedastic, heteroskedasticity-robust, and multi-way cluster-robust standard errors, detection and removal of separated observations via the iterative rectifier, and singleton handling, with the demeaning step implemented in compiled C code. The commands closely replicate the Stata packages of the same name, reproducing their point estimates to at least six decimal places and the standard errors to at least five decimal places. On the ITPD-E gravity dataset, with roughly 83 million observations and more than four million fixed effects, they run about six to forty-four times faster than Stata while integrating naturally into the Python ecosystem.
Further data
| Item Type: |
Project report, research report, expert assessments
|
| Additional notes: |
This is a technical report corresponding to the Python package https://pypi.org/project/fasthdfe
|
| Keywords: |
high-dimensional fixed effects, Poisson pseudo-maximum-likelihood, gravity models, method of alternating projections, multi-way clustering, Python, econometric software
|
| Subject classification: |
JEL Classification: C13 , C23 , C55 , C87 , F14
|
| Institutions of the University: |
Faculties > Faculty of Law, Business and Economics > Department of Economics > Chair Economics VI - Empirical Economic Research > Chair Economics VI - Empirical Economic Research - Univ.-Prof. Dr. Mario Larch Faculties > Faculty of Languages and Literature > Juniorprofessur Datenmodellierung und interdisziplinäre Wissensgenerierung > Juniorprofessur Datenmodellierung und interdisziplinäre Wissensgenerierung - Juniorprof. Dr. Mirco Schönfeld Faculties Faculties > Faculty of Law, Business and Economics Faculties > Faculty of Law, Business and Economics > Department of Economics Faculties > Faculty of Law, Business and Economics > Department of Economics > Chair Economics VI - Empirical Economic Research Faculties > Faculty of Languages and Literature Faculties > Faculty of Languages and Literature > Juniorprofessur Datenmodellierung und interdisziplinäre Wissensgenerierung |
| Result of work at the UBT: |
Yes |
| DDC Subjects: |
000 Computer Science, information, general works > 004 Computer science 300 Social sciences > 330 Economics 500 Science > 510 Mathematics |
| Date Deposited: |
01 Aug 2026 21:00 |
| Last Modified: |
03 Aug 2026 05:57 |
| URI: |
https://eref.uni-bayreuth.de/id/eprint/99186 |
|