powered by
This function perform a fast calculation of the Spearman's correlation coefficient.
fastcor (a, b=NULL, byrow=TRUE, diag=TRUE)
The output matrix of correlation coefficient.
a matrix of training set cases.
if byrow == T rows are correlated (much faster) else columns
if diag == T only the diagonal of the cor matrix is returned (much faster).
Stefano Cacciatore, Leonardo Tenori, Dupe Ojo, Alessia Vignoli
optim.pls.cv,pls.double.cv
optim.pls.cv
pls.double.cv
data(iris) data=as.matrix(iris[,-5]) fastcor(data)
Run the code above in your browser using DataLab