An Algorithm to Estimate the Two-Way Fixed Effects Model

Q3 Mathematics Journal of Econometric Methods Pub Date : 2015-01-01 DOI:10.1515/jem-2014-0008
Paulo Somaini, F. Wolak
{"title":"An Algorithm to Estimate the Two-Way Fixed Effects Model","authors":"Paulo Somaini, F. Wolak","doi":"10.1515/jem-2014-0008","DOIUrl":null,"url":null,"abstract":"Abstract We present an algorithm to estimate the two-way fixed effect linear model. The algorithm relies on the Frisch-Waugh-Lovell theorem and applies to ordinary least squares (OLS), two-stage least squares (TSLS) and generalized method of moments (GMM) estimators. The coefficients of interest are computed using the residuals from the projection of all variables on the two sets of fixed effects. Our algorithm has three desirable features. First, it manages memory and computational resources efficiently which speeds up the computation of the estimates. Second, it allows the researcher to estimate multiple specifications using the same set of fixed effects at a very low computational cost. Third, the asymptotic variance of the parameters of interest can be consistently estimated using standard routines on the residualized data.","PeriodicalId":36727,"journal":{"name":"Journal of Econometric Methods","volume":"5 1","pages":"143 - 152"},"PeriodicalIF":0.0000,"publicationDate":"2015-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1515/jem-2014-0008","citationCount":"20","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Econometric Methods","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1515/jem-2014-0008","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"Mathematics","Score":null,"Total":0}
引用次数: 20

Abstract

Abstract We present an algorithm to estimate the two-way fixed effect linear model. The algorithm relies on the Frisch-Waugh-Lovell theorem and applies to ordinary least squares (OLS), two-stage least squares (TSLS) and generalized method of moments (GMM) estimators. The coefficients of interest are computed using the residuals from the projection of all variables on the two sets of fixed effects. Our algorithm has three desirable features. First, it manages memory and computational resources efficiently which speeds up the computation of the estimates. Second, it allows the researcher to estimate multiple specifications using the same set of fixed effects at a very low computational cost. Third, the asymptotic variance of the parameters of interest can be consistently estimated using standard routines on the residualized data.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
一种估计双向固定效应模型的算法
摘要提出了一种估计双向固定效应线性模型的算法。该算法基于Frisch-Waugh-Lovell定理,适用于普通最小二乘(OLS)、两阶段最小二乘(TSLS)和广义矩量法(GMM)估计。使用所有变量在两组固定效应上的投影的残差来计算兴趣系数。我们的算法有三个理想的特征。首先,它有效地管理了内存和计算资源,加快了估计的计算速度。其次,它允许研究人员以非常低的计算成本使用相同的固定效应集来估计多个规格。第三,使用残差数据的标准例程可以一致地估计感兴趣的参数的渐近方差。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Journal of Econometric Methods
Journal of Econometric Methods Economics, Econometrics and Finance-Economics and Econometrics
CiteScore
2.20
自引率
0.00%
发文量
7
期刊最新文献
Estimation of Causal Effects with a Binary Treatment Variable: A Unified M-Estimation Framework Introduction to Latent Variable Estimation for Undergraduate Econometrics: An Application with Disney Theme Park Ride Wait Times Does Health Behavior Change After Diagnosis? Evidence From Fuzzy Regression Discontinuity Matching on Noise: Finite Sample Bias in the Synthetic Control Estimator Nonparametric Instrumental Regression with Two-Way Fixed Effects
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1