Title: | Correlated Weighted Hochberg |
---|---|
Description: | Perform additional multiple testing procedure methods to p.adjust(), such as weighted Hochberg (Tamhane, A. C., & Liu, L., 2008) <doi:10.1093/biomet/asn018>, ICC adjusted Bonferroni method (Shi, Q., Pavey, E. S., & Carter, R. E., 2012) <doi:10.1002/pst.1514> and a new correlation corrected weighted Hochberg for correlated endpoints. |
Authors: | Xin-Wei Huang [aut, cre]
|
Maintainer: | Xin-Wei Huang <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.2.0 |
Built: | 2025-03-01 02:49:04 UTC |
Source: | https://github.com/cran/corrMCT |
corr.Bonferroni
performs the ICC adjusted Bonferroni method proposed by
Shi, Pavey, and Carter(2012). Power law approximation by r
is tricky, suggested
options was listed in the paper.
corr.Bonferroni(p, ICC, r = 0, alpha = 0.05)
corr.Bonferroni(p, ICC, r = 0, alpha = 0.05)
p |
A numeric vector. A length |
ICC |
A number. Intraclass correlation correction factor, a real number between (0, 1). |
r |
A number. Tuning parameter for g** between (0, 1). Default |
alpha |
A real number. |
A numeric vector of adjusted p-values.
Shi, Q., Pavey, E. S., & Carter, R. E. (2012). Bonferroni‐based correction factor for multiple, correlated endpoints. Pharmaceutical statistics, 11(4), 300-309.
m <- 10 corr.Bonferroni( p = runif(m), ICC = 0.3 )
m <- 10 corr.Bonferroni( p = runif(m), ICC = 0.3 )
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.
corr.WHC(p, w, corr.mat, a = 0.5, b = 0.6, penalty = NULL, alpha = 0.05)
corr.WHC(p, w, corr.mat, a = 0.5, b = 0.6, penalty = NULL, alpha = 0.05)
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 |
a |
A numeric number. |
b |
A numeric number. |
penalty |
A function. User can define their own penalty function.
The basic rule is the function must be monotone decreasing from 0 to 1,
and range from 1 to |
alpha |
A real number. |
A table contains p-values, weights, adjusted critical values, significance
Huang, X. -W., Hua, J., Banerjee, B., Wang, X., Li, Q. (2024+). Correlated weighted Hochberg procedure. In-preparation.
m <- 5 corr.WHC( p = runif(m), w = runif(m), corr.mat = cor(matrix(runif(10*m), ncol = m)) )
m <- 5 corr.WHC( p = runif(m), w = runif(m), corr.mat = cor(matrix(runif(10*m), ncol = m)) )
An easy function to generate a AR(1) correlation matrix.
corrmat_AR1(m, rho)
corrmat_AR1(m, rho)
m |
An integer. Dimension of the correlation matrix. |
rho |
A number. Correlation coefficient between |
A correlation matrix
corrmat_AR1( m = 3, rho = 0.2 )
corrmat_AR1( m = 3, rho = 0.2 )
An easy function to generate a block design correlation matrix. Each diagonal
element is a compound symmetric matrix with dimension
. Correlation coefficient in each block is
.
All the off-diagonal elements are
.
corrmat_block(d, rho)
corrmat_block(d, rho)
d |
An integer vector. Length |
rho |
A numeric vector. A length |
A correlation matrix
corrmat_block( d = c(2,3,4), rho = c(0.1, 0.3, 0.5) )
corrmat_block( d = c(2,3,4), rho = c(0.1, 0.3, 0.5) )
An easy function to generate a block AR(1) design correlation matrix. Each diagonal
element is an AR(1) correlation matrix with dimension
. Correlation coefficient in each block is
.
All the off-diagonal elements are
.
corrmat_blockAR1(d, rho)
corrmat_blockAR1(d, rho)
d |
An integer vector. Length |
rho |
A numeric vector. A length |
A correlation matrix
corrmat_blockAR1( d = c(2,3,4), rho = c(0.1, 0.3, 0.5) )
corrmat_blockAR1( d = c(2,3,4), rho = c(0.1, 0.3, 0.5) )
An easy function to generate a compound symmetric correlation matrix
corrmat_CS(m, rho)
corrmat_CS(m, rho)
m |
An integer. Dimension of the correlation matrix. |
rho |
A number. Correlation coefficient between |
A correlation matrix
corrmat_CS( m = 3, rho = 0.2 )
corrmat_CS( m = 3, rho = 0.2 )
WHC
performs the weighted Hochberg method proposed by Tamhane and Liu (2008).
WHC(p, w, alpha = 0.05)
WHC(p, w, alpha = 0.05)
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 |
alpha |
A real number. |
A table contains p-values, weights, adjusted critical values, significance
Tamhane, A. C., & Liu, L. (2008). On weighted Hochberg procedures. Biometrika, 95(2), 279-294.
m <- 5 WHC( p = runif(m), w = runif(m) )
m <- 5 WHC( p = runif(m), w = runif(m) )