XNomial: Exact Goodness-of-Fit Test for Multinomial Data with Fixed Probabilities

Tests whether a set of counts fit a given expected ratio. For example, a genetic cross might be expected to produce four types in the relative frequencies of 9:3:3:1. To see whether a set of observed counts fits this expectation, one can examine all possible outcomes with xmulti() or a random sample of them with xmonte() and find the probability of an observation deviating from the expectation by at least as much as the observed. As a measure of deviation from the expected, one can use the log-likelihood ratio, the multinomial probability, or the classic chi-square statistic. A histogram of the test statistic can also be plotted and compared with the asymptotic curve.

Author
Bill Engels <wrengels@wisc.edu>
Date of publication
2015-12-24 08:19:02
Maintainer
Bill Engels <wrengels@wisc.edu>
License
GPL
Version
1.0.4

View on CRAN

Man pages

xmonte
Perform Multinomial Goodness-Of-Fit Test By Monte-Carlo...
xmulti
Perform Multinomial Goodness-Of-Fit Test By Full Enumeration

Files in this package

XNomial
XNomial/inst
XNomial/inst/doc
XNomial/inst/doc/XNomial.Rmd
XNomial/inst/doc/XNomial.R
XNomial/inst/doc/XNomial.html
XNomial/src
XNomial/src/XNenumerated.c
XNomial/src/XNmonte.c
XNomial/NAMESPACE
XNomial/R
XNomial/R/xmonte.R
XNomial/R/xmulti.R
XNomial/R/xtras.R
XNomial/vignettes
XNomial/vignettes/XNomial.Rmd
XNomial/vignettes/XNomial.md
XNomial/MD5
XNomial/build
XNomial/build/vignette.rds
XNomial/DESCRIPTION
XNomial/man
XNomial/man/xmulti.Rd
XNomial/man/xmonte.Rd