Package: multigrain Title: Optimise Graphical Approaches to Multiple Testing Procedures Version: 1.0.0 Authors@R: c( person("Alex", "Spiers", , "alex.d.spiers@gsk.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-8874-085X")), person("Dragoș", "Moldovan-Grünfeld", , "dragos.v.moldovan-grunfeld@gsk.com", role = "aut"), person("GlaxoSmithKline Research & Development Limited", role = c("cph", "fnd")) ) Description: Find the optimal graphical multiple testing procedure for confirmatory clinical trials that test several hypotheses across endpoints, doses, or subpopulations. Choose the graph maximising an explicit gain-function: a user-defined measure of trial success that scores each possible set of rejected hypotheses. Given simulated p-values, search over hypothesis weights and transition weights to maximise expected trial success. Conventional power criteria are recovered and the family-wise error rate is strongly controlled due to the search being confined to graphical procedures. Described in Spiers, Grayling, Wheeler, and Mander (2026) "Gain-function optimisation of graphical multiple testing procedures for confirmatory clinical trials" . License: LGPL (>= 3) URL: https://github.com/GSK-Biostatistics/multigrain, https://gsk-biostatistics.github.io/multigrain/ BugReports: https://github.com/GSK-Biostatistics/multigrain/issues Depends: R (>= 4.1.0) Imports: cli, dplyr, GA, ggplot2, ggraph, glue, igraph, mvtnorm, nloptr, purrr, Rcpp, RcppParallel (>= 5.1.10), rlang (>= 1.2.0), stats, tibble, tidyr, utils, vctrs, withr Suggests: gMCPLite, spelling, svglite, testthat (>= 3.0.0), vdiffr LinkingTo: Rcpp, RcppParallel 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 libglpk-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: 2026-10-08 16:47:30 UTC; root Author: Alex Spiers [aut, cre] (ORCID: ), Dragoș Moldovan-Grünfeld [aut], GlaxoSmithKline Research & Development Limited [cph, fnd] Maintainer: Alex Spiers