Learn R Programming

graphicalMCP

Introduction

Graphical approaches for multiple comparison procedures (MCPs) are a general framework to control the family-wise error rate strongly at a pre-specified significance level $0<\alpha<1$. This approach includes many commonly used MCPs as special cases and is transparent in visualizing MCPs for better communications. graphicalMCP is designed to design and analyze graphical MCPs in a flexible, informative and efficient way.

Installation

graphicalMCP is currently not on CRAN but can be installed from GitHub using the following code:

# install.packages("pak")
pak::pak("Gilead-BioStats/graphicalMCP")

Documentation

  • For basic usage instructions, see vignette("graphicalMCP")
  • To become familiar with graphical MCP terminologies, see vignette("glossary")
  • To learn examples of how to use graphicalMCP,
    • see vignette("shortcut-testing") for sequentially rejective graphical multiple comparison procedures based on Bonferroni tests
    • see vignette("closed-testing") for graphical multiple comparison procedures based on the closure principle
    • see vignette("graph-examples") for common multiple comparison procedures illustrated using graphicalMCP
    • see vignette("generate-closure") for rationales to generate the closure and the weighting strategy of a graph
    • see vignette("comparisons") for comparisons to other R packages
  • To view vignettes in R after properly installing graphicalMCP from GitHub, we can build vignettes by devtools::install(build_vignettes = TRUE), and then use browseVignettes("graphicalMCP") to view the full list of vignettes

Related work

  • Graphical MCPs - gMCP
  • Lighter version of gMCP which removes the rJava dependency - gMCPLite
  • Graphical MCPs with Simes tests - lrstat

Built upon these packages, we hope to implement graphical MCPs in a more general framework, with fewer dependencies and simpler S3 classes, and without losing computational efficiency.

Acknowledgments

Along with the authors and contributors, thanks to the following people for their suggestions and inspirations on the package:

Frank Bretz, Willi Maurer, Ekkehard Glimm, Nan Chen, Jeremy Wildfire, Spencer Childress, Colleen McLaughlin, Matt Roumaya, Chelsea Dickens, and Ron Yu

We owe a debt of gratitude to the authors of gMCP for their pioneering work, without which this package would not be nearly as extensive as it is.

Copy Link

Version

Install

install.packages('graphicalMCP')

Monthly Downloads

457

Version

0.2.5

License

Apache License (>= 2)

Maintainer

Dong Xi

Last Published

July 13th, 2024

Functions in graphicalMCP (0.2.5)

print.graph_report

S3 print method for the class graph_report
graphicalMCP-package

graphicalMCP: Graphical Multiple Comparison Procedures
graph_test_closure

Perform closed graphical multiple comparison procedures
graph_update

Obtain an updated graph by updating an initial graphical after deleting hypotheses
print.initial_graph

S3 print method for the class initial_graph
graph_test_shortcut

Perform shortcut (sequentially rejective) graphical multiple comparison procedures
plot.initial_graph

S3 plot method for class initial_graph
plot.updated_graph

S3 plot method for the class updated_graph
graph_test_closure_fast

Perform graphical multiple comparison procedures efficiently for power calculation
print.power_report

S3 print method for the class power_report
test_values_bonferroni

Organize outputs for testing an intersection hypothesis
print.updated_graph

S3 print method for the class updated_graph
test_input_val

Validate inputs for testing and power simulations
adjust_p_bonferroni

Calculate adjusted p-values
adjust_weights_parametric

Calculate adjusted hypothesis weights
as_initial_graph

Convert between graphicalMCP, gMCP, and igraph graph classes
c_value_function

Calculate adjusted hypothesis weights for parametric tests
graph_rejection_orderings

Find alternate rejection orderings (sequences) for shortcut tests
graph_generate_weights

Generate the weighting strategy based on a graphical multiple comparison procedure
bonferroni

Example graphs of commonly used multiple comparison procedures
graph_calculate_power

Calculate power values for a graphical multiple comparison procedure
graph_create

Create the initial graph for a multiple comparison procedure
edge_pairs

Find pairs of vertices that are connected in both directions