{
  "_id": "6adb6b60ad718eea59ecbe23",
  "Package": "multigrain",
  "Title": "Optimise Graphical Approaches to Multiple Testing Procedures",
  "Version": "1.0.0.9002",
  "Authors@R": "c(\nperson(\"Alex\", \"Spiers\", , \"alex.d.spiers@gsk.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-8874-085X\")),\nperson(\"Dragoș\", \"Moldovan-Grünfeld\", , \"dragos.v.moldovan-grunfeld@gsk.com\", role = \"aut\"),\nperson(\"GlaxoSmithKline Research & Development Limited\", role = c(\"cph\", \"fnd\"))\n)",
  "Description": "Find the optimal graphical multiple testing procedure for\nconfirmatory clinical trials that test several hypotheses\nacross endpoints, doses, or subpopulations. Choose the graph\nmaximising an explicit gain-function: a user-defined measure of\ntrial success that scores each possible set of rejected\nhypotheses. Given simulated p-values, search over hypothesis\nweights and transition weights to maximise expected trial\nsuccess. Conventional power criteria are recovered and the\nfamily-wise error rate is strongly controlled due to the search\nbeing confined to graphical procedures. Described in Spiers,\nGrayling, Wheeler, and Mander (2026) \"Gain-function\noptimisation of graphical multiple testing procedures for\nconfirmatory clinical trials\" <doi:10.48550/arXiv.2609.19994>.",
  "License": "LGPL (>= 3)",
  "URL": "https://github.com/GSK-Biostatistics/multigrain,\nhttps://gsk-biostatistics.github.io/multigrain/",
  "BugReports": "https://github.com/GSK-Biostatistics/multigrain/issues",
  "Config/Needs/website": "rmarkdown, gMCP, graphicalMCP, gridExtra",
  "Config/roxygen2/markdown": "TRUE",
  "Config/roxygen2/version": "8.1.1",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "true",
  "Config/testthat/start-first": "optimisation*",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "LazyData": "true",
  "SystemRequirements": "GNU make",
  "Config/pak/sysreqs": "cmake libfontconfig1-dev libfreetype6-dev\nlibglpk-dev make libicu-dev libxml2-dev",
  "Repository": "https://dragosmg.r-universe.dev",
  "Date/Publication": "2026-10-23 13:16:31 UTC",
  "RemoteUrl": "https://github.com/GSK-Biostatistics/multigrain",
  "RemoteRef": "HEAD",
  "RemoteSha": "508d0b7914f1545a55594670632f7f0371302b60",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-23 13:46:48 UTC",
    "User": "root"
  },
  "Author": "Alex Spiers [aut, cre] (ORCID: <https://orcid.org/0000-0002-8874-085X>),\nDragoș Moldovan-Grünfeld [aut],\nGlaxoSmithKline Research & Development Limited [cph, fnd]",
  "Maintainer": "Alex Spiers <alex.d.spiers@gsk.com>",
  "_user": "dragosmg",
  "_type": "src",
  "_file": "multigrain_1.0.0.9002.tar.gz",
  "_fileid": "https://r2.ropensci.org/8bfed4a8255d90ec4dfcade87cddec74c4753666a82ee8b56cd0add8451547c2",
  "_filesize": 550377,
  "_sha256": "8bfed4a8255d90ec4dfcade87cddec74c4753666a82ee8b56cd0add8451547c2",
  "_expires": "2027-01-31T14:12:46.000Z",
  "_created": "2026-10-23T13:46:48.000Z",
  "_published": "2026-10-23T14:12:48.288Z",
  "_upstream": "https://github.com/GSK-Biostatistics/multigrain",
  "_status": "success",
  "_maintainer": {
    "name": "Alex Spiers",
    "email": "alex.d.spiers@gsk.com",
    "orcid": "0000-0002-8874-085X"
  },
  "_jobs": [
    {
      "job": 120449398070,
      "time": 207,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12506526056"
    },
    {
      "job": 120449398105,
      "time": 188,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12506237712"
    },
    {
      "job": 120449398018,
      "time": 189,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12506271494"
    },
    {
      "job": 120449398194,
      "time": 203,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12506372408"
    },
    {
      "job": 120449398085,
      "time": 209,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12506987811"
    },
    {
      "job": 120449398298,
      "time": 578,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12507118038"
    },
    {
      "job": 120449398106,
      "time": 242,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12506747927"
    },
    {
      "job": 120449398205,
      "time": 620,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12507916315"
    },
    {
      "job": 120446672435,
      "time": 342,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12505088826"
    },
    {
      "job": 120449397894,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12505578347"
    },
    {
      "job": 120449398089,
      "time": 356,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12507005133"
    },
    {
      "job": 120449398159,
      "time": 237,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12505409169"
    },
    {
      "job": 120449398231,
      "time": 298,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12506198047"
    },
    {
      "job": 120449398328,
      "time": 365,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12505923293"
    },
    {
      "job": 120449398128,
      "time": 267,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12506686547"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316",
  "_commit": {
    "id": "508d0b7914f1545a55594670632f7f0371302b60",
    "author": "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "[skip version bump] dev version to 1.0.0.9002 (#55)",
    "time": 1792761391
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "role": "LinkingTo"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "GA",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggraph",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.1.10",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Imports"
    },
    {
      "package": "gMCPLite",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "svglite",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    }
  ],
  "_owner": "gsk-biostatistics",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-32",
      "n": 2
    },
    {
      "week": "2026-36",
      "n": 5
    },
    {
      "week": "2026-37",
      "n": 2
    },
    {
      "week": "2026-38",
      "n": 2
    },
    {
      "week": "2026-41",
      "n": 10
    },
    {
      "week": "2026-43",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.3.0",
      "date": "2026-08-03"
    },
    {
      "name": "v1.0.0",
      "date": "2026-10-07"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "statneutrino",
      "count": 57,
      "uuid": 6198468
    },
    {
      "user": "dragosmg",
      "count": 48,
      "uuid": 13176361
    }
  ],
  "_userbio": {
    "uuid": 13176361,
    "type": "user",
    "name": "Dragoș Moldovan-Grünfeld",
    "followers": 15,
    "description": "R developer"
  },
  "_downloads": {
    "count": 98,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/multigrain"
  },
  "_devurl": "https://github.com/gsk-biostatistics/multigrain",
  "_pkgdown": "https://gsk-biostatistics.github.io/multigrain/",
  "_searchresults": 9,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/multigrain.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/gsk-biostatistics/multigrain",
  "_realowner": "gsk-biostatistics",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-10-18"
    }
  ],
  "_exports": [
    "calc_ncp",
    "calc_power_pvals",
    "control_global",
    "control_local",
    "control_nsim_global",
    "control_nsim_local",
    "graph_constraint",
    "graph_constraint_free",
    "graph_optimal_get_control",
    "graph_optimise",
    "graph_optimize",
    "graph_random",
    "is_graph_valid",
    "multigrain_control",
    "multigrain_verbosity",
    "normalise_sum",
    "simulate_pvalues",
    "trial_success"
  ],
  "_datasets": [
    {
      "name": "graph_optimal_example",
      "title": "Optimised graph example",
      "object": "graph_optimal_example",
      "class": [
        "multigrain_graph_optimal"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "graph_constraint_plot",
      "title": "Autoplot method for 'multigrain_graph_constraint' objects",
      "topics": [
        "autoplot.multigrain_graph_constraint",
        "plot.multigrain_graph_constraint"
      ]
    },
    {
      "page": "graph_optimal_plot",
      "title": "Autoplot method for 'multigrain_graph_optimal' objects",
      "topics": [
        "autoplot.multigrain_graph_optimal",
        "plot.multigrain_graph_optimal"
      ]
    },
    {
      "page": "calc_ncp",
      "title": "Calculate non-centrality parameter",
      "topics": [
        "calc_ncp"
      ]
    },
    {
      "page": "calc_power_pvals",
      "title": "Calculate power for a graph-based multiple test procedure using p-values",
      "topics": [
        "calc_power_pvals"
      ]
    },
    {
      "page": "control_global",
      "title": "Modify global optimisation options",
      "topics": [
        "control_global"
      ]
    },
    {
      "page": "control_local",
      "title": "Modify local optimisation options",
      "topics": [
        "control_local"
      ]
    },
    {
      "page": "control_nsim",
      "title": "Modify the number of simulations",
      "topics": [
        "control_nsim_global",
        "control_nsim_local"
      ]
    },
    {
      "page": "graph_constraint",
      "title": "Create a _graph constraint_ for optimisation procedures",
      "topics": [
        "graph_constraint"
      ]
    },
    {
      "page": "graph_constraint_free",
      "title": "Create an unconstrained _graph constraint_",
      "topics": [
        "graph_constraint_free"
      ]
    },
    {
      "page": "graph_optimal_example",
      "title": "Optimised graph example",
      "topics": [
        "graph_optimal_example"
      ]
    },
    {
      "page": "graph_optimal_get_control",
      "title": "Get the optimisation control",
      "topics": [
        "graph_optimal_get_control"
      ]
    },
    {
      "page": "graph_optimisation",
      "title": "Optimise graph-based multiple testing procedures",
      "topics": [
        "graph_optimise",
        "graph_optimize"
      ]
    },
    {
      "page": "graph_random",
      "title": "Generate random graph",
      "topics": [
        "graph_random"
      ]
    },
    {
      "page": "is_graph_valid",
      "title": "Check the validity of a graph-based MTP",
      "topics": [
        "is_graph_valid"
      ]
    },
    {
      "page": "multigrain_control",
      "title": "Set parameters for graph optimisation",
      "topics": [
        "multigrain_control"
      ]
    },
    {
      "page": "multigrain_verbosity",
      "title": "Multigrain verbosity",
      "topics": [
        "multigrain_verbosity"
      ]
    },
    {
      "page": "normalise_sum",
      "title": "Normalise graph weights to sum to a target value",
      "topics": [
        "normalise_sum"
      ]
    },
    {
      "page": "simulate_pvalues",
      "title": "Simulate raw p-values",
      "topics": [
        "simulate_pvalues"
      ]
    },
    {
      "page": "trial_success",
      "title": "Create a _trial success_ function",
      "topics": [
        "trial_success"
      ]
    }
  ],
  "_readme": "https://github.com/GSK-Biostatistics/multigrain/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "cachem",
    "cli",
    "codetools",
    "cpp11",
    "crayon",
    "dplyr",
    "farver",
    "fastmap",
    "foreach",
    "GA",
    "generics",
    "ggforce",
    "ggplot2",
    "ggraph",
    "ggrepel",
    "glue",
    "graphlayouts",
    "gridExtra",
    "gtable",
    "igraph",
    "isoband",
    "iterators",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mvtnorm",
    "nloptr",
    "pillar",
    "pkgconfig",
    "polyclip",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppParallel",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "systemfonts",
    "tibble",
    "tidygraph",
    "tidyr",
    "tidyselect",
    "tweenr",
    "utf8",
    "vctrs",
    "viridis",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3.4771212547196626,
  "_indexed": false,
  "_nocasepkg": "multigrain",
  "_universes": [
    "dragosmg"
  ],
  "_indexurl": "https://gsk-biostatistics.r-universe.dev/multigrain",
  "_previous": "1.0.0.9001",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:49:19.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/97b0adb8cac663500d4a7eb54644e6a7507d4613f7f8513e839af9ab36ba4367",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:58.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/70aa92187fce9191a1a62c2c3faf46864ff62e27d789abc509091ac9541103ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:48:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/ea60ebbe0e2572fa687942cea61d4345dfcc8357ecbfe4398af0dce9a3d990b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:52:15.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/7579b7caa755bd47132730a08c1cfe3c5b68d8200688be5e814b37208b1ee694",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:04:58.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/faa9d19948470e33a7d04bbdc9d48a45245029967808b4b130b3dc7d28b31fb1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:05:37.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/4f9a9aef9ecb6be28f423501c28867eaf4d067bde20a200917ed754eb320ce6b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:00:47.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/0200543a4c9e92b71a3eab5134a303a51243f9ba9d80910cc8e48b81bb15ad9a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:06:03.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/3f5aa96b1a6794865387cc99726ebf47f58538a9715397ded24ba51c0760fa0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:45.000Z",
      "arch": "emscripten",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/6b6604b1c10a8f35004b0a6fd47a55ed0b4e0926efffe6b1ac529fbfce93853f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:49:54.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/9617292b471ee00a3363885112ef2f714631b75225ba13fd450c9a2b5e55569c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:50:53.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/53a0da69193553d793a683845b1e443e0a54973f778cdc5ae5f7f39fd011c810",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:01.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/af2f61e53b6abedb0508567d5eaa0b9753f84b9be99d70355479cb560c0c52eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:50:27.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/4d13b2e2f60182945ba778e98ee9663528af23bf4299d1426ea91ea71021ad9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:02.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/3117d708f310148c68572bb5b090b6cac49b6c1581704d937e5929f401d27223",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/39963289316"
    }
  ]
}