tool.unify: Convert a distribution to uniform ranks

Description Usage Arguments Value Author(s) Examples

View source: R/cle.LS.R

Description

tool.unify converts a distribution to uniform ranks with respect to a background distribution (or self if no background available).

Usage

1
tool.unify(xtrait, xnull = NULL)

Arguments

xtrait

the distribution that will be standardized, i.e. uniformly distributed

xnull

background distribution to be used to distribute xtrait uniformly. If xnull is not specified, xtrait will be used as background distr

Value

y

uniformly distributed form of xtrait

Author(s)

Ville-Petteri Makinen

Examples

1
2
3
x <- rnorm(10)
y <- tool.unify(x) ## uniformly distributed form of x when null dist is x
z <- tool.unify(x, y) ## uniformly distributed form of x when null dist is y

Mergeomics documentation built on Nov. 8, 2020, 6:58 p.m.