Description Usage Arguments Value Author(s) References See Also Examples
Given a set of pre-ordered p-values and accuracy for the result, return the corresponding critical values using the generalized fixed sequence FDR controlling procedure under arbitrary dependence (See Theorem 3.1 and 4.1 in Lynch et al. (2016)). The function also provides an option to make decisions given a pre-specified significant level α.
1 | FSFDR.arbidept.cv(p, k=1, alpha = 0.05, make.decision = TRUE)
|
p |
numeric vector of p-values (possibly with |
k |
pre-specified number of acceptances allowed in the testing procedure (cannot exceed the length of |
alpha |
significant level used to calculate the critical values to make decisions, the default value is 0.05. |
make.decision |
logical; if |
A numeric vector of the critical values (of the same length as p
) if make.decision = FALSE
, or a data frame including original p-values, critical values and decision rules if make.decision = TRUE
.
Yalin Zhu
Lynch, G., Guo, W., Sarkar, S. K., & Finner, H. (2016). The Control of the False Discovery Rate in Fixed Sequence Multiple Testing. arXiv preprint arXiv:1611.03146.
FSFWER.arbidept.cv
for fixed sequence FWER controlling procedures.
1 2 3 4 5 6 7 8 9 | ## generate a pre-ordered pvalue vector for 50 hypotheses, where 80% are true nulls
set.seed(1234); m <- 50; pi0 <- 0.8; m0 <- m*pi0; m1 <- m-m0
mu <- c(4*0.9^(1:m1), rep(0,m0))
Zstat <- rnorm(n = m, mean = mu)
Pval <- 1-pnorm(Zstat)
## conventional fixed sequence procedure
FSFDR.arbidept.cv(p = Pval, alpha = 0.05)
## generalized fixed sequence procedure allowing stop at 5th acceptance
FSFDR.arbidept.cv(p = Pval, alpha = 0.05, k=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.