Learn R Programming

spots (version 0.1.0)

ZPvalue: P-value of Z scores

Description

Calculate p-value of Z scores.

Usage

ZPvalue(
  Z,
  alternative = c("two.sided", "less", "greater"),
  p.adjust.method = "BH"
)

Arguments

Z

A matrix of Z scores.

alternative

Alternative hypothesis used, default is two.sided.

p.adjust.method

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

Value

A list containing the following:

  • p.val, a matrix of p-values.

  • p.adj, a matrix of adjusted p-values.

Examples

Run this code
# NOT RUN {
{
res <- ZPvalue(matrix(runif(100),10,10))
}

# }

Run the code above in your browser using DataLab