{
  "_id": "6a1db8921d7bb097a0a52e57",
  "Type": "Package",
  "Package": "XOMultinom",
  "Title": "Exact Distributions of Some Functions of the Ordered Multinomial\nCounts",
  "Version": "0.8.7",
  "Date": "2026-05-28",
  "Authors@R": "c(\nperson(\"Sergio\", \"Venturini\", , \"sergio.venturini@unicatt.it\", role = c(\"aut\", \"cre\")),\nperson(\"Marco\", \"Bonetti\", , \"marco.bonetti@unibocconi.it\", role = \"ctb\")\n)",
  "Maintainer": "Sergio Venturini <sergio.venturini@unicatt.it>",
  "Description": "Implements exact algorithms for computing the\ndistributions of the maximum, the minimum, the range, and the\nsum of the J largest order statistics of a multinomial random\nvector. Two complementary algorithm families are provided: the\nrecursive tree-traversal method of Bonetti, Cirillo, and Ogay\n(2019) <doi:10.1098/rsos.190198>, which covers all four\nstatistics under the equiprobable hypothesis; and the\nstochastic matrix method of Corrado (2011)\n<doi:10.1007/s11222-010-9174-3>, which handles the maximum,\nminimum, and range for arbitrary probability vectors. Functions\nfor power evaluation and sample size determination for\ngoodness-of-fit tests based on these order statistics are also\nprovided.  Computationally intensive routines are implemented\nin 'C++' for efficiency.",
  "License": "GPL-3",
  "URL": "https://github.com/sergioventurini/XOMultinom",
  "BugReports": "https://github.com/sergioventurini/XOMultinom/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "8.0.0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-01 16:46:49 UTC",
    "User": "root"
  },
  "Author": "Sergio Venturini [aut, cre], Marco Bonetti [ctb]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-01 08:40:12 UTC",
  "RemoteUrl": "https://github.com/cran/XOMultinom",
  "RemoteRef": "HEAD",
  "RemoteSha": "8234e559efb9978950b0860a153b62fdb4696455",
  "MD5sum": "d49c701aad06d9ce1ce989793d54ee19",
  "_user": "cran",
  "_type": "src",
  "_file": "XOMultinom_0.8.7.tar.gz",
  "_fileid": "cd67b9964966bf9d1ce28c90c5d3c200dadcd3d63d779b5a18a2b3e7362474ee",
  "_filesize": 374761,
  "_sha256": "cd67b9964966bf9d1ce28c90c5d3c200dadcd3d63d779b5a18a2b3e7362474ee",
  "_created": "2026-06-01T16:46:49.000Z",
  "_published": "2026-06-01T16:51:30.110Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78902458664,
      "time": 184,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7337559978"
    },
    {
      "job": 78902458705,
      "time": 181,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7337556673"
    },
    {
      "job": 78902458679,
      "time": 179,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7337557568"
    },
    {
      "job": 78902458711,
      "time": 174,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7337554120"
    },
    {
      "job": 78901633450,
      "time": 267,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7337490060"
    },
    {
      "job": 78902458603,
      "time": 153,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7337545832"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26768560105",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/XOMultinom",
  "_commit": {
    "id": "8234e559efb9978950b0860a153b62fdb4696455",
    "author": "Sergio Venturini <sergio.venturini@unicatt.it>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.8.7\n",
    "time": 1780303212
  },
  "_maintainer": {
    "name": "Sergio Venturini",
    "email": "sergio.venturini@unicatt.it"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppProgress",
      "role": "LinkingTo"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.1",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.8.7",
      "date": "2026-06-01"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/XOMultinom"
  },
  "_devurl": "https://github.com/sergioventurini/xomultinom",
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/XOMultinom.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.8.7",
      "date": "2026-06-01"
    }
  ],
  "_exports": [
    "autoplot",
    "decr_2_pmin",
    "dJlargemultinom",
    "dmaxmultinom",
    "dminmultinom",
    "drangemultinom",
    "find_gamma_prob",
    "find_k_alpha",
    "find_k_gamma",
    "incr_2_pmax",
    "maxmin_multinom_size",
    "pJlargemultinom",
    "pmax_2_incr",
    "pmaxmultinom",
    "pmin_2_decr",
    "pminmultinom",
    "prangemultinom",
    "qJlargemultinom",
    "qmaxmultinom",
    "qminmultinom",
    "qrangemultinom",
    "rdirichlet",
    "rJlargemultinom",
    "rmaxmultinom",
    "rminmultinom",
    "round_exact",
    "rrangemultinom"
  ],
  "_datasets": [
    {
      "name": "leukaemia",
      "title": "Data: Leukaemia cases",
      "object": "leukaemia",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "x",
        "y",
        "pop",
        "cases"
      ],
      "rows": 790,
      "table": true,
      "tojson": true
    },
    {
      "name": "mainsail",
      "title": "MAINSAIL trial: comparator-arm data with Halabi 2014 risk scores",
      "object": "mainsail",
      "class": [
        "data.frame"
      ],
      "fields": [
        "RPT",
        "ENROLLDAY",
        "entry_order",
        "ecog",
        "disease_site",
        "has_ln",
        "has_bone",
        "has_visceral",
        "opioid",
        "ldh",
        "ldh_uln",
        "ldh_gt_uln",
        "albumin",
        "hgb",
        "psa",
        "alp",
        "ln_psa",
        "ln_alp",
        "halabi2014_lp",
        "halabi2014_lp_raw",
        "halabi2014_lp_imputed"
      ],
      "rows": 520,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "XOMultinom-package",
      "title": "XOMultinom: Exact distributions of ordered multinomial counts",
      "topics": [
        "XOMultinom-package",
        "XOMultinom",
        "XOMultinom-pkg"
      ]
    },
    {
      "page": "as.data.frame.xomultinom_dist",
      "title": "Coerce an 'xomultinom_dist' object to a data frame",
      "topics": [
        "as.data.frame.xomultinom_dist"
      ]
    },
    {
      "page": "as.data.frame.xomultinom_size",
      "title": "Coerce an 'xomultinom_size' object to a data frame",
      "topics": [
        "as.data.frame.xomultinom_size"
      ]
    },
    {
      "page": "autoplot.xomultinom_dist",
      "title": "ggplot2-based plot for 'xomultinom_dist' objects",
      "topics": [
        "autoplot.xomultinom_dist"
      ]
    },
    {
      "page": "autoplot.xomultinom_size",
      "title": "ggplot2-based plot for 'xomultinom_size' objects",
      "topics": [
        "autoplot.xomultinom_size"
      ]
    },
    {
      "page": "decr_2_pmin",
      "title": "Utility function.",
      "topics": [
        "decr_2_pmin"
      ]
    },
    {
      "page": "dJlargemultinom",
      "title": "PMF of the sum of J largest order statistics for a multinomial distribution",
      "topics": [
        "dJlargemultinom"
      ]
    },
    {
      "page": "dmaxmultinom",
      "title": "PMF of the maximum for a multinomial distribution",
      "topics": [
        "dmaxmultinom"
      ]
    },
    {
      "page": "dminmultinom",
      "title": "PMF of the minimum for a multinomial distribution",
      "topics": [
        "dminmultinom"
      ]
    },
    {
      "page": "drangemultinom",
      "title": "PMF of the range for a multinomial distribution",
      "topics": [
        "drangemultinom"
      ]
    },
    {
      "page": "find_gamma_prob",
      "title": "Randomization probability for max/min multinomial tests",
      "topics": [
        "find_gamma_prob"
      ]
    },
    {
      "page": "find_k_alpha",
      "title": "Critical value for max/min multinomial tests",
      "topics": [
        "find_k_alpha"
      ]
    },
    {
      "page": "find_k_gamma",
      "title": "Critical value and randomization probability for max/min tests",
      "topics": [
        "find_k_gamma"
      ]
    },
    {
      "page": "incr_2_pmax",
      "title": "Utility function.",
      "topics": [
        "incr_2_pmax"
      ]
    },
    {
      "page": "leukaemia",
      "title": "Data: Leukaemia cases",
      "topics": [
        "leukaemia"
      ]
    },
    {
      "page": "mainsail",
      "title": "MAINSAIL trial: comparator-arm data with Halabi 2014 risk scores",
      "topics": [
        "mainsail"
      ]
    },
    {
      "page": "maxmin_multinom_size",
      "title": "Sample size determination for multinomial max/min tests",
      "topics": [
        "maxmin_multinom_size"
      ]
    },
    {
      "page": "pJlargemultinom",
      "title": "CDF of the sum of J largest order statistics for a multinomial distribution",
      "topics": [
        "pJlargemultinom"
      ]
    },
    {
      "page": "plot.xomultinom_dist",
      "title": "Plot method for 'xomultinom_dist' objects",
      "topics": [
        "plot.xomultinom_dist"
      ]
    },
    {
      "page": "plot.xomultinom_size",
      "title": "Plot method for 'xomultinom_size' objects",
      "topics": [
        "plot.xomultinom_size"
      ]
    },
    {
      "page": "pmax_2_incr",
      "title": "Utility function.",
      "topics": [
        "pmax_2_incr"
      ]
    },
    {
      "page": "pmaxmultinom",
      "title": "CDF of the maximum for a multinomial distribution",
      "topics": [
        "pmaxmultinom"
      ]
    },
    {
      "page": "pmin_2_decr",
      "title": "Utility function.",
      "topics": [
        "pmin_2_decr"
      ]
    },
    {
      "page": "pminmultinom",
      "title": "CDF of the minimum for a multinomial distribution",
      "topics": [
        "pminmultinom"
      ]
    },
    {
      "page": "prangemultinom",
      "title": "CDF of the range for a multinomial distribution",
      "topics": [
        "prangemultinom"
      ]
    },
    {
      "page": "print.xomultinom_dist",
      "title": "Print method for 'xomultinom_dist' objects",
      "topics": [
        "print.xomultinom_dist"
      ]
    },
    {
      "page": "print.xomultinom_size",
      "title": "Print method for 'xomultinom_size' objects",
      "topics": [
        "print.xomultinom_size"
      ]
    },
    {
      "page": "qJlargemultinom",
      "title": "Quantile function of the sum of J largest order statistics for a multinomial distribution",
      "topics": [
        "qJlargemultinom"
      ]
    },
    {
      "page": "qmaxmultinom",
      "title": "Quantile function of the maximum for a multinomial distribution",
      "topics": [
        "qmaxmultinom"
      ]
    },
    {
      "page": "qminmultinom",
      "title": "Quantile function of the minimum for a multinomial distribution",
      "topics": [
        "qminmultinom"
      ]
    },
    {
      "page": "qrangemultinom",
      "title": "Quantile function of the range for a multinomial distribution",
      "topics": [
        "qrangemultinom"
      ]
    },
    {
      "page": "rdirichlet",
      "title": "Random generation from a Dirichlet distribution",
      "topics": [
        "rdirichlet"
      ]
    },
    {
      "page": "rJlargemultinom",
      "title": "Random generation from the distribution of the sum of J largest order statistics for a multinomial distribution",
      "topics": [
        "rJlargemultinom"
      ]
    },
    {
      "page": "rmaxmultinom",
      "title": "Random generation from the distribution of the multinomial maximum",
      "topics": [
        "rmaxmultinom"
      ]
    },
    {
      "page": "rminmultinom",
      "title": "Random generation from the distribution of the multinomial minimum",
      "topics": [
        "rminmultinom"
      ]
    },
    {
      "page": "round_exact",
      "title": "Stable rounding function",
      "topics": [
        "round_exact"
      ]
    },
    {
      "page": "rrangemultinom",
      "title": "Random generation from the distribution of the multinomial range",
      "topics": [
        "rrangemultinom"
      ]
    },
    {
      "page": "summary.xomultinom_dist",
      "title": "Summary method for 'xomultinom_dist' objects",
      "topics": [
        "summary.xomultinom_dist"
      ]
    },
    {
      "page": "summary.xomultinom_size",
      "title": "Summary method for 'xomultinom_size' objects",
      "topics": [
        "summary.xomultinom_size"
      ]
    }
  ],
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppProgress",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 1,
  "_indexed": false,
  "_nocasepkg": "xomultinom",
  "_universes": [
    "cran",
    "sergioventurini"
  ],
  "_indexurl": "https://sergioventurini.r-universe.dev/XOMultinom",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-01T16:50:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "8234e559efb9978950b0860a153b62fdb4696455",
      "fileid": "2ea25e64323205535a349d9186d8667a17f77bab7e5514206f59f9551962ed99",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26768560105"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-01T16:49:48.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "8234e559efb9978950b0860a153b62fdb4696455",
      "fileid": "4a45129e17ef12a3d6f926559ccae3363e81872883daa495f5a4787017d3a123",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26768560105"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-01T16:49:55.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "8234e559efb9978950b0860a153b62fdb4696455",
      "fileid": "af3941acc848766c5397cf716e282bbcebd616cb0468f3295f8fa4a59f030e84",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26768560105"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-01T16:49:45.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "8234e559efb9978950b0860a153b62fdb4696455",
      "fileid": "fe7a905e96e75d6ee9ebd19a5ab85a9165ce5b99c208d9b4d806ff32fd98ce6a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26768560105"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.7",
      "date": "2026-06-01T16:49:53.000Z",
      "arch": "emscripten",
      "commit": "8234e559efb9978950b0860a153b62fdb4696455",
      "fileid": "969d8ca592bf7d6ef687ce89a0140d24d014b158a97debf06a653843e1084ac3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26768560105"
    }
  ]
}