zscore_prod: Z-score products of a two column matrix where larger scores...

View source: R/zscore_prod.R

zscore_prodR Documentation

Z-score products of a two column matrix where larger scores in the same or opposite direction

Description

Z-score products of a two column matrix where larger scores in the same or opposite direction.

Usage

zscore_prod(
  mat,
  nsim = 1e+07 - 2,
  direction = c("both", "same", "opposite"),
  use.logspline = FALSE,
  reorder.rows = TRUE,
  prefix = NULL,
  seed = 100
)

Arguments

mat

Numeric matrix with two columns holding statistics per comparison & rows are analytes.

nsim

Numeric number of simulations.

direction

Character, either "same", "opposite", or default "both"

use.logspline

Logical, whether use logspline appoximation

reorder.rows

Logical, should rows be reordered by p-value?

prefix

Character string to add to beginning of column names. NULL does not add a prefix.

seed

Random seed.

Value

Data frame with statistics from Z-score products test.


jdreyf/jdcbioinfo documentation built on Feb. 12, 2025, 4:30 p.m.