corr.WHC {corrMCT} | R Documentation |
Correlation adjusted weighted Hochberg method
Description
A new method implement correlation correction based on weighted Hochberg. An ACF is applied for weight reduction to conserve alpha. Details see Huang et al. (2024+). A correlation structure with too many zero leads the method reduce to weighted Hochberg.
Usage
corr.WHC(p, w, corr.mat, theta = 0.2, gamma = 0.3, ACF = NULL, alpha = 0.05)
Arguments
p |
A numeric vector. A length |
w |
A numeric vector. Any non-negative real numbers to denote the
importance of the endpoints. Length must be equal to |
corr.mat |
A matrix. The dimension must be |
theta |
A numeric number. |
gamma |
A numeric number. |
ACF |
A function. User can define their own alpha conserving function.
The basic rule is the function must be monotone decreasing from 0 to 1,
and range from 1 to |
alpha |
A real number. |
Value
A table contains p-values, weights, adjusted critical values, significance
References
Huang, X. -W., Hua, J., Banerjee, B., Wang, X., Li, Q. (2024+). Correlated weighted Hochberg procedure. In-preparation.
Examples
m <- 5
corr.WHC(
p = runif(m),
w = runif(m),
corr.mat = cor(matrix(runif(10*m), ncol = m))
)