Skip to main content
QUICK REVIEW

[论文解读] Fast and user-friendly econometrics estimations: The R package fixest

Laurent R. Bergé, Kyle Butts|arXiv (Cornell University)|Jan 29, 2026
Data Analysis with RComputer Science被引用 0
一句话总结

引入 fixest,一个用于快速、灵活的经济计量估计的 R 包,聚焦固定效应模型,提供统一的 OLS、IV、GLM、MLE 与 Diff-in-Diff 语法,以及即时推断和可发表的输出。

ABSTRACT

fixest is an R package for fast and flexible econometric estimation, providing a comprehensive toolkit for applied researchers. The package particularly excels at fixed-effects estimation, supported by a novel fixed-point acceleration algorithm implemented in C++. This algorithm achieves rapid convergence across a broad class of data contexts and further enables estimation of complex models, including those with varying slopes, in a highly efficient manner. Beyond computational speed, fixest provides a unified syntax for a wide variety of models: ordinary least squares, instrumental variables, generalized linear models, maximum likelihood, and difference-in-differences estimators. An expressive formula interface enables multiple estimations, stepwise regressions, and variable interpolation in a single call, while users can make on-the-fly inference adjustments using a variety of built-in robust standard errors. Finally, fixest provides methods for publication-ready regression tables and coefficient plots. Benchmarks against leading alternatives in R, Python, and Julia demonstrate best-in-class performance, and the paper includes many worked examples illustrating the core functionality.

研究动机与目标

  • 在应用研究中,特别是带固定效应的情况下,说明对快速而灵活的经济计量估计的需求。
  • 将 fixest 呈现为一个统一、速度优化的多种计量模型工具包。
  • 展示可用性与推断功能,包括鲁棒标准误和可发表输出。
  • 展示相对于其他软件的性能基准并提供实例讲解。

提出的方法

  • 描述核心架构:通过 Rcpp 的优化并行 C++ 代码以提升速度。
  • 引入带有新颖固定点加速算法的固定效应估计方法。
  • 提出统一的公式接口,在单次调用中实现多种估计、分步回归和插值。
  • 解释估计后灵活性,可在现场调整标准误和各种 vcov 选项。
  • 展示 feols、fepois、feglm、femlm 等函数在不同模型族中的共享语法。
  • 展示表格和绘图工具(etable、coefplot)以实现可发表输出。
Figure 1 : Default coefplot graph for split sample estimation.
Figure 1 : Default coefplot graph for split sample estimation.

实验结果

研究问题

  • RQ1如何在不同数据背景下快速进行固定效应估计?
  • RQ2统一的语法是否能在一致的推断和输出工具下支持多种计量模型?
  • RQ3fixest 的固定点加速相对于传统去均值方法有哪些计算优势?
  • RQ4与 R、Python、Julia 中的主流替代方案相比,fixest 在模型族上的表现如何?
  • RQ5fixest 提供哪些现场推断调整和结果呈现的工具?

主要发现

  • fixest 通过实现于 C++ 的新型固定点加速算法实现快速固定效应估计。
  • 通用语法使 OLS、IV、GLM、MLE 与差分中的差分估计在单一框架内可含固定效应。
  • 估算后工具允许快速现场调整标准误和多种 vcov 规格。
  • 在使用专门处理 nuisance 参数(个体和时间效应)的 fixest 例程时,带固定效应的估计更快。
  • 该包提供可发表输出的表格与绘图(etable、coefplot),并支持在一次调用中输出多种估计。
Figure 2 : Default iplot graph for DiD estimations.
Figure 2 : Default iplot graph for DiD estimations.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。