Package: alpaca 0.3.5

Amrei Stammann

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

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

Authors:Amrei Stammann [aut, cre], Daniel Czarnowske [aut]

alpaca_0.3.5.tar.gz
alpaca_0.3.5.tar.gz(r-4.7-arm64)alpaca_0.3.5.tar.gz(r-4.7-x86_64)alpaca_0.3.5.tar.gz(r-4.6-arm64)alpaca_0.3.5.tar.gz(r-4.6-x86_64)
alpaca_0.3.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
alpaca/json (API)
NEWS

# Install 'alpaca' in R:
install.packages('alpaca', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/amrei-stammann/alpaca/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

openblascpp

5.03 score 144 scripts 5.0k downloads 8 exports 5 dependencies

Last updated from:5841d5561e. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK163
linux-devel-x86_64OK156
source / vignettesOK223
linux-release-arm64OK169
linux-release-x86_64OK159
wasm-releaseOK137

Exports:biasCorrfeglmfeglm.controlfeglm.nbfeglmControlgetAPEsgetFEssimGLM

Dependencies:data.tableFormulaMASSRcppRcppArmadillo

Estimating the intensive and extensive margin of trade

Rendered fromtrade.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2025-10-27
Started: 2020-01-12

How to use alpaca

Rendered fromhowto.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2022-08-10
Started: 2019-05-14

Replicating an Empirical Example of International Trade

Rendered fromreplication.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2025-10-27
Started: 2019-05-14