EconPapers    
Economics at your fingertips  
 

IVENDOG: Stata module to calculate Durbin-Wu-Hausman endogeneity test after ivreg

Christopher Baum, Mark Schaffer () and Steven Stillman

Statistical Software Components from Boston College Department of Economics

Abstract: ivendog computes a test for endogeneity in a regression estimated via instrumental variables (IV), the null hypothesis for which states that an ordinary least squares (OLS) estimator of the same equation would yield consistent estimates: that is, any endogeneity among the regressors would not have deleterious effects on OLS estimates. A rejection of the null indicates that endogenous regressors' effects on the estimates are meaningful, and instrumental variables techniques are required. The test was first proposed by Durbin (1954) and separately by Wu (1973) (his T4 statistic) and Hausman (1978). This "Durbin-Wu-Hausman" (DWH) test is numerically equivalent to the standard "Hausman test" obtained using {help hausman} with the sigmamore option, in which both forms of the model must be estimated. Under the null, it is distributed Chi-squared with m degrees of freedom, where m is the number of regressors specified as endogenous in the original instrumental variables regression. The ivendog output also contains another test statistic: the "Wu-Hausman" T2 statistic of Wu (1973). This routine is a replacement for "dmexog". W Its facilities are also available in our "ivreg2" routine via the "orthog" option. That routine can handle cases which "ivendog" cannot, such as ivreg or ivreg2's robust option or ivreg2's GMM option.

Language: Stata
Requires: Stata version 7.0
Keywords: instrumental variables; endogeneity; Durbin-Wu-Hausman test; Hausman test (search for similar items in EconPapers)
Date: 2002-11-01, Revised 2007-05-29
Note: This module may be installed from within Stata by typing "ssc install ivendog". 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: View citations in EconPapers (2)

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/i/ivendog.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/i/ivendog.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:s429401

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-04-14
Handle: RePEc:boc:bocode:s429401