Type: Package
Package: XOMultinom
Title: Exact Distributions of Some Functions of the Ordered Multinomial
        Counts
Version: 0.9.0
Date: 2026-06-22
Authors@R: c(
    person("Sergio", "Venturini", , "sergio.venturini@unicatt.it", role = c("aut", "cre")),
    person("Marco", "Bonetti", , "marco.bonetti@unibocconi.it", role = "ctb")
  )
Maintainer: Sergio Venturini <sergio.venturini@unicatt.it>
Description: 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.
License: GPL-3
URL: https://github.com/sergioventurini/XOMultinom
BugReports: https://github.com/sergioventurini/XOMultinom/issues
Depends: R (>= 3.6.0), utils
Imports: ggplot2 (>= 3.5.1), graphics, methods, Rcpp, rlang, stats,
        tools
LinkingTo: Rcpp, RcppProgress
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
RoxygenNote: 8.0.0
NeedsCompilation: yes
Packaged: 2026-06-21 10:07:10 UTC; Sergio
Author: Sergio Venturini [aut, cre],
  Marco Bonetti [ctb]
Repository: CRAN
Date/Publication: 2026-06-21 13:40:06 UTC
Built: R 4.6.0; x86_64-apple-darwin20; 2026-06-21 15:16:11 UTC; unix
Archs: XOMultinom.so.dSYM
