Description Usage Arguments Details Value Author(s) References See Also Examples
This function computes adjusted p-values for simple multiple testing procedures from a vector of raw (unadjusted) p-values. The procedures include the Bonferroni, Holm (1979), Hochberg (1988), and Sidak procedures for strong control of the family-wise Type I error rate (FWER), and the Benjamini & Hochberg (1995) and Benjamini & Yekutieli (2001) procedures for (strong) control of the false discovery rate (FDR).
1 | mt.rawp2adjp.LPE(rawp, proc=c("Bonferroni", "Holm", "Hochberg", "SidakSS", "SidakSD", "BH", "BY"))
|
rawp |
A vector of raw (unadjusted) p-values for each
hypothesis under consideration. These could be nominal
p-values, for example, from t-tables, or permutation
p-values as given in |
proc |
A vector of character strings containing the names of the
multiple testing procedures for which adjusted p-values are to
be computed. This vector should include any of the following:
|
Adjusted p-values are computed for simple FWER and FDR controlling procedures based on a vector of raw (unadjusted) p-values.
Bonferroni single-step adjusted p-values for strong control of the FWER.
Holm (1979) step-down adjusted p-values for strong control of the FWER.
Hochberg (1988) step-up adjusted p-values for strong control of the FWER (for raw (unadjusted) p-values satisfying the Simes inequality).
Sidak single-step adjusted p-values for strong control of the FWER (for positive orthant dependent test statistics).
Sidak step-down adjusted p-values for strong control of the FWER (for positive orthant dependent test statistics).
adjusted p-values for the Benjamini & Hochberg (1995) step-up FDR controlling procedure (independent and positive regression dependent test statistics).
adjusted p-values for the Benjamini & Yekutieli (2001) step-up FDR controlling procedure (general dependency structures).
A list with components
adjp |
A matrix of adjusted p-values, with rows corresponding to hypotheses and columns to multiple testing procedures. Hypotheses are sorted in increasing order of their raw (unadjusted) p-values. |
index |
A vector of row indices, between 1 and
|
Sandrine Dudoit, http://www.stat.berkeley.edu/~sandrine,
Yongchao Ge, gyc@stat.berkeley.edu.
Y. Benjamini and Y. Hochberg (1995). Controlling the false discovery
rate: a practical and powerful approach to multiple
testing. J. R. Statist. Soc. B. Vol. 57: 289-300.
Y. Benjamini and D. Yekutieli (2001). The control of the false discovery
rate in multiple hypothesis testing under dependency. Annals of
Statistics. Accepted.
S. Dudoit, J. P. Shaffer, and J. C. Boldrick (Submitted). Multiple
hypothesis testing in microarray experiments.
Y. Ge, S. Dudoit, and T. P. Speed (In preparation). Fast algorithm for
resampling-based p-value adjustment in multiple testing.
Y. Hochberg (1988). A sharper Bonferroni procedure for multiple tests of
significance, Biometrika. Vol. 75: 800-802.
S. Holm (1979). A simple sequentially rejective multiple test procedure. Scand. J. Statist.. Vol. 6: 65-70.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Loading the library and the data
library(LPE)
data(Ley)
dim(Ley)
# Gives 12488*7
# First column is ID.
# Subsetting the data
subset.Ley <- Ley[1:1000,]
subset.Ley[,2:7] <- preprocess(subset.Ley[,2:7],data.type="MAS5")
# Finding the baseline distribution of condition 1 and 2.
var.1 <- baseOlig.error(subset.Ley[,2:4], q=0.01)
var.2 <- baseOlig.error(subset.Ley[,5:7], q=0.01)
# Applying LPE
lpe.result <- lpe(subset.Ley[,2:4],subset.Ley[,5:7], var.1, var.2,
probe.set.name=subset.Ley[,1])
fdr.BH <- fdr.adjust(lpe.result, adjp="BH")
|
[1] 12488 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.