Exact Goodness-of-Fit Test for Multinomial Data with Fixed Probabilities
Overview
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.
Install
Health
NOTEcompiled coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
File ‘XNomial/libs/XNomial.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines and to disable symbol search. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
- NOTE11 OK, 2 NOTE2026-09-08
- ERROR11 OK, 1 NOTE, 1 ERROR2026-09-07
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 2
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing XNomial adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
- 1.0.4.12024-11-05 · diff ↗
- 1.0.42015-12-24 · diff ↗
Show 2 earlier eventsHide 2 earlier events
- 1.0.12014-02-09
- RR 3.0.0 released · 2013-04-03
Package metadata
- First published
- 2014-02-02
- Total releases
- 4 / 12 yrs
- License
- GPL
- Minimum R
- ≥ 2.14
- Download size
- 353 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("XNomial")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.