Learn R Programming

⚠️There's a newer version (2.9-0) of this package.Take me there.

lfe (version 2.8-8)

Linear Group Fixed Effects

Description

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) 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 ). WARNING: This package is NOT under active development anymore, no further improvements are to be expected, and the package is at risk of being removed from CRAN.

Copy Link

Version

Install

install.packages('lfe')

Monthly Downloads

13,164

Version

2.8-8

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Last Published

May 4th, 2022

Functions in lfe (2.8-8)

compfactor

Find the connected components
demeanlist

Centre vectors on multiple groups
condfstat

Compute conditional F statistic for weak instruments in an IV-estimation with multiple endogenous variables
btrap

Bootstrap standard errors for the group fixed effects
mctrace

Compute trace of a large matrix by sample means
bccorr

Compute limited mobility bias corrected correlation between fixed effects
makeDmatrix

Make sparse matrix of dummies from factor list
chainsubset

Chain subset conditions
kaczmarz

Solve a linear system defined by factors
cgsolve

Solve a symmetric linear system with the conjugate gradient method
summary.felm

Summarize felm model fits
lfe-package

Overview. Linear Group Fixed Effects
varvars

Compute the variance of the fixed effect variance estimate
nlexpect

Compute expectation of a function of the coefficients.
felm

Fit a linear model with multiple group fixed effects
efactory

Create estimable function
diammatrix

Find diameters of mobility graphs
waldtest

Compute Wald test for joint restrictions on coefficients
sargan

Compute Sargan's S
fevcov

Compute limited mobility bias corrected covariance matrix between fixed effects
fixedse

Compute standard errors for fixed effects
is.estimable

Verify estimability of function
getfe

Retrieve the group fixed effects