Standardizes the columns of a data matrix.
Usage
standardize_data_matrix(X)
Arguments
- X
The n x p design matrix
Value
The n x p design matrix with columns standardized
Examples
if (FALSE) { # \dontrun{
X = matrix(rnorm(12), nrow = 6)
Xstd = standardize_data_matrix(X)
colMeans(Xstd)
} # }