Learn R Programming

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

lfe (version 2.8-2.1)

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. 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.

Copy Link

Version

Install

install.packages('lfe')

Monthly Downloads

9,409

Version

2.8-2.1

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Simen Gaure

Last Published

March 26th, 2019

Functions in lfe (2.8-2.1)

cgsolve

Solve a symmetric linear system with the conjugate gradient method
mctrace

Compute trace of a large matrix by sample means
nlexpect

Compute expectation of a function of the coefficients.
sargan

Compute Sargan's S
waldtest

Compute Wald test for joint restrictions on coefficients
compfactor

Find the connected components
condfstat

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

Centre vectors on multiple groups
diammatrix

Find diameters of mobility graphs
getfe

Retrieve the group fixed effects
is.estimable

Verify estimability of function
efactory

Create estimable function
felm

Fit a linear model with multiple group fixed effects
fevcov

Compute limited mobility bias corrected covariance matrix between fixed effects
fixedse

Compute standard errors for fixed effects
bccorr

Compute limited mobility bias corrected correlation between fixed effects
btrap

Bootstrap standard errors for the group fixed effects
kaczmarz

Solve a linear system defined by factors
summary.felm

Summarize felm model fits
lfe-package

Overview. Linear Group Fixed Effects
varvars

Compute the variance of the fixed effect variance estimate
chainsubset

Chain subset conditions
makeDmatrix

Make sparse matrix of dummies from factor list