EconPapers    
Economics at your fingertips  
 

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, pages 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

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0142 link to article purchase
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) Downloads
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: http://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 edited by H. Joseph Newton and Nicholas J. Cox

More articles in Stata Journal from StataCorp LP
Series data maintained by Christopher F. Baum ().

 
Page updated 2009-11-25
Handle: RePEc:tsj:stataj:v:8:y:2008:i:2:p:147-169