criticalVector {pARI} | R Documentation |
Critical vector
Description
Compute critical vector curve.
Usage
criticalVector(pvalues, family, alpha = 0.05, lambda, delta = 0, m = NULL)
Arguments
pvalues |
matrix of pvalues with dimensions |
family |
string character. Choose a family of confidence envelopes to compute the critical vector.
from |
alpha |
numeric value in '[0,1]'. It expresses the alpha level to control the family-wise error rate. Default 0.05. |
lambda |
numeric value. |
delta |
numeric value. It expresses the delta value, please see the references. Default to 0. |
m |
numeric value. Number of hypothesis. Default @NULL. |
Value
numeric vector. Critical vector curve with length m
.
Author(s)
Angela Andreella
Examples
db <- simulateData(pi0 = 0.8, m = 100, n = 20, rho = 0)
out <- signTest(X = db)
pv <- cbind(out$pv, out$pv_H0)
cv <- criticalVector(pvalues = pv, family = "simes", lambda = 0.05)
plot(sort(pv[,1]), type = "l")
lines(cv)
[Package pARI version 1.1.1 Index]