Capybara 2.0: Generalized Linear Models with High-dimensional Fixed Effects
Preprint
- 29 August 2026
- preprint
- Published by Elsevier in SSRN Electronic Journal
Abstract
This paper presents a new version of capybara, an R package implementing computationally efficient algorithms for estimating generalized linear models (GLMs) with high-dimensional fixed effects. Building on Stammann (2018) and Berge (2018), we provide an alternative approach to full design matrix with fixed effects that is faster and reduces memory footprint without sacrificing numerical accuracy. The package is particularly valuable for trade economics or any application requiring multiple high-dimensional fixed effects to control for unobserved heterogeneity, making previously infeasible models computationally tractable on standard consumer-level hardware.Keywords
This publication has 8 references indexed in Scilit:
- The International Trade and Production Database for Estimation (ITPD-E)International Economics, 2021
- Fast Poisson estimation with high-dimensional fixed effectsThe Stata Journal: Promoting communications on statistics and Stata, 2020
- Iterative residual-based vector methods to accelerate fixed point iterationsComputers & Mathematics with Applications, 2015
- OLS with multiple high dimensional category variablesComputational Statistics & Data Analysis, 2013
- Currency Unions in Prospect and RetrospectAnnual Review of Economics, 2010
- The Log of GravityReview of Economics and Statistics, 2006
- Poisson Overdispersion Estimates Based on the Method of Asymmetric Maximum LikelihoodJournal of the American Statistical Association, 1992
- A version of the Aitken accelerator for computer iterationInternational Journal for Numerical Methods in Engineering, 1969