Unit-Variance (UV) scale each variable (column). UV-scaling applied as (value - mean) / stdev. Unit-Variance Scaling or Autoscaling, is commonly applied and uses the standard deviation as the scaling factor. After autoscaling, all metabolites have a standard deviation of one and therefore the data is analyzed on the basis of correlations instead of covariances.
Arguments
- inputMat
(Observation x Variable)
data.frame
of measurements, with observations as rows and different variables as columns.
Examples
if (FALSE) {
inputMat <- data.frame(matrix(c(1,4,7, 8,4,0, 3,6,9), nrow=3))
scaling_UV(inputMat)
# X1 X2 X3
# [1,] -1 1 -1
# [2,] 0 0 0
# [3,] 1 -1 1
}