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

umxCov2cor

Convert a covariance matrix into a correlation matrix


Description

A version of cov2cor() that forces upper and lower triangles to be identical (rather than nearly identical)

Usage

umxCov2cor(x)

Arguments

x

something that cov2cor can work on (matrix, df, etc.)

Value

  • A correlation matrix

References

See Also

Examples

umxCov2cor(cov(mtcars[,1:5]))

umx

Structural Equation Modeling and Twin Modeling in R

v4.10.10
GPL-3
Authors
Timothy C. Bates [aut, cre] (<https://orcid.org/0000-0002-1153-9007>), Gillespie Nathan [wit], Michael Zakharin [wit], Brenton Wiernik [ctb], Joshua N. Pritikin [ctb], Michael C. Neale [ctb], Hermine Maes [ctb]
Initial release
2021-11-30

We don't support your browser anymore

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