Package: alpaca 0.3.4

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) <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) <arxiv:2004.12655>.

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

alpaca_0.3.4.tar.gz
alpaca_0.3.4.zip(r-4.5)alpaca_0.3.4.zip(r-4.4)alpaca_0.3.4.zip(r-4.3)
alpaca_0.3.4.tgz(r-4.4-x86_64)alpaca_0.3.4.tgz(r-4.4-arm64)alpaca_0.3.4.tgz(r-4.3-x86_64)alpaca_0.3.4.tgz(r-4.3-arm64)
alpaca_0.3.4.tar.gz(r-4.5-noble)alpaca_0.3.4.tar.gz(r-4.4-noble)
alpaca_0.3.4.tgz(r-4.4-emscripten)alpaca_0.3.4.tgz(r-4.3-emscripten)
alpaca.pdf |alpaca.html
alpaca/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

8 exports 43 stars 2.90 score 5 dependencies 104 scripts 1.3k downloads

Last updated 2 years agofrom:c9ce131d94. Checks:OK: 1 WARNING: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 01 2024
R-4.5-win-x86_64WARNINGSep 01 2024
R-4.5-linux-x86_64WARNINGSep 01 2024
R-4.4-win-x86_64WARNINGSep 01 2024
R-4.4-mac-x86_64WARNINGSep 01 2024
R-4.4-mac-aarch64WARNINGSep 01 2024
R-4.3-win-x86_64WARNINGSep 01 2024
R-4.3-mac-x86_64WARNINGSep 01 2024
R-4.3-mac-aarch64WARNINGSep 01 2024

Exports:biasCorrfeglmfeglm.controlfeglm.nbfeglmControlgetAPEsgetFEssimGLM

Dependencies:data.tableFormulaMASSRcppRcppArmadillo

Estimating the intensive and extensive margin of trade

Rendered fromtrade.Rmdusingknitr::rmarkdownon Sep 01 2024.

Last update: 2022-09-19
Started: 2020-01-19

How to use alpaca

Rendered fromhowto.Rmdusingknitr::rmarkdownon Sep 01 2024.

Last update: 2022-09-19
Started: 2019-05-14

Replicating an Empirical Example of International Trade

Rendered fromreplication.Rmdusingknitr::rmarkdownon Sep 01 2024.

Last update: 2019-05-24
Started: 2019-05-14

Readme and manuals

Help Manual

Help pageTopics
alpaca: A package for fitting glm's with high-dimensional k-way fixed effectsalpaca-package
alpaca: A package for fitting glm's with high-dimensional k-way fixed effectsalpaca-package alpaca
Asymptotic bias correction after fitting binary choice models with a one-/two-/three-way error componentbiasCorr
Extract estimates of average partial effectscoef.APEs
Extract estimates of structural parameterscoef.feglm
Extract coefficient matrix for average partial effectscoef.summary.APEs
Extract coefficient matrix for structural parameterscoef.summary.feglm
Efficiently fit glm's with high-dimensional k-way fixed effectsfeglm
Set 'feglm' Control Parametersfeglm.control
Efficiently fit negative binomial glm's with high-dimensional k-way fixed effectsfeglm.nb
Set 'feglm' Control Parametersfeglm.control feglmControl
Extract 'feglm' fitted valuesfitted.feglm
Compute average partial effects after fitting binary choice models with a one-/two-/three-way error componentgetAPEs
Efficiently recover estimates of the fixed effects after fitting 'feglm'getFEs
Predict method for 'feglm' fitspredict.feglm
Print 'APEs'print.APEs
Print 'feglm'print.feglm
Print 'summary.APEs'print.summary.APEs
Print 'summary.feglm'print.summary.feglm
Generate an artificial data set for some GLM's with two-way fixed effectssimGLM
Summarizing models of class 'APEs'summary.APEs
Summarizing models of class 'feglm'summary.feglm
Compute covariance matrix after estimating 'APEs'vcov.APEs
Compute covariance matrix after fitting 'feglm'vcov.feglm