Description Usage Arguments Value References Examples
The main function for adaptive filtering procedures
1 2 |
p.matrix |
an |
r |
the required replicability level, i.e. the smallest number of nonnull individual hypotheses for a nonnull PC hypotheses |
type.I.err |
one of "FDR", "FWER" or "PFER", with the default type I error "FDR". For FWER and PFER control, the adaFilter Bonferroni procedure is performed; for FDR control, the adaFilter BH procedure is performed. |
alpha |
control level of the chosen simultaneous error. Default is |
fast |
logical value, default is FALSE. If |
a data frame of size M * 5
where the 5
columns are:
a length M vector of 1 and 0s indicating whether the corresponding PC hypothesis is rejected or not. For a hypothesis, its decision
element is 1 if its adjusted.p
element is not greater than alpha
.
the adaFilter adjusted p-values for the selection p-values. If type.I.error
is "FDR", then return the adaFilter BH adjusted p-values, otherwise, return the adaFilter Bonferroni adjusted p-values.
the length M vector of selection p-values
the length M vector of filtering p-values
The adaFilter adjustment number. For more details, see reference.
J. Wang, L. Gui, W. J. Su, C. Sabatti and A. B. Owen (2020). Detecting Multiple Replicating Signals using Adaptive Filtering Procedures
1 2 3 4 5 6 7 8 9 10 11 12 | ## Simulate a p-value matrix of size 1000 * 2 with 1000 partial conjunction hypotheses and 2 studies
data <- GenPMat()
## set r = 2, which means that the partial conjunction hypothesis is nonnull
## only when in both studies the corresponding hypothesis is nonnull
## Control for FDR at level 0.1
result <- adaFilter(data$pvalue.mat, 2, "FDR", 0.1)
## print the true positives
print(which(result$decision == 1 & data$truth.pc == 1))
## plot the histogram of the selection p-values (which should be conservative)
hist(result$selection.p, breaks = 30,
main = "Histogram of the selection p-values")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.