pearson.dist | R Documentation |
R^2
The calculated distance is
D^2 = \frac{1 - COR (\code{x}')}{2}
pearson.dist(x)
x |
a matrix |
The distance between the rows of x
is calculated. The possible
values range from 0 (prefectly correlated) over 0.5 (uncorrelated) to 1
(perfectly anti-correlated).
distance matrix (distance object)
C. Beleites
S. Theodoridis and K. Koutroumbas: Pattern Recognition, 3rd ed., p. 495
as.dist
pearson.dist (flu [[]])
pearson.dist (flu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.