Calculate permutation based p-values.
PermutationPval(
x,
X.perm,
alternative = c("two.sided", "less", "greater"),
p.adjust.method = "BH",
condition = 0
)
A numerical vector.
A matrix contains permutation result of x.
Alternative hypothesis used, default is two.sided
.
Method used for multiple comparisons correction, default is BH
. See p.adjust
.
Value under null hypothesis to compare with, default is 0.
A list containing the following:
p.val, permutation based p-value.
p.adj, adjusted p-values.