50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

DRquality (version 0.2.1)

KendallsTau: Statistical correlation by Kendall

Description

Calculates the statistical correlation by Kendall. Basically a wrapper to pcaPP::cor.fk.

Usage

KendallsTau(InputDists, OutputDists)

Value

Equivalent to cor.fk

Arguments

InputDists

Matrix containing the distances of the first dataset.

OutputDists

Matrix containing the distances of the second dataset.

Author

Michael Thrun

Examples

Run this code
# \donttest{
if(requireNamespace("FCPS")){
data(Hepta,package="FCPS")
InputDist=dist(Hepta$Data)
projection=cmdscale(InputDist, k=2)
KendallsTau(as.matrix(InputDist),as.matrix(dist(projection)))
}
# }
# \dontshow{
n=100
Data=cbind(rnorm(100),rnorm(100,2,3))
InputDist=dist(Data)
projection=cmdscale(InputDist, k=2)
KendallsTau(as.matrix(InputDist),as.matrix(dist(projection)))
# }

Run the code above in your browser using DataLab