{
  "_id": "6ad535f143d630dc48a3fc5c",
  "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",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-18 21:03:49 UTC",
    "User": "root"
  },
  "Author": "Alex Spiers [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-8874-085X>), Dragoș\nMoldovan-Grünfeld [aut], GlaxoSmithKline Research & Development\nLimited [cph, fnd]",
  "Maintainer": "Alex Spiers <alex.d.spiers@gsk.com>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-18 16:20:14 UTC",
  "RemoteUrl": "https://github.com/cran/multigrain",
  "RemoteRef": "HEAD",
  "RemoteSha": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
  "_user": "cran",
  "_type": "src",
  "_file": "multigrain_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/4c7535d4e1363612e70b289117e6fa1d2f106c4ad8911b9d5732399899441193",
  "_filesize": 539718,
  "_sha256": "4c7535d4e1363612e70b289117e6fa1d2f106c4ad8911b9d5732399899441193",
  "_expires": "2027-01-26T21:11:11.000Z",
  "_created": "2026-10-18T21:03:49.000Z",
  "_published": "2026-10-18T21:11:13.759Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117789487528,
      "time": 189,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12151430118"
    },
    {
      "job": 117789487393,
      "time": 245,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12150877089"
    },
    {
      "job": 117789487565,
      "time": 204,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12151116135"
    },
    {
      "job": 117789487398,
      "time": 189,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12150752500"
    },
    {
      "job": 117788648761,
      "time": 215,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12150244652"
    },
    {
      "job": 117789487425,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12150556902"
    },
    {
      "job": 117789487373,
      "time": 376,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12151100772"
    },
    {
      "job": 117789487452,
      "time": 312,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12151200458"
    },
    {
      "job": 117789487372,
      "time": 391,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12150981117"
    },
    {
      "job": 117789487443,
      "time": 258,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12150553301"
    }
  ],
  "_upstream": "https://github.com/cran/multigrain",
  "_commit": {
    "id": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
    "author": "Alex Spiers <alex.d.spiers@gsk.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1792340414
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-10-18"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_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,
  "_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/cran/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": 1.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "multigrain",
  "_universes": [
    "cran",
    "gsk-biostatistics"
  ],
  "_indexurl": "https://gsk-biostatistics.r-universe.dev/multigrain",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-18T21:05:48.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/d25e27bd8f331b8a3c1a6d2293d497a6537c589f18c381ec045856f047ac2901",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-18T21:06:13.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/b1343cce1f0a48038965a4613bce3b4129d2c982056a580df5957f784bd6116b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-18T21:05:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/34f6aea92f0fa1a3a13f174aa3d567b2fa7f4d76c62b6f3e5f03382d7891fabd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-18T21:06:10.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/68fe50f01d09b2a7e0c80ab61fe4621eaa1d7234ea1740987e6c76993e8c9a1f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-18T21:06:05.000Z",
      "arch": "emscripten",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/4bd204d8d989389f1d70d85945733c2f92a6687592d888a0045db40bcac41c0c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-18T21:07:25.000Z",
      "arch": "aarch64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/d6afc9a974ae7bb7a00ab046741b83e3a24af861b0f66cb3d34758f8dbe7bf59",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-18T21:05:26.000Z",
      "arch": "x86_64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/ab6e7cfb3734d7ae2767321090e8521e18b4614deae138369ece32c251aab52d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-18T21:07:32.000Z",
      "arch": "aarch64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/833fa009a54f9053de3cd8804f825c55896551a07b2e45661870a34db2755187",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-18T21:05:16.000Z",
      "arch": "x86_64",
      "commit": "2e7c6f94f917893fc32513823c86a79a09f97cd1",
      "fileid": "https://r2.ropensci.org/1630ae6ed84852473c156369e8186250abdadf71d7ffd15b477064f6d0193a73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39165866211"
    }
  ]
}