graph_test_shortcut {graphicalMCP} | R Documentation |
Perform shortcut (sequentially rejective) graphical multiple comparison procedures
Description
Shortcut graphical multiple comparison procedures are sequentially rejective
procedure based on Bretz et al. (2009). With $m$ hypotheses, there are at
most $m$ steps to obtain all rejection decisions. These procedure are
equivalent to closed graphical multiple comparison procedures using
Bonferroni tests for intersection hypotheses, but shortcut procedures are
faster to perform. See vignette("shortcut-testing")
for more illustration
of shortcut procedures and interpretation of their outputs.
Usage
graph_test_shortcut(
graph,
p,
alpha = 0.025,
verbose = FALSE,
test_values = FALSE
)
Arguments
graph |
An initial graph as returned by |
p |
A numeric vector of p-values (unadjusted, raw), whose values should
be between 0 & 1. The length should match the number of hypotheses in
|
alpha |
A numeric scalar of the overall significance level, which should be between 0 & 1. The default is 0.025 for one-sided hypothesis testing problems; another common choice is 0.05 for two-sided hypothesis testing problems. |
verbose |
A logical scalar specifying whether the details of
intermediate update graphs should be included in results. When
|
test_values |
A logical scalar specifying whether adjusted significance
levels should be provided for each hypothesis. When |
Value
An S3 object of class graph_report
with a list of 4 elements:
-
inputs
- Input parameters, which is a list of:-
graph
- Initial graph, *p
- (Unadjusted or raw) p-values, -
alpha
- Overall significance level, -
test_groups
- Groups of hypotheses for different types of tests, which are the list of all hypotheses forgraph_test_shortcut()
, -
test_types
- Different types of tests, which are "bonferroni" forgraph_test_shortcut()
.
-
Output parameters
outputs
, which is a list of:-
adjusted_p
- Adjusted p-values, -
rejected
- Rejected hypotheses, -
graph
- Updated graph after deleting all rejected hypotheses.
-
-
details
- Verbose outputs with intermediate updated graphs, ifverbose = TRUE
. -
test_values
- Adjusted significance levels, iftest_values = TRUE
.
References
Bretz, F., Maurer, W., Brannath, W., and Posch, M. (2009). A graphical approach to sequentially rejective multiple test procedures. Statistics in Medicine, 28(4), 586-604.
Bretz, F., Posch, M., Glimm, E., Klinglmueller, F., Maurer, W., and Rohmeyer, K. (2011). Graphical approaches for multiple comparison procedures using weighted Bonferroni, Simes, or parametric tests. Biometrical Journal, 53(6), 894-913.
See Also
-
graph_test_closure()
for graphical multiple comparison procedures using the closed test, -
graph_rejection_orderings()
for all possible rejection orderings.
Examples
# A graphical multiple comparison procedure with two primary hypotheses (H1
# and H2) and two secondary hypotheses (H3 and H4)
# See Figure 1 in Bretz et al. (2011).
hypotheses <- c(0.5, 0.5, 0, 0)
transitions <- rbind(
c(0, 0, 1, 0),
c(0, 0, 0, 1),
c(0, 1, 0, 0),
c(1, 0, 0, 0)
)
g <- graph_create(hypotheses, transitions)
p <- c(0.018, 0.01, 0.105, 0.006)
alpha <- 0.025
graph_test_shortcut(g, p, alpha)