DK-HAC

A set of functions implementing the DK-HAC covariance matrix estimators and robust standard errors from Casini (2021) and Casini and Perron (2021b).

View the Project on GitHub alessandro-casini/DK-HAC

DK-HAC: Double Kernel Heteroskedasticity and Autocorrelation Consistent Estimator and Robust Standard Errors

Keywords: HAC, DK-HAC, Robust Standard Errors, HAR, Long-run variance, Prewhitening, Covariance Matrix.

This software implements the DK-HAC covariance matrix estimators and robust standard errors from Casini (2021) and Casini and Perron (2021b).

The DK-HAC estimator extends the Newey-West’s (1987, 1994) and Andrews’ (1991) HAC estimators to flexibly account for nonstationarity (e.g., breaks, time-varying parameters/volatility, regime swicthing, misspecification, outliers, etc.). See Casini et al. (2021) for a technical comparison.

The software includes ordinary functions for regression analysis with robust (DK-HAC) standard errors including t-test, F-test, standard errors, R-squared and other popular regression outputs.

The software also includes the following tools:

Non-Technical Summary for Empirical Research

In preparation.

Software available in Matlab, R and Stata

Contributors

Background Papers

Maintainer and Correspondence