IDEAS home Printed from https://ideas.repec.org/p/boc/usug21/4.html

Instrumental variable estimation of large-T panel data models with common factors

Author

Listed:
  • Sebastian Kripfganz

    (University of Exeter Business School)

  • Vasilis Sarafidis

    (BI Norwegian Business School)

Abstract

We introduce the xtivdfreg command in Stata, which implements a general instrumental variables (IV) approach for estimating panel data models with a large number of time series observations, T, and unobserved common factors or interactive effects, as developed by Norkute, Sarafidis, Yamagata, and Cui (2021, Journal of Econometrics) and Cui, Norkute, Sarafidis, and Yamagata (2020, ISER Discussion Paper). The underlying idea of this approach is to project out the common factors from exogenous covariates using principal components analysis, and to run IV regression in both of two stages, using defactored covariates as instruments. The resulting two-stage IV (2SIV) estimator is valid for models with homogeneous or heterogeneous slope coefficients, and has several advantages relative to existing popular approaches. In addition, the xtivdfreg command extends the 2SIV approach in two major ways. Firstly, the algorithm accommodates estimation of unbalanced panels. Secondly, the algorithm permits a flexible specification of instruments. It is shown that when one imposes zero factors, the xtivdfreg command can replicate the results of the popular ivregress Stata command. Notably, unlike ivregress, xtivdfreg permits estimation of the two-way error components panel data model with heterogeneous slope coefficients.

Suggested Citation

  • Sebastian Kripfganz & Vasilis Sarafidis, 2021. "Instrumental variable estimation of large-T panel data models with common factors," London Stata Conference 2021 4, Stata Users Group.
  • Handle: RePEc:boc:usug21:4
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/usug2021/usug21_kripfganz.pdf
    File Function: presentation materials
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Sergio Correia, 2016. "reghdfe: Estimating linear models with multi-way fixed effects," 2016 Stata Conference 24, Stata Users Group.
    2. M. Hashem Pesaran, 2006. "Estimation and Inference in Large Heterogeneous Panels with a Multifactor Error Structure," Econometrica, Econometric Society, vol. 74(4), pages 967-1012, July.
    3. Jan Ditzen, 2018. "Estimating dynamic common-correlated effects in Stata," Stata Journal, StataCorp LLC, vol. 18(3), pages 585-617, September.
    4. Norkutė, Milda & Sarafidis, Vasilis & Yamagata, Takashi & Cui, Guowei, 2021. "Instrumental variable estimation of dynamic linear panel data models with defactored regressors and a multifactor error structure," Journal of Econometrics, Elsevier, vol. 220(2), pages 416-446.
    5. Guowei Cui & Milda NorkutÄ— & Vasilis Sarafidis & Takashi Yamagata, 2022. "Two-stage instrumental variable estimation of linear panel data models with interactive effects [Eigenvalue ratio test for the number of factors]," The Econometrics Journal, Royal Economic Society, vol. 25(2), pages 340-361.
    6. Jushan Bai, 2009. "Panel Data Models With Interactive Fixed Effects," Econometrica, Econometric Society, vol. 77(4), pages 1229-1279, July.
    7. Sebastian Kripfganz & Vasilis Sarafidis, 2021. "Instrumental-variable estimation of large-T panel-data models with common factors," Stata Journal, StataCorp LLC, vol. 21(3), pages 659-686, September.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Le Clech, Néstor A., 2024. "Policy market orientation, property rights, and corruption effects on the rent of non-renewable resources in Latin America and the Caribbean," Resources Policy, Elsevier, vol. 91(C).
    2. Chen, Jia & Cui, Guowei & Sarafidis, Vasilis & Yamagata, Takashi, 2025. "IV Estimation of Heterogeneous Spatial Dynamic Panel Models with Interactive Effects," MPRA Paper 123497, University Library of Munich, Germany.
    3. Eibinger, Tobias & Deixelberger, Beate & Manner, Hans, 2024. "Panel data in environmental economics: Econometric issues and applications to IPAT models," Journal of Environmental Economics and Management, Elsevier, vol. 125(C).
    4. Jaromír Baxa & Michal Paulus, 2024. "Exchange rate misalignments, growth, and institutions," Empirical Economics, Springer, vol. 67(4), pages 1705-1799, October.
    5. Guowei Cui & Milda NorkutÄ— & Vasilis Sarafidis & Takashi Yamagata, 2022. "Two-stage instrumental variable estimation of linear panel data models with interactive effects [Eigenvalue ratio test for the number of factors]," The Econometrics Journal, Royal Economic Society, vol. 25(2), pages 340-361.
    6. Chen, Yan & Murshed, Muntasir & Sinha, Avik & Alam, Mohammad Mahtab & Khudoykulov, Khurshid, 2024. "Revisiting the resource curse hypothesis from the viewpoint of green growth: The role of Fintech as the de-cursing agent," Resources Policy, Elsevier, vol. 95(C).
    7. Juodis, Artūras & Sarafidis, Vasilis, 2022. "An incidental parameters free inference approach for panels with common shocks," Journal of Econometrics, Elsevier, vol. 229(1), pages 19-54.
    8. repec:ags:aaea22:335448 is not listed on IDEAS
    9. Mita Bhattacharya & Eric Yan, 2025. "Press freedom and stringency measures: the role of energy consumption during COVID-19 lockdowns," Empirical Economics, Springer, vol. 68(6), pages 2515-2547, June.
    10. Jan Ditzen & Yiannis Karavias, 2025. "Interactive, Grouped and Non-separable Fixed Effects: A Practitioner's Guide to the New Panel Data Econometrics," Papers 2507.19099, arXiv.org, revised Oct 2025.
    11. Sakiru Adebola Solarin & Mufutau Opeyemi Bello, 2024. "Modelling labour productivity and the role of research intensity in 129 years: evidence from a new dynamic instrumental variable estimation approach," Quality & Quantity: International Journal of Methodology, Springer, vol. 58(3), pages 2619-2646, June.
    12. Guowei Cui & Vasilis Sarafidis & Takashi Yamagata, 2023. "IV estimation of spatial dynamic panels with interactive effects: large sample theory and an application on bank attitude towards risk," The Econometrics Journal, Royal Economic Society, vol. 26(2), pages 124-146.
    13. Aslanidis, Nektarios & Bariviera, Aurelio & Kapetanios, George & Sarafidis, Vasilis, 2025. "Heterogeneous Exposures to Systematic and Idiosyncratic Risk across Crypto Assets: A Divide-and-Conquer Approach," MPRA Paper 125124, University Library of Munich, Germany.
    14. Mary, Sebastien J. & Stoler, Avraham & Shafiq, Sarah & Craven, Kyle, 2023. "Dams of Malaria," 2023 Annual Meeting, July 23-25, Washington D.C. 335448, Agricultural and Applied Economics Association.
    15. Canepa, Alessandra, 2025. "Two Decades On: Assessing the Impact of the Copenhagen Criteria on Environmental Performance in the 2004 EU Accession Countries," Department of Economics and Statistics Cognetti de Martiis. Working Papers 202501, University of Turin.
    16. Hailemariam, Abebe & Ivanovski, Kris & Dzhumashev, Ratbek, 2022. "Does R&D investment in renewable energy technologies reduce greenhouse gas emissions?," Applied Energy, Elsevier, vol. 327(C).
    17. De Vos, Ignace & Stauskas, Ovidijus, 2024. "Cross-section bootstrap for CCE regressions," Journal of Econometrics, Elsevier, vol. 240(1).
    18. Andrew K. Jorgenson & Brett Clark & Ryan P. Thombs & Jeffrey Kentor & Jennifer E. Givens & Xiaorui Huang & Hassan El Tinay & Daniel Auerbach & Matthew C. Mahutga, 2023. "Guns versus Climate: How Militarization Amplifies the Effect of Economic Growth on Carbon Emissions," American Sociological Review, , vol. 88(3), pages 418-453, June.
    19. Sebastian Kripfganz & Vasilis Sarafidis, 2026. "Chasing Opportunity: Spillovers and Drivers of U.S. State Population Growth," Papers 2601.10444, arXiv.org.
    20. Guowei Cui & Kazuhiko Hayakawa & Shuichi Nagata & Takashi Yamagata, 2018. "A robust approach to heteroskedasticity, error serial correlation and slope heterogeneity for large linear panel data models with interactive effects," ISER Discussion Paper 1037r, Institute of Social and Economic Research, The University of Osaka, revised Jun 2019.
    21. Hugo Freeman & Martin Weidner, 2021. "Linear panel regressions with two-way unobserved heterogeneity," CeMMAP working papers CWP39/21, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:usug21:4. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.