Calculate p-value of Z scores.

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

{
res <- ZPvalue(matrix(runif(100),10,10))
}