Learn R Programming

RNAither (version 2.20.0)

multTestAdjust: Adjust p-values for multiple testing

Description

Adjusts p-values for multiple testing.

Usage

multTestAdjust(pValVec, adjustMethod)

Arguments

pValVec
a vector of p-values
adjustMethod
one of the following: "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none". For details type ?p.adjust

Value

Returns a vector of corrected p-values. Can be integrated into a dataframe with the function incorporatepValVec.

See Also

incorporatepValVec, Ttest

Examples

Run this code
data(pValVec1, package="RNAither")

##for details on the generation of pValVec1, see the example of the Ttest function linked above.

newpvalvec <- multTestAdjust(pValVec1,"fdr")

Run the code above in your browser using DataLab