bioDist (version 1.44.0)

tau.dist: Kendall's tau correlational distance

Description

Calculate pairwise Kendall's tau correlational distances, i.e. 1-TAU or 1-|TAU|, for all rows of the input matrix and return an instance of the dist class.

Usage

tau.dist(x, ...)

Arguments

x
n by p matrix or ExpressionSet; if x is an ExpressionSet, then the function uses its 'exprs' slot.
...
arguments passed to tau.dist:
  • absif TRUE, then 1-|TAU| else 1-TAU; default is TRUE.
  • diagif TRUE, then the diagonal of the distance matrix will be displayed; default is FALSE.
  • upperif TRUE, then the upper triangle of the distance matrix will be displayed; default is FALSE.
  • samplefor the ExpressionSet method: if TRUE (the default), then distances are computed between samples.

Value

One minus the row-wise Kendall's tau correlations are returned as an instance of the dist class. Note that this can be extremely slow for large data sets.

Details

Row-wise correlations are computed by calling the cor function with the appropriate arguments.

See Also

cor.dist, spearman.dist, euc, man, KLdist.matrix, KLD.matrix, mutualInfo

Examples

Run this code
 x <- matrix(rnorm(200), nrow = 5)
 tau.dist(x)

Run the code above in your browser using DataLab