corr.XY <-
function(X,y,mod=1){# y is an vector.################ABS
if(mod==1) return((colSums(cent.X(X)*y)));
if (mod==2) return (colSums(as.matrix(X*y))/colSums(as.matrix(X^2)));
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.