In this article, we discuss the implementation of Andrews's (1988a, Journal of Econometrics 37: 135–156; 1988b, Econometrica 56: 1419–1453) chi-squared goodness-of-fit test as a postestimation command. The new command chi2gof reports the test statistic, its degrees of freedom, and its p-value. chi2gof can be used after the poisson, nbreg, zip, and zinb commands.
AndrewsD. W. K.1988a. Chi-square diagnostic tests for econometric models: Introduction and applications. Journal of Econometrics37: 135–156.
2.
AndrewsD. W. K.1988b. Chi-square diagnostic tests for econometric models: Theory. Econometrica56: 1419–1453.
3.
CameronA. C., and TrivediP. K.2005. Microeconometrics: Methods and Applications.New York: Cambridge University Press.
4.
CameronA. C., and TrivediP. K.2010. Microeconometrics Using Stata.Rev. ed. College Station, TX: Stata Press.
5.
CameronA. C., and TrivediP. K.2013. Regression Analysis of Count Data. 2nd ed. Cambridge: Cambridge University Press.
6.
GreeneW. H.1994. Accounting for excess zeros and sample selection in Poisson and negative binomial regression models. Working Paper 94-10, Stern School of Business, Department of Economics.
7.
HosmerD. W.Jr., and LemeshowS.1980. Goodness of fit tests for the multiple logistic regression model. Communications in Statistics—Theory and Methods9: 1043–1069.