EconPapers    
Economics at your fingertips  
 

Long-run covariance and its applications in cointegration regression

Qunyong Wang () and Na Wu
Additional contact information
Qunyong Wang: Nankai University, Tianjin, China
Na Wu: Tianjin University of Finance and Economics, China

Stata Journal, 2012, vol. 12, issue 3, 525-542

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.

Keywords: lrcov; hacreg; cointreg; long-run covariance; fully modified ordinary least squares; dynamic ordinary least squares; canonical cointegration regression (search for similar items in EconPapers)
Date: 2012
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj12-3/st0272/
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (28)

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0272 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:12:y:2012:i:3:p:515-542

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

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-20
Handle: RePEc:tsj:stataj:v:12:y:2012:i:3:p:515-542