rga2pwr: Power Analysis for Graphical Approaches and Reverse Graphical...

Description Usage Arguments Value Author(s) References Examples

Description

Power Analysis for Graphical Approaches and Reverse Graphical Approaches with Two Hypotheses

Usage

1
rga2pwr(w, G, alpha, delta, corr, method = "rga")

Arguments

w

a vector of initial weights

G

a matrix of initial transaction weights

alpha

a number of significance level

delta

a vector of effect sizes

corr

a correlation matrix

method

a string specified the method: "rga" for Reverse Graphical Approaches and "ga" for Graphical Approaches

Value

a numerical matrix including the probabilities of four combinations of being rejected and being accepted for two hypotheses. Row indices stand for the first hypothesis, and column indices stand for the second hypothesis. The first index stands for the probability of acceptance, and the second index stands for the probability of rejection.

Author(s)

Jiangtao Gou

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>

Gou, J. (2020). Reverse graphical approaches for multiple test procedures. Technical Report.

Examples

1
2
3
4
5
6
7
8
w <- c(0.3,0.7)
G <- matrix(c(0,1,1,0),nrow=2,byrow=TRUE)
alpha <- 0.05
delta <- c(0,2)
rho <- 0.0
corr <- matrix(c(1,rho,rho,1), nrow=2)
method="rga"
rga2pwr(w=w, G=G, alpha=alpha, delta=delta, corr=corr, method=method)

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

Related to rga2pwr in regrap...