View source: R/criticalVector.R
criticalVector | R Documentation |
Compute critical vector curve.
criticalVector(pvalues, family = "simes", alpha = 0.05, lambda, delta = 1, m = NULL)
pvalues |
Matrix of pvalues with dimensions |
family |
String character. Name of the family confidence envelope to compute the critical vector
from |
alpha |
Numeric value in '[0,1]'. |
lambda |
Numeric value. |
delta |
Numeric value. |
m |
Numeric value. Number of hypothesis. Default to |
Numeric vector. Critical vector curve with length m
.
Angela Andreella
Andreella, A., Hemerik, J., Finos, L., Weeda, W., & Goeman, J. (2023). Permutation-based true discovery proportions for functional magnetic resonance imaging cluster analysis. Statistics in Medicine, 42(14), 2311-2340.
lambdaOpt
db <- simulateData(pi0 = 0.8, m = 100, n = 20, rho = 0)
out <- pARI::signTest(X = db)
pv <- cbind(out$pv, out$pv_H0)
cv <- criticalVector(pvalues = pv, family = "simes", lambda = 1)
plot(sort(pv[,1]), type = "l")
lines(cv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.