{
  "_id": "6adb6bb41f8fc22f6383d1ea",
  "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://gsk-biostatistics.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:47:33 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": "gsk-biostatistics",
  "_type": "src",
  "_file": "multigrain_1.0.0.9002.tar.gz",
  "_fileid": "https://r2.ropensci.org/1ed219d10e2e9fa82104e652a3b375a96cd4e29c35171d7eb10441425d3909ba",
  "_filesize": 550201,
  "_sha256": "1ed219d10e2e9fa82104e652a3b375a96cd4e29c35171d7eb10441425d3909ba",
  "_expires": "2027-01-31T14:14:03.000Z",
  "_created": "2026-10-23T13:47:33.000Z",
  "_published": "2026-10-23T14:14:12.106Z",
  "_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": 120449761568,
      "time": 197,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12506675980"
    },
    {
      "job": 120449761795,
      "time": 198,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12507070343"
    },
    {
      "job": 120449761750,
      "time": 198,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12505907328"
    },
    {
      "job": 120449761611,
      "time": 185,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12505689525"
    },
    {
      "job": 120449761907,
      "time": 201,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12506768373"
    },
    {
      "job": 120449761752,
      "time": 598,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12506933289"
    },
    {
      "job": 120449761747,
      "time": 209,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12507440566"
    },
    {
      "job": 120449761738,
      "time": 636,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12507476990"
    },
    {
      "job": 120446886896,
      "time": 360,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12504854487"
    },
    {
      "job": 120449761489,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12506705708"
    },
    {
      "job": 120449761730,
      "time": 390,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12506472150"
    },
    {
      "job": 120449761642,
      "time": 209,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12507105138"
    },
    {
      "job": 120449761800,
      "time": 237,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12506243036"
    },
    {
      "job": 120449761570,
      "time": 396,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12506606186"
    },
    {
      "job": 120449761622,
      "time": 256,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12505673432"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299",
  "_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": true,
  "_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": 87132606,
    "type": "organization",
    "name": "GSK Biostatistics",
    "followers": 91
  },
  "_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": true,
  "_nocasepkg": "multigrain",
  "_universes": [
    "gsk-biostatistics"
  ],
  "_previous": "1.0.0.9001",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:49:48.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/486205e746af58564f0a3e15919a06a3a270ad518b886940ce2ad701fda4022d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:52:52.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/aea8ea5974d78558a573a4d4452b55fef7e1829a2dd32583a2c16eb4be99c5d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:49:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/547d6cbd6ef34b00d44431ad7ac8d2eb0166130a580578da8213b5a6a2e7634f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:52:44.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/f82dae6b6a193e9ce0663558324b99cc12de5b8a27b4eb561470ece2904d14a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:05:52.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/c547ffa74dfdeea8cc8f8cf3b425b141719730fab3fb69b2581a4c3da429fbcc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:07:50.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/d3fd92f47d9568244403d9416e977258a6ff426273ba91e13d683850f75d70aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:02:42.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/3fb73ce48eb7e2815bc0a1ca6afdc748e87bc6e7ef42abd70d171318ade4820e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0.9002",
      "date": "2026-10-23T14:04:52.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/f2eadecbad8a4c24c79b04e8870374cf7218c2339e5a96121a92ca7979945d8c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:52:46.000Z",
      "arch": "emscripten",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/50032c4efd4f83d6b7cce6ef72476eecc6fae47ccb024036467751c77442ee6e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:21.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/1d319e9a04aefed29de8ec90fc9d65df064729b6f67a6463bc0fb982ebf41a9d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:11.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/a9f181ddecea06a710631ec0127bf30d24760cde32c20a61b944d16190c18c91",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:48.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/7b5ebbbccc86b603bc52a2b6eaf5bb9cbd5f511cde4ff6387077974aaf220cf4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:45.000Z",
      "arch": "aarch64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/c7170c81073ad29bb194547d96ec02a1df9fd8f202984fdc22bc8a23e37e010c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0.9002",
      "date": "2026-10-23T13:51:46.000Z",
      "arch": "x86_64",
      "commit": "508d0b7914f1545a55594670632f7f0371302b60",
      "fileid": "https://r2.ropensci.org/708b3d0ff949ec5e55afd37cc0b6024d116bd72232e87a2007b62613abbc2fe2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gsk-biostatistics/actions/runs/39963306299"
    }
  ]
}