IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v12y2012i3p515-542.html
   My bibliography  Save this article

Long-run covariance and its applications in cointegration regression

Author

Listed:
  • Qunyong Wang

    (Nankai University, Tianjin, China)

  • Na Wu

    (Tianjin University of Finance and Economics, China)

Abstract

Long-run covariance plays a major role in much of time-series inference, such as heteroskedasticity- and autocorrelation-consistent standard errors, generalized method of moments estimation, and cointegration regression. We propose a Stata command, lrcov, to compute long-run covariance with a prewhitening strategy and various kernel functions. We illustrate how long-run covariance matrix estimation can be used to obtain heteroskedasticity- and autocorrelation-consistent standard errors via the new hacreg command; we also illustrate cointegration regression with the new cointreg command. hacreg has several improvements compared with the official newey command, such as more kernel functions, automatic determination of the lag order, and prewhitening of the data. cointreg enables the estimation of cointegration regression using fully modified ordinary least squares, dynamic ordinary least squares, and canonical cointegration regression methods. We use several classical examples to demonstrate the use of these commands.

Suggested Citation

  • Qunyong Wang & Na Wu, 2012. "Long-run covariance and its applications in cointegration regression," Stata Journal, StataCorp LP, vol. 12(3), pages 525-542, September.
  • Handle: RePEc:tsj:stataj:v:12:y:2012:i:3:p:515-542
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj12-3/st0272/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=st0272
    File Function: link to article purchase
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Park, Joon Y, 1992. "Canonical Cointegrating Regressions," Econometrica, Econometric Society, vol. 60(1), pages 119-143, January.
    2. Jin, Sainan & Phillips, Peter C.B. & Sun, Yixiao, 2006. "A new approach to robust inference in cointegration," Economics Letters, Elsevier, vol. 91(2), pages 300-306, May.
    3. K Abadir & W Distaso & L Giraitis, "undated". "Two estimators of the long-run variance," Discussion Papers 05/19, Department of Economics, University of York.
    4. Stock, James H & Watson, Mark W, 1993. "A Simple Estimator of Cointegrating Vectors in Higher Order Integrated Systems," Econometrica, Econometric Society, vol. 61(4), pages 783-820, July.
    5. Wouter J. Den Haan & Andrew T. Levin, 1995. "Inferences from parametric and non-parametric covariance matrix estimation procedures," International Finance Discussion Papers 504, Board of Governors of the Federal Reserve System (U.S.).
    6. Abadir, Karim M. & Distaso, Walter & Giraitis, Liudas, 2009. "Two estimators of the long-run variance: Beyond short memory," Journal of Econometrics, Elsevier, vol. 150(1), pages 56-70, May.
    7. Kiefer, Nicholas M. & Vogelsang, Timothy J., 2002. "Heteroskedasticity-Autocorrelation Robust Testing Using Bandwidth Equal To Sample Size," Econometric Theory, Cambridge University Press, vol. 18(6), pages 1350-1366, December.
    8. Choi, In & Park, Joon Y. & Yu, Byungchul, 1997. "Canonical Cointegrating Regression and Testing for Cointegration in the Presence of I(1) and I(2) Variables," Econometric Theory, Cambridge University Press, vol. 13(6), pages 850-876, December.
    9. Newey, Whitney & West, Kenneth, 2014. "A simple, positive semi-definite, heteroscedasticity and autocorrelation consistent covariance matrix," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 33(1), pages 125-132.
    10. Peter C. B. Phillips & Bruce E. Hansen, 1990. "Statistical Inference in Instrumental Variables Regression with I(1) Processes," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 57(1), pages 99-125.
    11. Zhijie Xiao & Oliver Linton, 2002. "A Nonparametric Prewhitened Covariance Estimator," Journal of Time Series Analysis, Wiley Blackwell, vol. 23(2), pages 215-250, March.
    12. Saikkonen, Pentti, 1992. "Estimation and Testing of Cointegrated Systems by an Autoregressive Approximation," Econometric Theory, Cambridge University Press, vol. 8(1), pages 1-27, March.
    13. Andrews, Donald W K, 1991. "Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation," Econometrica, Econometric Society, vol. 59(3), pages 817-858, May.
    14. Hansen, Bruce E, 2002. "Tests for Parameter Instability in Regressions with I(1) Processes," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 45-59, January.
    15. Hirukawa, Masayuki, 2010. "A Two-Stage Plug-In Bandwidth Selection And Its Implementation For Covariance Estimation," Econometric Theory, Cambridge University Press, vol. 26(3), pages 710-743, June.
    16. Donggyu Sul & Peter C. B. Phillips & Chi‐Young Choi, 2005. "Prewhitening Bias in HAC Estimation," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 67(4), pages 517-546, August.
    17. White, Halbert & Domowitz, Ian, 1984. "Nonlinear Regression with Dependent Observations," Econometrica, Econometric Society, vol. 52(1), pages 143-161, January.
    18. Andrews, Donald W K & Monahan, J Christopher, 1992. "An Improved Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimator," Econometrica, Econometric Society, vol. 60(4), pages 953-966, July.
    19. Park, J.Y. & Ogaki, M., 1991. "Inference in Cointegrated Models Using VAR Prewhitening to Estimate Shortrun Dynamics," RCER Working Papers 281, University of Rochester - Center for Economic Research (RCER).
    20. Phillips, Peter C.B. & Kim, Chang Sik, 2007. "Long-Run Covariance Matrices For Fractionally Integrated Processes," Econometric Theory, Cambridge University Press, vol. 23(6), pages 1233-1247, December.
    21. Ogaki, M., 1993. "CCR: A User Guide," RCER Working Papers 349, University of Rochester - Center for Economic Research (RCER).
    22. Francesc Marmol & Carlos Velasco, 2004. "Consistent Testing of Cointegrating Relationships," Econometrica, Econometric Society, vol. 72(6), pages 1809-1844, November.
    Full references (including those not matched with items on IDEAS)

    Citations

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


    Cited by:

    1. Joaquín Bernal-Ramírez & Jair Ojeda-Joya & Camila Agudelo-Rivera & Felipe Clavijo-Ramírez & Carolina Durana-Ángel & Clark Granger-Castaño & Daniel Osorio-Rodríguez & Daniel Parra-Amado & José Pulido &, 2022. "Impacto macroeconómico del cambio climático en Colombia," Revista ESPE - Ensayos sobre Política Económica, Banco de la Republica de Colombia, issue 102, pages 1-62, July.
    2. Papagni, Erasmo, 2018. "Fertility Transitions in Developing Countries: Convergence, Timing, and Causes," GLO Discussion Paper Series 248, Global Labor Organization (GLO).
    3. Sacchidananda Mukherjee, 2020. "Estimation and Projection of Petroleum Demand and Tax Collection from Petroleum Sector in India," Journal of Infrastructure Development, India Development Foundation, vol. 12(1), pages 39-68, June.
    4. Camila Agudelo-Rivera & Clark Granger-Castaño & Andrés Sánchez-Jabba, 2022. "The Expected Effects of Climate Change on Colombia’s Current Account," Borradores de Economia 1214, Banco de la Republica de Colombia.
    5. Donou-Adonsou, Ficawoyi, 2019. "Colonialism ties and stock markets: Evidence from Sub-Saharan Africa," Research in International Business and Finance, Elsevier, vol. 47(C), pages 327-343.
    6. Suphi Sen & Bertrand Melenberg & Herman R. J. Vollebergh, 2016. "Identification and Estimation of the Environmental Kuznets Curve: Pairwise Differencing to Deal with Nonlinearity and Nonstationarity," CESifo Working Paper Series 5837, CESifo.
    7. Peter Asare-Nuamah & Anthony Amoah & Simplice A. Asongu, 2021. "Achieving food security in Ghana: Does governance matter?," Working Papers of the African Governance and Development Institute. 21/090, African Governance and Development Institute..
    8. Silvia Calò & Mariarosaria Comunale, 2019. "Real Effective Exchange Rates determinants and growth: lessons from Italian regions," CEIS Research Paper 456, Tor Vergata University, CEIS, revised 27 Mar 2019.
    9. Reed, W. Robert & Zhu, Min, 2017. "On estimating long-run effects in models with lagged dependent variables," Economic Modelling, Elsevier, vol. 64(C), pages 302-311.
    10. Silas Kiprono SAMOEI & Edwin Kipyego KIPCHOGE, 2020. "Drivers of Horticultural Exports in Kenya," Journal of Economics and Financial Analysis, Tripal Publishing House, vol. 4(2), pages 27-44.
    11. André Madeira & Victor Moutinho & José Alberto Fuinhas, 2021. "Does waiting times decrease or increase operational costs in short and long-term? Evidence from Portuguese public hospitals," The European Journal of Health Economics, Springer;Deutsche Gesellschaft für Gesundheitsökonomie (DGGÖ), vol. 22(8), pages 1195-1216, November.
    12. Olabode Philip Olofin & Oluwole Oladipo Aiyegbusi & Abayomi Ayinla Adebayo, 2019. "Analysis of Foreign Direct Investment and Economic Growth in Nigeria: Application of Spatial Econometrics and Fully Modified Ordinary Least Square (FMOLS)," Foreign Trade Review, , vol. 54(3), pages 159-176, August.
    13. repec:nbp:nbpbik:v:47:y:2016:i:6:p:435-462 is not listed on IDEAS
    14. Papagni, Erasmo & Lepore, Amedeo & Felice, Emanuele & Baraldi, Anna Laura & Alfano, Maria Rosaria, 2021. "Public investment and growth: Lessons learned from 60-years experience in Southern Italy," Journal of Policy Modeling, Elsevier, vol. 43(2), pages 376-393.
    15. Bushra Praveen & Pushp Kumar & Imran Ali Baig & Mandeep Bhardwaj & Kanak Singh & Arvind Kumar Yadav, 2022. "Impact of environmental degradation on agricultural efficiency in India: evidence from robust econometric models," Journal of Bioeconomics, Springer, vol. 24(3), pages 203-222, October.
    16. Krzysztof Bartosik & Jerzy Mycielski, 2016. "Dynamika płac a długotrwałe bezrobocie w polskiej gospodarce," Bank i Kredyt, Narodowy Bank Polski, vol. 47(5), pages 435-462.
    17. Mariarosaria Comunale, 2019. "Long‐run determinants and misalignments of the real effective exchange rate in the EU," Scottish Journal of Political Economy, Scottish Economic Society, vol. 66(5), pages 649-672, November.
    18. Erasmo Papagni & Amedeo Lepore & Emanuele Felice & Anna Laura Baraldi & Maria Rosaria Alfano, 2018. "Public Investment and Growth Accelerations: The Case of Southern Italy, 1951-1995," EERI Research Paper Series EERI RP 2018/10, Economics and Econometrics Research Institute (EERI), Brussels.
    19. Rodrigo García Arancibia & Mariano Coronel & Jimena Vicentin Masaro, 2021. "Latin American Beer Production and Import Demand for Regional Malt and Malted Barley," Working Papers 85, Red Nacional de Investigadores en Economía (RedNIE).

    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. Hirukawa, Masayuki, 2023. "Robust Covariance Matrix Estimation in Time Series: A Review," Econometrics and Statistics, Elsevier, vol. 27(C), pages 36-61.
    2. Robert Amano & Tony S. Wirjanto, "undated". "The Dynamic Behaviour of Canadian Imports and the Linear-Quadratic Model: Evidence Based on the Euler Equation," Staff Working Papers 94-6, Bank of Canada.
    3. Matteo Mogliani, 2010. "Residual-based tests for cointegration and multiple deterministic structural breaks: A Monte Carlo study," Working Papers halshs-00564897, HAL.
    4. van Amano, Robert A & Norden, Simon, 1998. "Exchange Rates and Oil Prices," Review of International Economics, Wiley Blackwell, vol. 6(4), pages 683-694, November.
    5. Minxian, Yang, 1998. "System estimators of cointegrating matrix in absence of normalising information," Journal of Econometrics, Elsevier, vol. 85(2), pages 317-337, August.
    6. Robert Amano, "undated". "Empirical Evidence on the Cost of Adjustment and Dynamic Labour Demand," Staff Working Papers 95-3, Bank of Canada.
    7. Panopoulou, Ekaterini & Pantelidis, Theologos, 2016. "The Fisher effect in the presence of time-varying coefficients," Computational Statistics & Data Analysis, Elsevier, vol. 100(C), pages 495-511.
    8. Getu Hailu & Alex Maynard & Alfons Weersink, 2015. "Empirical analysis of corn and soybean basis in Canada," Applied Economics, Taylor & Francis Journals, vol. 47(51), pages 5491-5509, November.
    9. Haug, Alfred A., 1996. "Tests for cointegration a Monte Carlo comparison," Journal of Econometrics, Elsevier, vol. 71(1-2), pages 89-115.
    10. Freeman, Mark C. & Groom, Ben & Panopoulou, Ekaterini & Pantelidis, Theologos, 2015. "Declining discount rates and the Fisher Effect: Inflated past, discounted future?," Journal of Environmental Economics and Management, Elsevier, vol. 73(C), pages 32-49.
    11. Robert Amano & Tony S. Wirjanto, "undated". "An Empirical Investigation into Government Spending and Private Sector Behaviour," Staff Working Papers 94-8, Bank of Canada.
    12. Kurozumi, Eiji & Hayakawa, Kazuhiko, 2009. "Asymptotic properties of the efficient estimators for cointegrating regression models with serially dependent errors," Journal of Econometrics, Elsevier, vol. 149(2), pages 118-135, April.
    13. Amano, Robert A. & Wirjanto, Tony S., 1997. "Adjustment costs and import demand behavior: evidence from Canada and the United States," Journal of International Money and Finance, Elsevier, vol. 16(3), pages 461-476, June.
    14. Zuo, Haomiao & Park, Sung Y., 2011. "Money demand in China and time-varying cointegration," China Economic Review, Elsevier, vol. 22(3), pages 330-343, September.
    15. Kruse, Robinson & Leschinski, Christian & Will, Michael, 2016. "Comparing Predictive Accuracy under Long Memory - With an Application to Volatility Forecasting," Hannover Economic Papers (HEP) dp-571, Leibniz Universität Hannover, Wirtschaftswissenschaftliche Fakultät.
    16. Vicente Esteve, 2004. "Política fiscal y productividad del trabajo en la economía española: un análisis de series temporales," Revista de Analisis Economico – Economic Analysis Review, Universidad Alberto Hurtado/School of Economics and Business, vol. 19(1), pages 3-29, June.
    17. Jansson, Michael, 2004. "Stationarity Testing With Covariates," Econometric Theory, Cambridge University Press, vol. 20(1), pages 56-94, February.
    18. Tony Wirjanto, 2004. "Exploring consumption-based asset pricing model with stochastic-trend forcing processes," Applied Economics, Taylor & Francis Journals, vol. 36(14), pages 1591-1597.
    19. Gozgor, Giray, 2014. "Aggregated and disaggregated import demand in China: An empirical study," Economic Modelling, Elsevier, vol. 43(C), pages 1-8.
    20. Gregory, Allan W. & Nason, James M. & Watt, David G., 1996. "Testing for structural breaks in cointegrated relationships," Journal of Econometrics, Elsevier, vol. 71(1-2), pages 321-341.

    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:tsj:stataj:v:12:y:2012:i:3:p:515-542. 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 or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    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.