| oos_standardize | R Documentation |
Standardize columns to zero mean and unit variance
oos_standardize(X)
X |
A numeric matrix. |
A matrix with the same dimensions as X, where each column
has been centred and scaled to unit variance.
X <- matrix(rnorm(100), 20, 5)
Xs <- oos_standardize(X)
round(colMeans(Xs), 10)
round(apply(Xs, 2, sd), 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.