Econometric Computing with HC and HAC Covariance Matrix Estimators
Data described by econometric models typically contains autocorrelation and/or heteroskedasticity of unknown form and for inference in such models it is essential to use covariance matrix estimators that can consistently estimate the covariance of the model parameters. Hence, suitable heteroskedasticity consistent (HC) and heteroskedasticity and autocorrelation consistent (HAC) estimators have been receiving attention in the econometric literature over the last 20 years. To apply these estimators in practice, an implementation is needed that preferably translates the conceptual properties of the underlying theoretical frameworks into computational tools. In this paper, such an implementation in the package sandwich in the R system for statistical computing is described and it is shown how the suggested functions provide reusable components that build on readily existing functionality and how they can be integrated easily into new inferential procedures or applications. The toolbox contained in sandwich is extremely flexible and comprehensive, including specific functions for the most important HC and HAC estimators from the econometric literature. Several real-world data sets are used to illustrate how the functionality can be integrated into applications.
References listed on IDEAS
Please report citation or reference errors to , or , if you are the registered author of the cited work, log in to your RePEc Author Service profile, click on "citations" and make appropriate adjustments.:
- Christian Kleiber & Achim Zeileis, 2005.
"Validating multiple structural change models-a case study,"
Journal of Applied Econometrics,
John Wiley & Sons, Ltd., vol. 20(5), pages 685-690.
- Kleiber, Christian & Zeileis, Achim, 2004. "Validating multiple structural change models : A case study," Technical Reports 2004,34, Technische Universität Dortmund, Sonderforschungsbereich 475: Komplexitätsreduktion in multivariaten Datenstrukturen.
- T. Lumley & P. Heagerty, 1999. "Weighted empirical adaptive variance estimators for correlated data regression," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 61(2), pages 459-477.
- Achim Zeileis & Friedrich Leisch & Kurt Hornik & Christian Kleiber, .
"strucchange: An R Package for Testing for Structural Change in Linear Regression Models,"
Journal of Statistical Software,
American Statistical Association, vol. 7(i02).
- Zeileis, Achim & Leisch, Friedrich & Hornik, Kurt & Kleiber, Christian, 2001. "Strucchange: An R package for testing for structural change in linear regression models," Technical Reports 2001,26, Technische Universität Dortmund, Sonderforschungsbereich 475: Komplexitätsreduktion in multivariaten Datenstrukturen.
- James G. MacKinnon & Halbert White, 1983.
"Some Heteroskedasticity Consistent Covariance Matrix Estimators with Improved Finite Sample Properties,"
537, Queen's University, Department of Economics.
- MacKinnon, James G. & White, Halbert, 1985. "Some heteroskedasticity-consistent covariance matrix estimators with improved finite sample properties," Journal of Econometrics, Elsevier, vol. 29(3), pages 305-325, September.
- Francisco Cribari-Neto & Spyros Zarkos, 2003. "Econometric and Statistical Computing Using Ox," Computational Economics, Society for Computational Economics, vol. 21(3), pages 277-295, June.
- Andrews, Donald W K & Monahan, J Christopher, 1992.
"An Improved Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimator,"
Econometric Society, vol. 60(4), pages 953-66, July.
- Donald W.K. Andrews & Christopher J. Monahan, 1990. "An Improved Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimator," Cowles Foundation Discussion Papers 942, Cowles Foundation for Research in Economics, Yale University.
- White, Halbert & Domowitz, Ian, 1984. "Nonlinear Regression with Dependent Observations," Econometrica, Econometric Society, vol. 52(1), pages 143-61, January.
- Andrews, Donald W K, 1991.
"Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation,"
Econometric Society, vol. 59(3), pages 817-58, May.
- Donald W.K. Andrews, 1988. "Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation," Cowles Foundation Discussion Papers 877R, Cowles Foundation for Research in Economics, Yale University, revised Jul 1989.
- Cribari-Neto, Francisco, 2004. "Asymptotic inference under heteroskedasticity of unknown form," Computational Statistics & Data Analysis, Elsevier, vol. 45(2), pages 215-233, March.
- Cribari-Neto, Francisco & Zarkos, Spyros G, 1999. "R: Yet Another Econometric Programming Environment," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 14(3), pages 319-29, May-June.
- BAI, Jushan & PERRON, Pierre, 1998.
"Computation and Analysis of Multiple Structural-Change Models,"
Cahiers de recherche
9807, Universite de Montreal, Departement de sciences economiques.
- Jushan Bai & Pierre Perron, 2003. "Computation and analysis of multiple structural change models," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 18(1), pages 1-22.
- Ploberger, Werner & Kramer, Walter, 1992. "The CUSUM Test with OLS Residuals," Econometrica, Econometric Society, vol. 60(2), pages 271-85, March.
- Donald W.K. Andrews, 1990.
"Tests for Parameter Instability and Structural Change with Unknown Change Point,"
Cowles Foundation Discussion Papers
943, Cowles Foundation for Research in Economics, Yale University.
- Andrews, Donald W K, 1993. "Tests for Parameter Instability and Structural Change with Unknown Change Point," Econometrica, Econometric Society, vol. 61(4), pages 821-56, July.
- Whitney K. Newey & Kenneth D. West, 1994. "Automatic Lag Selection in Covariance Matrix Estimation," Review of Economic Studies, Oxford University Press, vol. 61(4), pages 631-653.
When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:11:i10. 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: (Christopher F. Baum)
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 references are entirely missing, you can add them using this form.
If the full references list an item that is present in RePEc, but the system did not link 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 profile, as there may be some citations waiting for confirmation.
Please note that corrections may take a couple of weeks to filter through the various RePEc services.