Learn R Programming

MultiGroupSequential (version 1.1.0)

graphical: Graphical procedure

Description

graphical() performs graphical procedure to test multiple hypotheses

Usage

graphical(
  p = c(0.01, 0.04, 0.03),
  W = c(0.5, 0.25, 0.25),
  G = rbind(c(0, 1, 0), c(0, 0, 1), c(1, 0, 0)),
  alpha = 0.05
)

Value

A list with a single element containing a vector indicating whether hypotheses are rejected (1) or not (0).

Arguments

p

Numeric vector of p-values for the hypotheses.

W

Numeric vector of weigths of the graph. Must have the same length as p.

G

Matrix of the transition matrix of the graph.

alpha

Numeric scalar with the overall type-1 error rate.

Author

Kaiyuan Hua, Xiaodong Luo

Examples

Run this code
graphical(p = c(0.02, 0.03, 0.01))

Run the code above in your browser using DataLab