The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
Computes p-values of multinomial goodness-of-fit tests based on an additive statistic: the log-likelihood ratio, Pearson's chi-squared, the Cressie-Read power divergence, and the exact multinomial test. The main function, pval_fourier(), writes the p-value as a Fourier series in the moment-generating function of the statistic and sums it until an adaptive stopping rule is met, which makes small p-values of large instances computationally feasible. The function pval_exact() computes the exact p-value by branch pruning with bounds from a dynamic program, and pval_flexible() chooses between the two according to the size of the instance.
| Version: | 1.0 |
| Imports: | parallel |
| Suggests: | knitr, rmarkdown, ggplot2 |
| Published: | 2026-10-29 |
| DOI: | 10.32614/CRAN.package.MultinomFourier (may not be active yet) |
| Author: | Charles Thraves [aut], Pablo Rivas [aut, cre], Felipe Subiabre [aut] |
| Maintainer: | Pablo Rivas <pablo.rivas.g at ug.uchile.cl> |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| NeedsCompilation: | yes |
| Materials: | README |
| CRAN checks: | MultinomFourier results |
| Reference manual: | MultinomFourier.html , MultinomFourier.pdf |
| Vignettes: |
Detecting Unusual Polling-Station Results with MultinomFourier (source, R code) |
| Package source: | MultinomFourier_1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: MultinomFourier_1.0.zip, r-oldrel: not available |
| macOS binaries: | r-release (arm64): MultinomFourier_1.0.tgz, r-oldrel (arm64): MultinomFourier_1.0.tgz, r-release (x86_64): MultinomFourier_1.0.tgz, r-oldrel (x86_64): MultinomFourier_1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=MultinomFourier to link to this page.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.