Pareto scaling of a numeric matrix, with or without centering. Observations are scaled by the square-root of their column-wise standard deviations.
pareto_scale(x, centering =TRUE)
Arguments
x: A numeric matrix-like object.
centering: A logical vector indicating whether centering is to be applied (default=TRUE).
Returns
The Pareto scaled version of the matrix x.
Examples
dat <- pareto_scale(olive[,-(1:2)])
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).