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.
Download Info
To download:
If you experience problems downloading a file, check if you have the
proper application to
view it first. Information about this may be contained
in the File-Format links below. In case of further problems read
the IDEAS help
page. Note that these files are not on the IDEAS
site. Please be patient as the files may be large.
Publisher Info
Article provided by StataCorp LP in its journal Stata Journal.