Package: XOMultinom 0.9.0-2

Sergio Venturini

XOMultinom: Exact Distributions of Some Functions of the Ordered Multinomial Counts

Implements exact algorithms for computing the distributions of the maximum, the minimum, the range, and the sum of the J largest order statistics of a multinomial random vector. Two complementary algorithm families are provided: the recursive tree-traversal method of Bonetti, Cirillo, and Ogay (2019) <doi:10.1098/rsos.190198>, which covers all four statistics under the equiprobable hypothesis; and the stochastic matrix method of Corrado (2011) <doi:10.1007/s11222-010-9174-3>, which handles the maximum, minimum, and range for arbitrary probability vectors. Functions for power evaluation and sample size determination for goodness-of-fit tests based on these order statistics are also provided. Computationally intensive routines are implemented in 'C++' for efficiency.

Authors:Sergio Venturini [aut, cre], Marco Bonetti [ctb]

XOMultinom_0.9.0-2.tar.gz
XOMultinom_0.9.0-2.zip(r-4.7)XOMultinom_0.9.0-2.zip(r-4.6)XOMultinom_0.9.0-2.zip(r-4.5)
XOMultinom_0.9.0-2.tgz(r-4.6-x86_64)XOMultinom_0.9.0-2.tgz(r-4.6-arm64)XOMultinom_0.9.0-2.tgz(r-4.5-x86_64)XOMultinom_0.9.0-2.tgz(r-4.5-arm64)
XOMultinom_0.9.0-2.tar.gz(r-4.7-arm64)XOMultinom_0.9.0-2.tar.gz(r-4.7-x86_64)XOMultinom_0.9.0-2.tar.gz(r-4.6-arm64)XOMultinom_0.9.0-2.tar.gz(r-4.6-x86_64)
XOMultinom_0.9.0-2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
XOMultinom/json (API)

# Install 'XOMultinom' in R:
install.packages('XOMultinom', repos = c('https://sergioventurini.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sergioventurini/xomultinom/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • leukaemia - Data: Leukaemia cases
  • mainsail - MAINSAIL trial: comparator-arm data with Halabi 2014 risk scores

On CRAN:

Conda:

cppopenmp

3.78 score 1 stars 359 downloads 29 exports 19 dependencies

Last updated from:81b0744f88. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK189
linux-devel-x86_64OK225
source / vignettesOK220
linux-release-arm64OK216
linux-release-x86_64OK221
macos-release-arm64OK184
macos-release-x86_64OK343
macos-oldrel-arm64OK192
macos-oldrel-x86_64OK363
windows-develOK205
windows-releaseOK223
windows-oldrelOK136
wasm-releaseOK147

Exports:autoplotdJlargemultinomdmaxmultinomdminmultinomdrangemultinomfind_gamma_probfind_k_alphafind_k_gammaJlargemultinomcdfmake_breaksmax_countmaxmin_multinom_sizemaxmultinomcdfminmultinomcdfpJlargemultinompmaxmultinompminmultinomprangemultinomqJlargemultinomqmaxmultinomqminmultinomqrangemultinomrand_testrangemultinomcdfrdirichletrJlargemultinomrmaxmultinomrminmultinomrrangemultinom

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerRcppRcppProgressrlangS7scalesvctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
XOMultinom: Exact distributions of ordered multinomial countsXOMultinom-package XOMultinom XOMultinom-pkg
Coerce an 'xomultinom_dist' object to a data frameas.data.frame.xomultinom_dist
Coerce an 'xomultinom_size' object to a data frameas.data.frame.xomultinom_size
ggplot2-based plot for 'xomultinom_dist' objectsautoplot.xomultinom_dist
ggplot2-based plot for 'xomultinom_size' objectsautoplot.xomultinom_size
PMF of the sum of the J largest multinomial order statistics at specified pointsdJlargemultinom
PMF of the multinomial maximum at specified pointsdmaxmultinom
PMF of the multinomial minimum at specified pointsdminmultinom
PMF of the multinomial range at specified pointsdrangemultinom
Randomization probability for max/min multinomial testsfind_gamma_prob
Critical value for max/min multinomial testsfind_k_alpha
Critical value and randomization probability for max/min testsfind_k_gamma
Distribution object for the sum of the J largest multinomial order statisticsJlargemultinomcdf
Data: Leukaemia casesleukaemia
MAINSAIL trial: comparator-arm data with Halabi 2014 risk scoresmainsail
Create quantile-based break pointsmake_breaks
Compute the largest bin countmax_count
Sample size determination for multinomial max/min testsmaxmin_multinom_size
Distribution object for the multinomial maximum countmaxmultinomcdf
Distribution object for the multinomial minimum countminmultinomcdf
CDF of the sum of J largest order statistics for a multinomial distribution evaluated at specified pointspJlargemultinom
Plot method for 'xomultinom_dist' objectsplot.xomultinom_dist
Plot method for 'xomultinom_size' objectsplot.xomultinom_size
CDF of the multinomial maximum at specified pointspmaxmultinom
CDF of the multinomial minimum at specified pointspminmultinom
CDF of the multinomial range at specified pointsprangemultinom
Print method for 'xomultinom_dist' objectsprint.xomultinom_dist
Print method for 'xomultinom_size' objectsprint.xomultinom_size
Quantile function of the sum of J largest order statistics for a multinomial distributionqJlargemultinom
Quantile function of the maximum for a multinomial distributionqmaxmultinom
Quantile function of the minimum for a multinomial distributionqminmultinom
Quantile function of the range for a multinomial distributionqrangemultinom
Apply a randomized test decision rulerand_test
Distribution object for the multinomial rangerangemultinomcdf
Random generation from a Dirichlet distributionrdirichlet
Random generation from the distribution of the sum of J largest order statistics for a multinomial distributionrJlargemultinom
Random generation from the distribution of the multinomial maximumrmaxmultinom
Random generation from the distribution of the multinomial minimumrminmultinom
Random generation from the distribution of the multinomial rangerrangemultinom
Summary method for 'xomultinom_dist' objectssummary.xomultinom_dist
Summary method for 'xomultinom_size' objectssummary.xomultinom_size