IDEAS home Printed from
   My bibliography  Save this paper

Generalized method of moments estimation of linear dynamic panel-data models


  • Sebastian Kripfganz

    (University of Exeter Business School)


In dynamic models with unobserved group-specific effects, the lagged dependent variable is an endogenous regressor by construction. The conventional fixed-effects estimator is biased and inconsistent under fixed-T asymptotics. To deal with this problem, "difference GMM" and "system GMM" estimators in the spirit of Arellano and Bond (1991, Review of Economic Studies), Arellano and Bover (1995, Journal of Econometrics), and Blundell and Bond (1998, Journal of Econometrics) are predominantly applied in practice. While Stata has the official commands xtabond and xtdpdsys—both are wrappers for xtdpd—the Stata community widely associates these methods with the xtabond2 command provided by Roodman (2009, Stata Journal). 10 years after Roodman's award winning Stata Journal article, this presentation revisits the GMM estimation of dynamic panel-data models in Stata. I present the new command, xtdpdgmm, that addresses some shortcomings of xtabond2 and adds further flexibility to the specification of the estimators. In particular, it allows to incorporate the Ahn and Schmidt (1995, Journal of Econometrics) nonlinear moment conditions that can improve the efficiency and robustness of the estimation. Besides the familiar one-step and two-step estimators, xtdpdgmm also provides the Hansen, Heaton, and Yaron (1996, Journal of Business & Economic Statistics) iterated GMM estimator. While it can be pedagogically useful to think about "system GMM" as a system of a level equation and an equation in first differences or forward-orthogonal deviations, I explain that the resulting estimator can still be regarded as a "level GMM" estimator with a set of transformed instruments. These transformed instruments can be obtained as a postestimation feature and used for subsequent specification tests, for example with the ivreg2 command suite of Baum, Schaffer, and Stillman (2003 and 2007, Stata Journal). I further address common pitfalls and frequently asked questions about the estimation of linear dynamic panel-data models.

Suggested Citation

  • Sebastian Kripfganz, 2019. "Generalized method of moments estimation of linear dynamic panel-data models," London Stata Conference 2019 17, Stata Users Group.
  • Handle: RePEc:boc:usug19:17

    Download full text from publisher

    File URL:
    Download Restriction: no

    Other versions of this item:

    References listed on IDEAS

    1. Frank Windmeijer, 2018. "Testing Over- and Underidentification in Linear Models, with Applications to Dynamic Panel Data and Asset-Pricing Models," Bristol Economics Discussion Papers 18/696, School of Economics, University of Bristol, UK.
    2. Hansen, Lars Peter, 1982. "Large Sample Properties of Generalized Method of Moments Estimators," Econometrica, Econometric Society, vol. 50(4), pages 1029-1054, July.
    3. Sanderson, Eleanor & Windmeijer, Frank, 2016. "A weak instrument F-test in linear IV models with multiple endogenous variables," Journal of Econometrics, Elsevier, vol. 190(2), pages 212-221.
    4. David Roodman, 2009. "How to do xtabond2: An introduction to difference and system GMM in Stata," Stata Journal, StataCorp LP, vol. 9(1), pages 86-136, March.
    5. Mundlak, Yair, 1978. "On the Pooling of Time Series and Cross Section Data," Econometrica, Econometric Society, vol. 46(1), pages 69-85, January.
    6. Hausman, Jerry, 2015. "Specification tests in econometrics," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 38(2), pages 112-134.
    7. Kiviet, Jan F., 2020. "Microeconometric dynamic panel data methods: Model specification and selection issues," Econometrics and Statistics, Elsevier, vol. 13(C), pages 16-45.
    8. Hansen, Lars Peter & Heaton, John & Yaron, Amir, 1996. "Finite-Sample Properties of Some Alternative GMM Estimators," Journal of Business & Economic Statistics, American Statistical Association, vol. 14(3), pages 262-280, July.
    9. K. Newey, Whitney, 1985. "Generalized method of moments specification testing," Journal of Econometrics, Elsevier, vol. 29(3), pages 229-256, September.
    10. David Roodman, 2009. "A Note on the Theme of Too Many Instruments," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 71(1), pages 135-158, February.
    11. Windmeijer, Frank, 2005. "A finite sample correction for the variance of linear efficient two-step GMM estimators," Journal of Econometrics, Elsevier, vol. 126(1), pages 25-51, May.
    12. White, Halbert, 1982. "Maximum Likelihood Estimation of Misspecified Models," Econometrica, Econometric Society, vol. 50(1), pages 1-25, January.
    Full references (including those not matched with items on IDEAS)


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Markus Brueckner & Haiyan Lin, 2021. "Inequality and Growth in China," ANU Working Papers in Economics and Econometrics 2021-682, Australian National University, College of Business and Economics, School of Economics.
    2. Kufenko, Vadim & Prettner, Klaus, 2021. "Do you know your biases? A Monte Carlo analysis of dynamic panel data estimators," Department of Economics Working Paper Series 316, WU Vienna University of Economics and Business.
    3. Boima M. Bernard & Yanping Song & Sehresh Hena & Fayyaz Ahmad & Xin Wang, 2022. "Assessing Africa’s Agricultural TFP for Food Security and Effects on Human Development: Evidence from 35 Countries," Sustainability, MDPI, vol. 14(11), pages 1-21, May.
    4. Henri Njangang & Simplice A. Asongu & Eric Mouchili, 2022. "Does corruption starve? An African perspective," Working Papers 22/022, European Xtramile Centre of African Studies (EXCAS).
    5. Chiputwa, Brian & Blundo-Canto, Genowefa & Steward, Peter & Andrieu, Nadine & Ndiaye, Ousmane, 2022. "Co-production, uptake of weather and climate services, and welfare impacts on farmers in Senegal: A panel data approach," Agricultural Systems, Elsevier, vol. 195(C).
    6. Ramón Cobo-Reyes & Gabriel Katz & Thomas Markussen & Simone Meraglia, 2022. "Voting on sanctioning institutions in open and closed communities: experimental evidence," Social Choice and Welfare, Springer;The Society for Social Choice and Welfare, vol. 58(3), pages 619-677, April.
    7. Wang, Yang & Zhang, Yifei, 2020. "Do state subsidies increase corporate environmental spending?," International Review of Financial Analysis, Elsevier, vol. 72(C).
    8. Moscelli, Giuseppe & Sayli, Melisa & Mello, Marco, 2022. "Staff Engagement, Job Complementarity and Labour Supply: Evidence from the English NHS Hospital Workforce," IZA Discussion Papers 15126, Institute of Labor Economics (IZA).
    9. Hak Yeung & Jürgen Huber, 2022. "Further Evidence on China’s B&R Impact on Host Countries’ Quality of Institutions," Sustainability, MDPI, vol. 14(9), pages 1-17, May.
    10. Markus Fritsch & Andrew Adrian Pua & Joachim Schnurbus, 2019. "Revisiting Evidence on Habits and Heterogeneity in Demands," Working Papers 2019-07-09, Wang Yanan Institute for Studies in Economics (WISE), Xiamen University.
    11. Berthonnaud, Pierre & Cesati, Enrico & Drudi, Maria Ludovica & Jager, Kirsten & Kick, Heinrich & Lanciani, Marcello & Schneider, Ludwig & Schwarz, Claudia & Siakoulis, Vasileios & Vroege, Robert, 2021. "Asset encumbrance in euro area banks: analysing trends, drivers and prediction properties for individual bank crises," Occasional Paper Series 261, European Central Bank.
    12. Pua, Andrew Adrian Yu & Fritsch, Markus & Schnurbus, Joachim, 2019. "Large sample properties of an IV estimator based on the Ahn and Schmidt moment conditions," Passauer Diskussionspapiere, Betriebswirtschaftliche Reihe B-37-19, University of Passau, Faculty of Business and Economics.
    13. Pua, Andrew Adrian Yu & Fritsch, Markus & Schnurbus, Joachim, 2019. "Practical aspects of using quadratic moment conditions in linear dynamic panel data models," Passauer Diskussionspapiere, Betriebswirtschaftliche Reihe B-38-19, University of Passau, Faculty of Business and Economics.
    14. Dilmaghani, Maryam, 2021. "The gender gap in competitive chess across countries: Commanding queens in command economies," Journal of Comparative Economics, Elsevier, vol. 49(2), pages 425-441.
    15. Keneck-Massil, Joseph & Nomo-Beyala, Clery & Owoundi, Ferdinand, 2021. "The corruption and income inequality puzzle: Does political power distribution matter?," Economic Modelling, Elsevier, vol. 103(C).
    16. Ceballos-Sierra, Federico & Dall'Erba, Sandy, 2021. "The effect of climate variability on Colombian coffee productivity: A dynamic panel model approach," Agricultural Systems, Elsevier, vol. 190(C).
    17. Linh Tu Ho & Christopher Gan, 2021. "Foreign Direct Investment and World Pandemic Uncertainty Index: Do Health Pandemics Matter?," JRFM, MDPI, vol. 14(3), pages 1-15, March.
    18. Fritsch, Markus & Pua, Andrew Adrian Yu & Schnurbus, Joachim, 2019. "Revisiting habits and heterogeneity in demands," Passauer Diskussionspapiere, Volkswirtschaftliche Reihe V-78-19, University of Passau, Faculty of Business and Economics.
    19. Kahsay Gerezihar Tsaedu & Zhihong Chen, 2021. "The Dynamics of Firm Growth in Sub-Saharan Africa: Evidence from Ethiopian Manufacturing Sector 1996–2017," Journal of Industry, Competition and Trade, Springer, vol. 21(3), pages 367-392, September.
    20. Livio Di Matteo & Robert Petrunia, 2022. "Does economic inequality breed murder? An empirical investigation of the relationship between economic inequality and homicide rates in Canadian provinces and CMAs," Empirical Economics, Springer, vol. 62(6), pages 2951-2988, June.
    21. Fritsch, Markus, 2019. "On GMM estimation of linear dynamic panel data models," Passauer Diskussionspapiere, Betriebswirtschaftliche Reihe B-36-19, University of Passau, Faculty of Business and Economics.
    22. Goodell, John W. & Goyal, Abhinav & Hasan, Iftekhar, 2020. "Comparing financial transparency between for-profit and nonprofit suppliers of public goods: Evidence from microfinance," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 64(C).
    23. Gupta, C.P. & Bedi, Prateek, 2020. "Corporate cash holdings and promoter ownership," Emerging Markets Review, Elsevier, vol. 44(C).
    24. Mr. Paulo A Medas & Ms. Anja Baum & Clay Hackney & Mouhamadou Sy, 2019. "Governance and State-Owned Enterprises: How Costly is Corruption?," IMF Working Papers 2019/253, International Monetary Fund.
    25. Fritsch, Markus & Pua, Andrew Adrian Yu & Schnurbus, Joachim, 2019. "Pdynmc - An R-package for estimating linear dynamic panel data models based on linear and nonlinear moment conditions," Passauer Diskussionspapiere, Betriebswirtschaftliche Reihe B-39-19, University of Passau, Faculty of Business and Economics.

    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. Sebastian Kripfganz & Claudia Schwarz, 2019. "Estimation of linear dynamic panel data models with time‐invariant regressors," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 34(4), pages 526-546, June.
    2. Osvaldo Lagares, 2016. "Capital, Economic Growth and Relative Income Differences in Latin America," Discussion Papers 16/03, Department of Economics, University of York.
    3. Jondeau, Eric & Le Bihan, Hervé, 2008. "Examining bias in estimators of linear rational expectations models under misspecification," Journal of Econometrics, Elsevier, vol. 143(2), pages 375-395, April.
    4. Sigmund, Michael & Ferstl, Robert, 2021. "Panel vector autoregression in R with the package panelvar," The Quarterly Review of Economics and Finance, Elsevier, vol. 80(C), pages 693-720.
    5. Nicolas Dias Gomes & Pedro André Cerqueira & Luís Alçada Almeida, 2013. "Determinants of Worldwide Software Piracy Losses," GEMF Working Papers 2013-19, GEMF, Faculty of Economics, University of Coimbra.
    6. Zheng, Xinye & Li, Fanghua & Song, Shunfeng & Yu, Yihua, 2013. "Central government's infrastructure investment across Chinese regions: A dynamic spatial panel data approach," China Economic Review, Elsevier, vol. 27(C), pages 264-276.
    7. Feldmann, Horst, 2012. "Banking deregulation around the world, 1970s to 2000s: The impact on unemployment," International Review of Economics & Finance, Elsevier, vol. 24(C), pages 26-42.
    8. DELL'ANNO, Roberto & VILLA, Stefania, 2012. "Growth in Transition Countries: Big Bang versus Gradualism," CELPE Discussion Papers 122, CELPE - Centre of Labour Economics and Economic Policy, University of Salerno, Italy.
    9. Fendel Tanja, 2016. "Migration and Regional Wage Disparities in Germany," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 236(1), pages 3-35, February.
    10. Emna Trabelsi, 2022. "Macroprudential Transparency and Price Stability in Emerging and Developing Countries," Journal of Central Banking Theory and Practice, Central bank of Montenegro, vol. 11(1), pages 105-129.
    11. W.N.W Azman‐Saini & Peter Smith, 2011. "Finance And Growth: New Evidence On The Role Of Insurance," South African Journal of Economics, Economic Society of South Africa, vol. 79(2), pages 111-127, June.
    12. Christopher F Baum & Mark E. Schaffer & Steven Stillman, 2003. "Instrumental variables and GMM: Estimation and testing," Stata Journal, StataCorp LP, vol. 3(1), pages 1-31, March.
    13. Schuster, Monica & Maertens, Miet, 2012. "Private Food Standards and Firm-Level Trade Effects: A Dynamic Analysis of the Peruvian Asparagus Export Sector," Working Papers 146521, Katholieke Universiteit Leuven, Centre for Agricultural and Food Economics.
    14. Heid, Benedikt & Langer, Julian & Larch, Mario, 2012. "Income and democracy: Evidence from system GMM estimates," Economics Letters, Elsevier, vol. 116(2), pages 166-169.
    15. Nasr G. Elbahnasawy & Michael A. Ellis, 2016. "Economic Structure And Seigniorage: A Dynamic Panel Data Analysis," Economic Inquiry, Western Economic Association International, vol. 54(2), pages 940-965, April.
    16. N. N., 2017. "Do Individual Salaries Depend On the Performance of the Peers? Prototype Heuristic and Wage Bargaining in the NBA," WIFO Working Papers 534, WIFO.
    17. Donatella Saccone, 2021. "Can the Covid19 pandemic affect the achievement of the ‘Zero Hunger’ goal? Some preliminary reflections," The European Journal of Health Economics, Springer;Deutsche Gesellschaft für Gesundheitsökonomie (DGGÖ), vol. 22(7), pages 1025-1038, September.
    18. Albaladejo, Isabel P. & González-Martínez, María Isabel & Martínez-García, María Pilar, 2016. "Nonconstant reputation effect in a dynamic tourism demand model for Spain," Tourism Management, Elsevier, vol. 53(C), pages 132-139.
    19. Pinaki Chakraborty & Bharatee Bhusana Dash, 2017. "Fiscal Reforms, Fiscal Rule, and Development Spending: How Indian States Have Performed?," Public Budgeting & Finance, Wiley Blackwell, vol. 37(4), pages 111-133, December.
    20. Orkhan Nadirov & Bruce Dehning, 2020. "Tax Progressivity and Entrepreneurial Dynamics," Sustainability, MDPI, vol. 12(9), pages 1-21, April.

    More about this item


    Access and download statistics


    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:usug19:17. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: . General contact details of provider: .

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

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

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.