Skip to content

Linear Group Fixed Effects

4packages dependsuggested by 16
203.2Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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: 5.1 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 3.1.1
READMEYes · 174 wordsVignettesYes · 4 · dynamicNEWSYes · does not mention 3.1.1Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
25 (2 internal)includes a package overview page
Examples that run
100%20 run in a plain check
Exported functions with examples
86%
Documented parameters
98%
Return-value docs
91%
Help pages citing references
28%

Downloads

203.2K
CRAN downloads in the past year
Rank #976 · ~557/day · ~16.9K/mo
Daily download trend is not available in this view yet.
13.1K30 days
41.3K90 days
203.2K1 year
Compare downloads with other packages →
Also on1.3K r2u8 autocran6.1K conda_forge311 c2d4u

Repository

0Stars
1Forks
2Open issues
0Open PRs
0Releases
151Commits
6Commit identities
151 commits · Last activity 2023-12-29 · The default branch showed an older version (3.0-0) than CRAN on 2026-10-18
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
not measured

Forks over time

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

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

Checks run against github.com/r-econometrics/lfe on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing lfe adds 4 packages (1 with compiled code, 2.7 MB of source tarballs). Heaviest: sandwich 1.4 MB, zoo 675 KB, xtable 604 KB.

Depends (2)
R >= 2.15.2Matrix
Imports (7)
Formulaxtablecompilerutilsmethodssandwichparallel
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
4direct
0indirect
Imports 4
Suggested by 16
Show all 20 packagesHide all 20 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (6)
Contributor, Maintainer since 3.0-0 (2024) · 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

Previously maintained by Matthieu Stigler (2.8-6 to 2.9-0) and Simen Gaure (1.0-418 to 2.8-5.1).

Listed in earlier versions (3)
Show 3 peopleHide 3 people
The Ragnar Frisch Centre for Economic Research
no longer listed · 1.2-444 to 1.4-670
Ragnar Frisch Centre for Economic Research
no longer listed · 1.4-681 to 2.7-2383
no longer listed · 2.8-8 to 2.9-0
Releases (64)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 3.1.1Latest
    record
    2025-02-11 · current release · diff ↗
  • 3.1.0
    record
    2024-11-06 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 3.0-0
    record
    2024-02-29 · diff ↗ ·
    added 1 export
    fepois
  • R
    R 4.3.0 released · 2023-04-21
  • 2.9-0
    record
    2023-02-13 · diff ↗
  • 2.8-8
    record
    2022-05-05 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.8-7.1
    record
    2021-11-07 · diff ↗
  • 2.8-7
    record
    2021-07-31 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2021-01-11
  • 2.8-6
    record
    2021-01-11 · diff ↗
  • archivedRemoved from CRAN
    2020-12-04
    check problems were not corrected in time
Show 68 earlier eventsHide 68 earlier events

Package metadata

First published
2011-03-10
Total releases
64 / 15 yrs
License
Apache License (>= 2) · relicensed from MIT + file LICENSE in 3.1.1
Minimum R
≥ 2.15.2
Download size
1.1 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("lfe")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, 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