EconPapers    
Economics at your fingertips  
 

IVACTEST: Stata module to perform Cumby-Huizinga test for autocorrelation after IV/OLS estimation

Christopher Baum and Mark Schaffer ()

Statistical Software Components from Boston College Department of Economics

Abstract: ivactest performs the general specification test of serial correlation proposed by Cumby and Huizinga (1992) after OLS or instrumental variables (IV) estimation. In their words, the null hypothesis of the test is that the regression error is a moving average of known order q>=0 against the general alternative that autocorrelations of the regression error are nonzero at lags greater than q. The test is general enough to test the hypothesis that the regression error has no serial correlation (q=0) or the null hypothesis that serial correlation in the regression error exists, but dies out at a known finite lag (q>0). The test is especially attractive because it can be used in frequently encountered cases where alternative such as the Box-Pierce test (wntestq), Durbin's h test (estat durbinalt) and the Breusch-Godfrey test (estat bgodfrey) are not applicable. NB: This routine has been superseded by the authors' actest, which offers a wider range of capabilities.

Language: Stata
Requires: Stata version 9.2
Keywords: instrumental variables; autocorrelation; serial correlation; moving average errors (search for similar items in EconPapers)
Date: 2007-04-29, Revised 2013-07-23
Note: This module should be installed from within Stata by typing "ssc install ivactest". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/i/ivactest.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/i/ivactest.hlp help file (text/plain)

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:boc:bocode:s456841

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s456841