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.zip(r-4.7-x86_64)alpaca_0.3.5.zip(r-4.7-arm64)alpaca_0.3.5.zip(r-4.6-x86_64)alpaca_0.3.5.zip(r-4.6-arm64)
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✨
DESCRIPTION |NEWS
card.svg |card.png
alpaca/json (API)

# 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

4.56 score 111 scripts 2.2k downloads 8 exports 5 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-arm64OK149
linux-devel-x86_64OK167
source / vignettesOK239
linux-release-arm64OK137
linux-release-x86_64OK151
windows-devel-arm64OK260
windows-devel-x86_64OK159
windows-release-arm64OK214
windows-release-x86_64OK121
wasm-releaseOK109

Exports:biasCorrfeglmfeglm.controlfeglm.nbfeglmControlgetAPEsgetFEssimGLM

Dependencies:data.tableFormulaMASSRcppRcppArmadillo

Estimating the intensive and extensive margin of trade
Introduction | Data preparation | Estimating the intensive margin of trade | Testing linear restrictions | Estimating the extensive margin of trade | References

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

Replicating an Empirical Example of International Trade
Introduction | Data preparation | Some replications | Testing linear restrictions | References

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

How to use alpaca
Generalized linear models with fixed effects | Estimating a binary-choice model with individual and time fixed effects | Further Features | References

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