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

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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

Usage

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

Arguments

p

a p-value vector.

method

using method by either BH1995 or BY2001

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.

Value

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

Author(s)

Dan Nettleton.

Modified by Wei-Chen Chen.

References

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

See Also

dpval(), dmixpval().

Examples

1
2
3
4
5
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)

MixfMRI documentation built on April 26, 2018, 5:03 p.m.