rejectNode {gMCPLite} | R Documentation |
Rejects a node/hypothesis and updates the graph accordingly.
Description
Rejects a node/hypothesis and updates the graph accordingly.
Usage
rejectNode(graph, node, upscale = FALSE, verbose = FALSE, keepWeights = FALSE)
Arguments
graph |
A graph of class |
node |
A character string specifying the node to reject. |
upscale |
Logical. If |
verbose |
Logical scalar. If |
keepWeights |
Logical scalar. If |
Details
For details see the given references.
Value
An updated graph of class graphMCP
or entangledMCP
.
Author(s)
Kornelius Rohmeyer rohmeyer@small-projects.de
References
Frank Bretz, Willi Maurer, Werner Brannath, Martin Posch: A graphical approach to sequentially rejective multiple test procedures. Statistics in Medicine 2009 vol. 28 issue 4 page 586-604. https://www.meduniwien.ac.at/fwf_adaptive/papers/bretz_2009_22.pdf
See Also
graphMCP
Examples
m <- matrix(0, nrow = 4, ncol = 4)
m[1,3] <- m[2,4] <- m[3,2] <- m[4,1] <- 1
p1 <- c(0.01, 0.005, 0.01, 0.5)
a <- 0.05
w <- c(1/2, 1/2, 0, 0)
g <- matrix2graph(m, w)
gMCP(g, pvalues=p1, alpha=a)
rejectNode(graph = g, node = 4)