Stata Command: testout.ado
Diagnostic testing of outliers by statistical tests of the bound first- and second-moment conditions for consistency and root-n asymptotic normality, respectively. A rejection of the test of the bound first-moment condition for consistency implies that the point estimates reported by regress or ivregress are incredible. A rejection of the test of the bounded second-moment condition for the root-n asymptotic normality implies that the standard errors reported by regress or ivregress are incredible. To justify the standard empirical procedures based on point estimates, standard errors, t ratios, confidence intervals, and p-values, it is imperative that researchers fail to reject both of the two tests.
When geographical units (e.g., states) are used as clusters, it is likely that the cluster sum of the score fails to have finite moments. Hence, it is strongly recommended to use this testout command with the cluster() option when a researcher considers using geographical units as cluster units. See my slides presented at the 2023 Stata Symposium. See these slides for solutions you can make in case the testout command rejects the null-hypotheses.
The Stata output below indicates that, for the main regression of an empirical paper published in Quarterly Journal of Economics in 2008, the point estimates are credible but the standard errors may not be.
Installation:
. ssc install testout
Usage:
. testout y x
. testout y x, iv(z)
. testout y x, cluster(state)
. testout y x, iv(z) cluster(state)
Help:
. help testout
Reference: Sasaki, Y & Y. Wang (2021) Diagnostic Testing of Finite Moment Conditions for the Consistency and Root-N Asymptotic Normality of the GMM and M Estimators. Journal of Business & Economic Statistics (forthcoming). Paper.
Download the manuscript and package in preparation for The Stata Journal (not submitted yet)