EconPapers    
Economics at your fingertips  
 

xtnumfac: A battery of estimators for the number of common factors in time series and panel-data models

Jan Ditzen and Simon Reese ()
Additional contact information
Simon Reese: Lund University

Stata Journal, 2023, vol. 23, issue 2, 438-454

Abstract: In this article, we introduce a new community-contributed command, xtnumfac, for estimating the number of common factors in time-series and panel datasets using the methods of Bai and Ng (2002, Econometrica 70: 191–221), Ahn and Horenstein (2013, Econometrica 81: 1203–1227), Onatski (2010, Review of Economics and Statistics 92: 1004–1016), and Gagliardini, Ossola, and Scaillet (2019, Journal of Econometrics 212: 503–521). Common factors are usually unobserved or unobservable. In time series, they influence all predictors, while in paneldata models, they influence all cross-sectional units at different degrees. Examples are shocks from oil prices, inflation, or demand or supply shocks. Knowledge about the number of factors is key for multiple econometric estimation methods, such as Pesaran (2006, Econometrica 74: 967–1012), Bai (2009, Econometrica 77: 1229–1279), Norkute et al. (2021, Journal of Econometrics 220: 416–446), and Kripfganz and Sarafidis (2021, Stata Journal 21: 659–686). This article discusses a total of 10 methods to estimate the number of common factors. Examples based on Kapetanios, Pesaran, and Reese (2021, Journal of Econometrics 221: 510–541) show that U.S. house prices are exposed to up to 10 common factors. Therefore, when one fits models with house prices as a dependent variable, the number of factors must be considered.

Keywords: xtnumfac; common factors; factor models; cross-section dependence; panel-data models; time-series models (search for similar items in EconPapers)
Date: 2023
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj23-2/st0715/
References: Add references at CitEc
Citations: View citations in EconPapers (1)

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0715 link to article purchase

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:23:y:2023:i:2:p:438-454

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

DOI: 10.1177/1536867X231175305

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-22
Handle: RePEc:tsj:stataj:v:23:y:2023:i:2:p:438-454