{
  "_id": "6ac7ce14de46216d5edd3111",
  "Package": "multigrain",
  "Title": "Optimise Graphical Approaches to Multiple Testing Procedures",
  "Version": "1.0.0",
  "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.0",
  "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-08 09:40:46 UTC",
  "RemoteUrl": "https://github.com/GSK-Biostatistics/multigrain",
  "RemoteRef": "HEAD",
  "RemoteSha": "7884824865c9324b29883320d360d71d14a8781a",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-08 16:47:30 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.tar.gz",
  "_fileid": "https://r2.ropensci.org/b3c7a469339811027e00c01b28a87cad3588893560ec83de104b866996f5ae11",
  "_filesize": 538338,
  "_sha256": "b3c7a469339811027e00c01b28a87cad3588893560ec83de104b866996f5ae11",
  "_expires": "2027-01-16T17:08:33.000Z",
  "_created": "2026-10-08T16:47:30.000Z",
  "_published": "2026-10-08T17:08:36.335Z",
  "_buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113429777562,
      "time": 209,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11564863905"
    },
    {
      "job": 113429777250,
      "time": 224,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11566015327"
    },
    {
      "job": 113429777263,
      "time": 201,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11564444880"
    },
    {
      "job": 113429777395,
      "time": 231,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11565078776"
    },
    {
      "job": 113429777232,
      "time": 227,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11565653078"
    },
    {
      "job": 113429777538,
      "time": 363,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11565643894"
    },
    {
      "job": 113429777135,
      "time": 196,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11565636475"
    },
    {
      "job": 113429777280,
      "time": 519,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11567050085"
    },
    {
      "job": 113428078104,
      "time": 228,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11565615872"
    },
    {
      "job": 113429776917,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11564474770"
    },
    {
      "job": 113429777136,
      "time": 369,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11565198902"
    },
    {
      "job": 113429777210,
      "time": 321,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11565681540"
    },
    {
      "job": 113429777128,
      "time": 172,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11565755882"
    },
    {
      "job": 113429777855,
      "time": 348,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11566115494"
    },
    {
      "job": 113429777317,
      "time": 256,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11564539649"
    }
  ],
  "_upstream": "https://github.com/GSK-Biostatistics/multigrain",
  "_commit": {
    "id": "7884824865c9324b29883320d360d71d14a8781a",
    "author": "Dragoș Moldovan-Grünfeld <dragos.mold@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "first CRAN submission (#34)",
    "time": 1791452446
  },
  "_maintainer": {
    "name": "Alex Spiers",
    "email": "alex.d.spiers@gsk.com",
    "orcid": "0000-0002-8874-085X"
  },
  "_distro": "resolute",
  "_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
    }
  ],
  "_tags": [
    {
      "name": "v0.3.0",
      "date": "2026-08-03"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "dragosmg",
      "count": 46,
      "uuid": 13176361
    },
    {
      "user": "statneutrino",
      "count": 29,
      "uuid": 6198468
    }
  ],
  "_userbio": {
    "uuid": 13176361,
    "type": "user",
    "name": "Dragoș Moldovan-Grünfeld",
    "followers": 16,
    "description": "R developer"
  },
  "_downloads": {
    "count": 0,
    "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"
  ],
  "_cranurl": false,
  "_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": 2.3979400086720375,
  "_indexed": false,
  "_nocasepkg": "multigrain",
  "_universes": [
    "dragosmg"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-08T16:50:12.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/ca3326495882a3ddf51217ef123d34075c9249b7bc15a1d9fe4d5bde9d2eb9da",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-08T16:50:10.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/bbc4ccb6455ffd0e9dad88bece4b4355f4c757946bf517265364abb175a677d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-08T16:50:07.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/221eb0d90647d486583f391ab120b847c589fc673fbe42393509f479972671fd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-08T16:50:32.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/038f962510c8b3fd1d8a6f3a98590959b7591cee38b0438a2eeb0900b4509d7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T17:00:18.000Z",
      "arch": "aarch64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/d3f9194bd5075fb7af2d2bfb75a23f9d462cf7c09b4cb4784f2bb255cff8e416",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T17:04:07.000Z",
      "arch": "x86_64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/7de29aa8cf83a2302f366a86ff2093213e9a2a2eb1290c7faf03035796a627a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T16:50:14.000Z",
      "arch": "aarch64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/a08ce4396b6f8f71f66c0071b2eda51539f83bfc864b003580cc1585cec2d3ac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-08T17:02:47.000Z",
      "arch": "x86_64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/128aca250d575af7287e1ca4699815efbcf75be201842f7a542298ffad39ebb6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-08T16:50:23.000Z",
      "arch": "emscripten",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/b523266f981e6322ad09bdf7781df484a4e7e90a9421124bcc2a27d35d80a744",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T16:51:20.000Z",
      "arch": "aarch64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/ecf060a686604bcbb85b9d80a1b6b60f779de253e9198bc23a2147a11a71e41a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T16:49:16.000Z",
      "arch": "x86_64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/3f4288e5f4737cb9b3f2ad6d383d0c609bfc12c67423596e7a21b6814d574730",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T16:49:10.000Z",
      "arch": "x86_64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/95718605b5233af8c834a3624ed0c7679e2aab08f7d6ac5e68237d58761a3307",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T16:51:04.000Z",
      "arch": "aarch64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/337a55397e940390269923abd4b241086f17efc166dac4ac84a952f2db6d04f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-08T16:49:13.000Z",
      "arch": "x86_64",
      "commit": "7884824865c9324b29883320d360d71d14a8781a",
      "fileid": "https://r2.ropensci.org/61ac3149f563c33367c69ce0a0a6583e19a774bce5d7ab9a1d4da4a38141cece",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/37811058689"
    }
  ]
}