Internal function not to be called by the user
a matrix to be scaled
get_num_scale is called by
Do NOT use this function unless you are ME, a package developer, or a jedi user who really knows what is doing (seriously!)
scales a matrix X in such a way that mean(X[,j])=0 and varpop(X[,j])=1 this means that sum(X[,j]^2) = n if MD, sum(X[,j]^2, na.rm=T) = number of available elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.