adjustPValues | R Documentation |
Given a set of p-values, returns p-values adjusted using one of several methods.
adjustPValues(p, method, n = length(p))
p |
numeric vector of p-values (possibly with
|
method |
correction method. Can be abbreviated. |
n |
number of comparisons, must be at least |
This function modifies stats::p.adjust
method such that for Bonferroni
correction it is possible to specify n
lower than length(p)
.
This feature is useful in cases when knowledge about the biology or
redundance of alleles reduces the need for correction.
See p.adjust
for more details.
A numeric vector of corrected p-values (of the same length as p, with names copied from p).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.