quantileNormalization: Quantile normalization of frame/matrix with respect to...

View source: R/Rstatistic.R

quantileNormalizationR Documentation

Quantile normalization of frame/matrix with respect to reference distribution

Description

Distribution to be normalized are represented as columns or rows of a matrix/data frame. Each value is replaced by the quantile of the reference distribution as given by the value of the empirical distribution function of the given value.

Usage

quantileNormalization(
  reference,
  data,
  direction = 2,
  impute = TRUE,
  ties = "random",
  center = TRUE,
  referenceDirection = direction
)

Arguments

reference

numeric vector with realizations from the target distribution

data

data frame or matrix with data to be normalized

direction

is data organized per row or column?

Examples

d = sapply(1:20, rnorm(1e4));
dNorm = quantileNormalization(as.vector(d), d)

sboehringer/plausibility documentation built on Dec. 6, 2022, 11:34 a.m.