SpearmanError {DRquality} | R Documentation |
Calculates the error of a projection with spearman's rank correlation coefficient.
Description
Calculates the error of a projection with spearman's rank correlation coefficient.
Arguments
VectorOfInputDists(1:n2) |
dissimilarities in Input Space between the n data points in vector form as produced by squareform(Dists(1:n,1:n)) |
VectorOfOutputDists(1:n2) |
dissimilarities in Output Space between the n data points in vector form as produced by squareform(Dists(1:n,1:n)) |
Value
rho rank correlation coefficient
Author(s)
Florian Lerch
Examples
if(requireNamespace("FCPS")){
data(Hepta,package="FCPS")
projection=cmdscale(dist(Hepta$Data), k=2)
SpearmanError(as.matrix(dist(Hepta$Data)),as.matrix(dist(projection)))
}
[Package DRquality version 0.2.1 Index]