Multinomial goodness-of-fit: Large-sample tests with survey design correction and exact tests for small samples
Ben Jann
Stata Journal, 2008, vol. 8, issue 2, 147-169
Abstract:
I introduce the new mgof command to compute distributional tests for discrete (categorical, multinomial) variables. The command supports large-sample tests for complex survey designs and exact tests for small samples as well as classic large-sample Chi^2-approximation tests based on Pearson’s Chi^2, the likelihood ratio, or any other statistic from the power-divergence family (Cressie and Read, 1984, Journal of the Royal Statistical Society, Series B (Methodological) 46: 440 – 464). The complex survey correction is based on the approach by Rao and Scott (1981, Journal of the American Statistical Association 76: 221 – 230) and par- allels the survey design correction used for independence tests in svy: tabulate. mgof computes the exact tests by using Monte Carlo methods or exhaustive enu- meration. mgof also provides an exact one-sample Kolmogorov-Smirnov test for discrete data. Copyright 2008 by StataCorp LP.
Keywords: mgof; mgofi; multinomial; goodness-of-fit; chi-squared; cat- egorical data; exact tests; Monte Carlo; exhaustive enumeration; combinatorial algorithms; complex survey correction; power-divergence statistic; Kolmogorov-Smirnov; Benford's law (search for similar items in EconPapers)
Date: 2008
References: View complete reference list from CitEc
Citations: View citations in EconPapers (6)
Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0142
http://www.stata-journal.com/software/sj8-2/st0142/ (text/html)
Related works:
Working Paper: Multinomial goodness-of-fit: large sample tests with survey design correction and exact tests for small samples (2008) 
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:tsj:stataj:v:8:y:2008:i:2:p:147-169
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().