ga2h: Graphical approach for two hypotheses

Description Usage Arguments Value References Examples

View source: R/Rfun_rga2h.R

Description

Graphical approach for two hypotheses

Usage

1
ga2h(w, G, p, alpha)

Arguments

w

a vector of initial weights

G

a matrix of initial transaction weights

p

a vector of p-values

alpha

a number of significance level

Value

a logical vector indicating whether the hypothesis is rejected: TRUE = rejected, FALSE = accepted

References

Bretz, F., Maurer, W., Brannath, W., and Posch, M. (2009). A graphical approach to sequentially rejective multiple test procedures. Statistics in Medicine 28, 586–-604. <doi:10.1002/sim.3495>

Examples

1
2
3
4
5
w <- c(0.3,0.7)
G <- matrix(c(0,1,1,0),nrow=2,byrow=TRUE)
p <- c(0.032, 0.038)
alpha <- 0.05
ga2h(w=w,G=G,p=p, alpha=alpha)

regrap documentation built on July 8, 2020, 6:24 p.m.

Related to ga2h in regrap...