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" <doi:10.48550/arXiv.2609.19994>.
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
NeedsCompilation: yes
Packaged: 2026-10-08 08:26:04 UTC; dvm44402
Author: Alex Spiers [aut, cre] (ORCID: <https://orcid.org/0000-0002-8874-085X>),
  Dragoș Moldovan-Grünfeld [aut],
  GlaxoSmithKline Research & Development Limited [cph, fnd]
Maintainer: Alex Spiers <alex.d.spiers@gsk.com>
Repository: CRAN
Date/Publication: 2026-10-18 16:20:14 UTC
