Learn R Programming

alpaca (version 0.3.4)

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

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) 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) and Hinz, Stammann, and Wanner (2020) .

Copy Link

Version

Install

install.packages('alpaca')

Monthly Downloads

1,422

Version

0.3.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 10th, 2022

Functions in alpaca (0.3.4)

coef.APEs

Extract estimates of average partial effects
coef.feglm

Extract estimates of structural parameters
alpaca-package

alpaca: A package for fitting glm's with high-dimensional \(k\)-way fixed effects
biasCorr

Asymptotic bias correction after fitting binary choice models with a one-/two-/three-way error component
print.summary.feglm

Print summary.feglm
feglm

Efficiently fit glm's with high-dimensional \(k\)-way fixed effects
summary.APEs

Summarizing models of class APEs
summary.feglm

Summarizing models of class feglm
predict.feglm

Predict method for feglm fits
feglm.nb

Efficiently fit negative binomial glm's with high-dimensional \(k\)-way fixed effects
simGLM

Generate an artificial data set for some GLM's with two-way fixed effects
vcov.APEs

Compute covariance matrix after estimating APEs
print.APEs

Print APEs
feglmControl

Set feglm Control Parameters
fitted.feglm

Extract feglm fitted values
vcov.feglm

Compute covariance matrix after fitting feglm
coef.summary.APEs

Extract coefficient matrix for average partial effects
getAPEs

Compute average partial effects after fitting binary choice models with a one-/two-/three-way error component
getFEs

Efficiently recover estimates of the fixed effects after fitting feglm
coef.summary.feglm

Extract coefficient matrix for structural parameters
print.summary.APEs

Print summary.APEs
print.feglm

Print feglm