MixfMRI (version 0.1-0)

Compute Q values: Q-values using Benjamini and Hochberg (1995)

Description

Compute q-values Benjamini and Hochberg's (1995) approach for controlling FDR.

Usage

qvalue(p, method = c("BH1995", "BY2001"))

Arguments

p

a p-value vector.

method

using method by either BH1995 or BY2001

Value

Return corresponding q-values for the input p-values.

Details

This function compute q-values using Benjamini and Hochberg's (1995) approach for controlling FDR. The function bh.fdr is originally written by Dr. Dan Nettleton.

The Benjamini and Yeekutieli's (2001) approach for controlling FDR using the function by.fdr is coded by Wei-Chen Chen.

References

http://maitra.public.iastate.edu/

See Also

dpval(), dmixpval().

Examples

Run this code
# NOT RUN {
library(MixfMRI, quietly = TRUE)
set.seed(1234)
da <- gendataset(phantom = shepp1fMRI, overlap = 0.01)
p <- da$pval[!is.na(da$pval)][1:100]
qvalue(p)
# }

Run the code above in your browser using DataLab