{
  "_id": "6a1ed85bb401979e7340f08e",
  "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",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "8.0.0",
  "Repository": "https://sergioventurini.r-universe.dev",
  "Date/Publication": "2026-06-01 11:24:15 UTC",
  "RemoteUrl": "https://github.com/sergioventurini/xomultinom",
  "RemoteRef": "HEAD",
  "RemoteSha": "103defa766be9c9c519605d2a2585e84da1738cf",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-02 13:11:39 UTC",
    "User": "root"
  },
  "Author": "Sergio Venturini [aut, cre],\nMarco Bonetti [ctb]",
  "MD5sum": "e49cb46e01450520c95e51c888fe1ebe",
  "_user": "sergioventurini",
  "_type": "src",
  "_file": "XOMultinom_0.8.7.tar.gz",
  "_fileid": "a8ea7a2f231cc7e50641d9b8dc5d1eedd21e88ec63d9d65da0a8ea3881f00486",
  "_filesize": 380420,
  "_sha256": "a8ea7a2f231cc7e50641d9b8dc5d1eedd21e88ec63d9d65da0a8ea3881f00486",
  "_created": "2026-06-02T13:11:39.000Z",
  "_published": "2026-06-02T13:19:23.830Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79079027449,
      "time": 185,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7358724847"
    },
    {
      "job": 79079027288,
      "time": 172,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7358718480"
    },
    {
      "job": 79079027364,
      "time": 183,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358724313"
    },
    {
      "job": 79079027409,
      "time": 174,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358718640"
    },
    {
      "job": 79079027419,
      "time": 148,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7358708563"
    },
    {
      "job": 79079027405,
      "time": 359,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7358794979"
    },
    {
      "job": 79079027317,
      "time": 128,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358700083"
    },
    {
      "job": 79079027497,
      "time": 335,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358785032"
    },
    {
      "job": 79078269874,
      "time": 227,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358647132"
    },
    {
      "job": 79079027297,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358707474"
    },
    {
      "job": 79079027400,
      "time": 194,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7358726973"
    },
    {
      "job": 79079027446,
      "time": 183,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7358722801"
    },
    {
      "job": 79079027314,
      "time": 185,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358723802"
    }
  ],
  "_buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/sergioventurini/xomultinom",
  "_commit": {
    "id": "103defa766be9c9c519605d2a2585e84da1738cf",
    "author": "sergioventurini <sergio.venturini@gmail.com>",
    "committer": "sergioventurini <sergio.venturini@gmail.com>",
    "message": "add paper scripts\n\npaper scripts added in the test folder\n",
    "time": 1780313055
  },
  "_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": "sergioventurini",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-35",
      "n": 1
    },
    {
      "week": "2025-36",
      "n": 2
    },
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2025-45",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 2
    },
    {
      "week": "2026-19",
      "n": 10
    },
    {
      "week": "2026-21",
      "n": 7
    },
    {
      "week": "2026-22",
      "n": 2
    },
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "sergioventurini",
      "count": 67,
      "uuid": 2522817
    }
  ],
  "_userbio": {
    "uuid": 2522817,
    "type": "user",
    "name": "Sergio Venturini"
  },
  "_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/readme.html",
    "extra/readme.md",
    "extra/XOMultinom.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/sergioventurini/xomultinom",
  "_realowner": "sergioventurini",
  "_cranurl": true,
  "_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"
      ]
    }
  ],
  "_readme": "https://github.com/sergioventurini/xomultinom/raw/HEAD/README.md",
  "_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": 3.6532125137753435,
  "_indexed": true,
  "_nocasepkg": "xomultinom",
  "_universes": [
    "sergioventurini"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "b388891261e82d49527d8b71ed34143ded71553bf1c8934c2735e3eb37fd3779",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:35.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "9c06c2666cdaccfa40d07c8291af1a447cdd8d08ad3c07aef3d077208a78494c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:47.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "4ee0c7c7df643e37066a1fc0ea25433a83d8e1e1842114cf6879fc172fca6d34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:37.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "3b78c957e6b5f2601ab0d65d6bb45e98e558d2753ef4f3713b7fb87e02a54b1a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:34.000Z",
      "arch": "aarch64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "2ec7e9ce6f8e655c3a5909f1161e74cb032cf022859f7c5d4645b0f06beb13df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.7",
      "date": "2026-06-02T13:16:24.000Z",
      "arch": "x86_64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "7badc308a71f3c51452d44e718a98cc27fbfc6a7fb1d74f007a018700e838c9a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:12.000Z",
      "arch": "aarch64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "4ade4bc2021b4e21765d5e75668c2963b94a1504d531499607bbd8455385b406",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.8.7",
      "date": "2026-06-02T13:16:02.000Z",
      "arch": "x86_64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "1aea37339d8ffa9aeceb890b22510f5d4dfbaf721161aab89fb610fd6eca1cee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:32.000Z",
      "arch": "emscripten",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "66335629b06d8d3288620a8e96f5d3aa439b8189d804b4c6e4782d0f6907548b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:01.000Z",
      "arch": "x86_64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "72e63c3d111605d2883685f42f8d7221edf4cb82089210f21a72f35e3bc52b34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.8.7",
      "date": "2026-06-02T13:14:08.000Z",
      "arch": "x86_64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "1c4f3001e8d9c5ec2ae04c78304655f11439ef0b856e53bf42059169805433ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.8.7",
      "date": "2026-06-02T13:13:50.000Z",
      "arch": "x86_64",
      "commit": "103defa766be9c9c519605d2a2585e84da1738cf",
      "fileid": "a35920a87d40b44a3438c138c0652e97ba6872d9848b46fcd780422f44077bf5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/sergioventurini/actions/runs/26821817521"
    }
  ]
}