Skip to content

lfe

3.1.1

Linear Group Fixed Effects

19packages depend
226.6Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Mauricio Vargas SepulvedaFirst published 2011-03-1064 releasesCRAN page ↗GitHub ↗

Transforms away factors with many levels prior to doing an OLS. Useful for estimating linear models with multiple group fixed effects, and for estimating linear models which uses factors with many levels as pure control variables. See Gaure (2013) doi:10.1016/j.csda.2013.03.024 Includes support for instrumental variables, conditional F statistics for weak instruments, robust and multi-way clustered standard errors, as well as limited mobility bias correction (Gaure 2014 doi:10.1002/sta4.68). Since version 3.0, it provides dedicated functions to estimate Poisson models.

Install

Health

CRAN checks
13OK
Slowest check: 6.6 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 174 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
98%
Return-value docs
91%
References docs
28%

Downloads

226.6K
CRAN downloads in the past year
Rank #969 · ~621/day · ~18.9K/mo
Daily download trend is not available in this view yet.
13.3K30 days
44K90 days
226.6K1 year
Compare downloads with other packages →
Also on1.8K r2u15 autocran6.1K conda_forge163 c2d4u

Repository

Repository
0Stars
1Forks
2Open issues
0Open PRs
0Releases
151Commits
6Contributors
151 commits · Last activity 2023-12-29

Forks over time

2025-12-14 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/r-econometrics/lfe on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (2)
R >= 2.15.2Matrix
Imports (7)
Formulaxtablecompilerutilsmethodssandwichparallel
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

People & History

People (6)
Maintainer (1)
Contributor, Maintainer · added in 3.0-0
Authors (1)
Contributors (5)
Contributor, Maintainer · added in 3.0-0
Contributor · added in 2.8-4
Contributor · added in 2.8-4
Contributor · added in 2.8-4
Contributor · added in 2.8-4
Listed in earlier versions (3)
no longer listed · 1.2-444 to 1.4-670
no longer listed · 1.4-681 to 2.7-2383
no longer listed · 2.8-8 to 2.9-0
Package Timeline

64 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 3.1.1Latest
    2025-02-11 · current release · diff ↗
  • 3.1.0
    2024-11-06 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 3.0-0
    2024-02-29 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.9-0
    2023-02-13 · diff ↗
  • 2.8-8
    2022-05-05 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.8-7.1
    2021-11-07 · diff ↗
  • 2.8-7
    2021-07-31 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 2.8-6
    2021-01-11 · diff ↗
  • unarchivedReturned to CRAN
    2021-01-11
  • archivedRemoved from CRAN
    2020-12-04
    check problems were not corrected in time
Show 68 earlier events
  • 2.8-5.1
    2020-07-08 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.8-5
    2019-12-17 · diff ↗
  • 2.8-4
    2019-12-11 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 2.8-3
    2019-03-27 · diff ↗
  • 2.8-2.1
    2019-03-26 · diff ↗
  • 2.8-2
    2018-08-22 · diff ↗
  • 2.8
    2018-06-28 · diff ↗
  • 2.7-2383
    2018-06-18 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.6-2291
    2018-02-16 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 2.5-1998
    2016-04-19 · diff ↗
  • 2.5-1968
    2016-04-11 · diff ↗
  • 2.4-1788
    2015-10-26 · diff ↗
  • 2.4-1786
    2015-10-21 · diff ↗
  • 2.3-1709
    2015-05-26 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 2.2-1699
    2015-04-13 · diff ↗
  • 2.1-1640
    2015-03-11 · diff ↗
  • 2.1-1629
    2015-03-05 · diff ↗
  • 2.1-1620
    2015-03-03 · diff ↗
  • 2.0-1570
    2015-02-10 · diff ↗
  • 1.8-1441
    2014-12-25 · diff ↗
  • 1.7-1416
    2014-12-15 · diff ↗
  • 1.7-1404
    2014-10-10 · diff ↗
  • 1.7-1401
    2014-10-09 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.7-1289
    2014-03-13 · diff ↗
  • 1.7-1286
    2014-03-09 · diff ↗
  • 1.7-1282
    2014-03-07 · diff ↗
  • 1.6-1188
    2014-01-23 · diff ↗
  • 1.6-1180
    2014-01-04 · diff ↗
  • 1.6-1163
    2013-12-06 · diff ↗
  • 1.6-1161
    2013-12-03 · diff ↗
  • 1.5-1118
    2013-11-12 · diff ↗
  • 1.5-1107
    2013-10-28 · diff ↗
  • 1.5-1045
    2013-08-05 · diff ↗
  • 1.5-1026
    2013-06-12 · diff ↗
  • 1.4-963
    2013-05-07 · diff ↗
  • 1.4-941
    2013-04-03 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.4-771
    2013-01-16 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 1.4-731
    2011-12-07 · diff ↗
  • 1.4-729
    2011-11-29 · diff ↗
  • 1.4-726
    2011-11-23 · diff ↗
  • 1.4-723
    2011-11-21 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 1.4-709
    2011-10-11 · diff ↗
  • 1.4-708
    2011-09-28 · diff ↗
  • 1.4-702
    2011-09-27 · diff ↗
  • 1.4-695
    2011-09-24 · diff ↗
  • 1.4-681
    2011-09-22 · diff ↗
  • 1.4-670
    2011-09-11 · diff ↗
  • 1.4-653
    2011-09-01 · diff ↗
  • 1.4-641
    2011-08-30 · diff ↗
  • 1.3-572
    2011-04-24 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • 1.3-512
    2011-04-08 · diff ↗
  • 1.2-452
    2011-03-30 · diff ↗
  • 1.2-444
    2011-03-27 · diff ↗
  • 1.1-434
    2011-03-16 · diff ↗
  • 1.1-427
    2011-03-11 · diff ↗
  • 1.0-418
    2011-03-10
  • R
    R 2.12.0 released · 2010-10-15

Package metadata

First published
2011-03-10
Total releases
64 / 15 yrs
License
Apache License (>= 2)
Minimum R
≥ 2.15.2
Download size
1.1 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("lfe")
Vargas Sepulveda, M., Dunkle Werner, K., Gaure, S., Lüdecke, D., McDermott, G., & Stigler, M. (2025). lfe: Linear Group Fixed Effects (Version 3.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.lfe

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for lfe version 3.1.1 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy