login

The Stata Command Felsdvreg to Fit a Linear Model with Two High-Dimensional Fixed Effects

The Stata Journal Promoting communications on statistics and StataPublished 1 June 2008Open access
Thomas Cornelißen
Citations140
SJR quartileQ1
SJR score1.65
SNIP1.90
View PDF

TL;DR

A memory-saving decomposition of the design matrix is proposed to facilitate the estimation of a linear model with two high-dimensional fixed effects, which can reduce the memory requirements considerably.

Abstract

This article proposes a memory-saving decomposition of the design matrix to facilitate the estimation of a linear model with two high-dimensional fixed effects. A common way to fit such a model is to take into account one of the effects by including dummy variables and to sweep out the other effect by the within transformation (fixed-effects transformation). If the number of panel units is high, creating and storing the dummy variables can involve prohibitively large computer-memory requirements. The memory-saving procedure to set up the moment matrices for estimation presented in this article can reduce the memory requirements considerably. The companion Stata ado-file felsdvreg implements the estimation method, takes care of identification issues, and provides useful summary statistics.

Keywords

Social SciencesEconomics, Econometrics and Finance