Learn R Programming

IMIFA (version 2.2.0)

pareto_scale: Pareto Scaling

Description

Pareto scaling of a numeric matrix, with or without centering. Observations are scaled by the square-root of their column-wise standard deviations.

Usage

pareto_scale(x,
             centering = TRUE)

Value

The Pareto scaled version of the matrix x.

Arguments

x

A numeric matrix-like object.

centering

A logical vector indicating whether centering is to be applied (default=TRUE).

Author

Keefe Murphy - <keefe.murphy@mu.ie>

References

van den Berg, R. A., Hoefsloot, H. C. J, Westerhuis, J. A., Smilde, A. K., and van der Werf, M.J. (2006) Centering, scaling, and transformations: improving the biological information content of metabolomics data. BMC Genomics, 7(142).

Examples

Run this code
dat  <- pareto_scale(olive[,-(1:2)])

Run the code above in your browser using DataLab