Learn R Programming

spots (version 0.1.0)

PermutationPval: Permutation based p-value

Description

Calculate permutation based p-values.

Usage

PermutationPval(
  x,
  X.perm,
  alternative = c("two.sided", "less", "greater"),
  p.adjust.method = "BH",
  condition = 0
)

Arguments

x

A numerical vector.

X.perm

A matrix contains permutation result of x.

alternative

Alternative hypothesis used, default is two.sided.

p.adjust.method

Method used for multiple comparisons correction, default is BH. See p.adjust.

condition

Value under null hypothesis to compare with, default is 0.

Value

A list containing the following:

  • p.val, permutation based p-value.

  • p.adj, adjusted p-values.