EconPapers    
Economics at your fingertips  
 

Heteroskedasticity- and autocorrelation-robust F and t tests in Stata

Xiaoqing Ye () and Yixiao Sun
Additional contact information
Xiaoqing Ye: South-Central University for Nationalities

Stata Journal, 2018, vol. 18, issue 4, 951-980

Abstract: In this article, we consider time-series, ordinary least-squares, and instrumental-variable regressions and introduce a new pair of commands, har and hart, that implement more accurate heteroskedasticity- and autocorrelation- robust (HAR) F and t tests. These tests represent part of the recent progress on HAR inference. The F and t tests are based on the convenient F and t ap- proximations and are more accurate than the conventional chi-squared and normal approximations. The underlying smoothing parameters are selected to target the type I and type II errors, which are the two fundamental objects in every hypoth- esis testing problem. The estimation command har and the postestimation test command hart allow for both kernel HAR variance estimators and orthonormal- series HAR variance estimators. In addition, we introduce another pair of new commands, gmmhar and gmmhart, that implement the recently developed F and t tests in a two-step generalized method of moments framework. For these com- mands, we opt for the orthonormal-series HAR variance estimator based on the Fourier bases because it allows us to develop convenient F and t approximations as in the first-step generalized method of moments framework. Finally, we present several examples to demonstrate these commands.

Keywords: har; hart; gmmhar; gmmhart; heteroskedasticity- and auto- correlation-robust inference; fixed-smoothing; kernel function; orthonormal series; testing-optimal; AMSE; OLS/IV; two-step GMM; J statistic (search for similar items in EconPapers)
Date: 2018
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj18-4/st0548/
References: Add references at CitEc
Citations: View citations in EconPapers (2)

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

Related works:
Working Paper: Heteroscedasticity and Autocorrelation Robust F and t Tests in Stata (2018) Downloads
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:18:y:2018:i:4:p:951-980

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-31
Handle: RePEc:tsj:stataj:v:18:y:2018:i:4:p:951-980