Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cor2dist

Convert correlations to distances (necessary to do multidimensional scaling of correlation data)


Description

A minor helper function to convert correlations (ranging from -1 to 1) to distances (ranging from 0 to 2). d = √{(2(1-r))}.

Usage

cor2dist(x)

Arguments

x

If square, then assumed to be a correlation matrix, otherwise the correlations are found first.

Value

dist: a square matrix of distances.

Note

For an example of doing multidimensional scaling on data that are normally factored, see Revelle (in prep)

Author(s)

William Revelle

References

Revelle, William. (in prep) An introduction to psychometric theory with applications in R. Springer. Working draft available at https://personality-project.org/r/book/


psych

Procedures for Psychological, Psychometric, and Personality Research

v2.1.3
GPL (>= 2)
Authors
William Revelle [aut, cre] (<https://orcid.org/0000-0003-4880-9610>)
Initial release
2021-03-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.