Function that standardizes the data before running the fitting
algorithm. This is used in the sail
function
standardize(x, center = TRUE, normalize = FALSE)
data to be standardized
Should x
be centered. Default is TRUE
Should x
be scaled to have unit variance. Default is
FALSE
list of length 3:
centered and possibly
normalized x
matrix
numeric vector of column means of
x
matrix
standard deviations (using a divisor of
n
observations) of columns of x
matrix