Description Usage Arguments Details Value Author(s) See Also Examples

To see the structure of a correlation matrix, it is helpful to organize the items so that the similar items are grouped together. One such grouping technique is factor analysis. mat.sort will sort the items by a factor model (if specified), or any other order, or by the loadings on the first factor (if unspecified)

1 |

`m` |
A correlation matrix |

`f` |
A factor analysis output (i.e., one with a loadings matrix) or a matrix of weights |

The factor analysis output is sorted by size of the largest factor loading for each variable and then the matrix items are organized by those loadings. The default is to sort by the loadings on the first factor. Alternatives allow for ordering based upon any vector or matrix.

A sorted correlation matrix, suitable for showing with `cor.plot`

.

William Revelle

1 2 3 | ```
data(Bechtoldt.1)
sorted <- mat.sort(Bechtoldt.1,fa(Bechtoldt.1,5))
cor.plot(sorted)
``` |

psych documentation built on April 1, 2018, 11:58 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.