Distance Matrix Computation
This function computes and returns the distance matrix determined by using the specified distance metric to compute the distances between the columns of a data matrix.
A numeric matrix or an
A character string defining the distance metric. This
Additional parameters to be passed on to
This function differs from
dist in two ways, both of
which are motivated by common practice in the analysis of microarray
or proteomics data. First, it computes distances between column vectors
instead of between row vectors. In a typical microarray experiment,
the data is organized so the rows represent genes and the columns
represent different biological samples. In many applications,
relations between the biological samples are more interesting than
relationships between genes. Second,
additional distance metrics based on correlation.
pearsonThe most common metric used in the microarray literature is the
pearsondistance, which can be computed in terms of the Pearson correlation coefficient as
uncentered correlationThis metric was introduced in the Cluster and TreeView software from the Eisen lab at Stanford. It is computed using the formulas for Pearson correlation, but assuming that both vectors have mean zero.
spearmanmetric used the same formula, but substitutes the Spearman rank correlation for the Pearson correlation.
absolute pearsonmetric used the absolute correlation coefficient; i.e.,
sqrt pearsonmetric used the square root of the pearson distance metric; i.e.,
weirdmetric uses the Euclidean distance between the vectors of correlation coefficients; i.e., dist(cor(dataset)).
A distance matrix in the form of an object of class
the sort returned by the
dist function or the
It would be good to have a better name for the
Kevin R. Coombes firstname.lastname@example.org
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.