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

CRAN

3.3K

Last 30 days

2182nd

12K

Last 90 days

39.3K

Last year

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

r2u CRAN

40

Last 30 days

128

Last 90 days

482

Last year

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

autoCRAN

6

Last 7 days

20

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 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-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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 10, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE May 9, 2026
WARNING r-devel-linux-x86_64-debian-gcc

PDF version of manual

LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/alpaca.Rcheck/00install.out' for details.
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

8 tracked
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