Description Usage Arguments Value Note Author(s) References
A minor helper function to convert correlations (ranging from -1 to 1) to distances (ranging from 0 to 2). d = √{(2(1-r))}.
1 | cor2dist(x)
|
x |
If square, then assumed to be a correlation matrix, otherwise the correlations are found first. |
dist: a square matrix of distances.
For an example of doing multidimensional scaling on data that are normally factored, see Revelle (in prep)
William Revelle
Revelle, William. (in prep) An introduction to psychometric theory with applications in R. Springer. Working draft available at http://personality-project.org/r/book/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.