adjP: user-friendly wrapper to the multtest package to adjust for...

Description Usage Arguments Value Author(s) Examples

Description

Uses the multtest package with a friendlier interface. x is your vector of raw p values, and the output is the corrected vector with the order maintained. Function by Levi Waldron.

Usage

1
adjP(x, proc = "BH", ...)

Arguments

x

raw p-values

proc

procedure for correcting for multiple testing, "BH" by default for Benjamini-Hochberg. See ?mt.rawp2adjp from multtest for options

...

additional arguments passed to mt.rawp2adjp

Value

a matrix containing columns for raw and adjusted p-values

Author(s)

Levi Waldron and Markus Riester

Examples

1
2
rawp <- c(0.01, 0.05, 0.1, 0.2, 0.3)
adjP(rawp)

lwaldron/LeviRmisc documentation built on May 21, 2019, 8:59 a.m.