Skip to content

alpaca

Fit GLM's with High-Dimensional k-Way Fixed Effects

v0.3.5 · Oct 27, 2025 · GPL-3

Description

Provides a routine to partial out factors with many levels during the optimization of the log-likelihood function of the corresponding generalized linear model (glm). The package is based on the algorithm described in Stammann (2018) <doi:10.48550/arXiv.1707.01815> and is restricted to glm's that are based on maximum likelihood estimation and nonlinear. It also offers an efficient algorithm to recover estimates of the fixed effects in a post-estimation routine and includes robust and multi-way clustered standard errors. Further the package provides analytical bias corrections for binary choice models derived by Fernandez-Val and Weidner (2016) <doi:10.1016/j.jeconom.2015.12.014> and Hinz, Stammann, and Wanner (2020) <doi:10.48550/arXiv.2004.12655>.

Downloads

2.9K

Last 30 days

2438th

9.4K

Last 90 days

31.3K

Last year

Trend: -8.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies data.table Formula MASS Rcpp bife lfe alpaca

Version History

new 0.3.5 Mar 10, 2026
updated 0.3.5 ← 0.3.4 diff Oct 26, 2025
updated 0.3.4 ← 0.3.3 diff Aug 9, 2022
updated 0.3.3 ← 0.3.2 diff Oct 29, 2020
updated 0.3.2 ← 0.3.1 diff Jan 11, 2020
updated 0.3.1 ← 0.3 diff May 23, 2019
updated 0.3 ← 0.2 diff May 14, 2019
new 0.2 Jul 30, 2018