vech2Corr is a convenience function for creating correlation matrices from a vector of the lower triangular values. It checks the arguments to make sure they are consistent with the requirements of a correlation matrix. All values must be in [-1, 1], and the number of values specified must be correct for a lower triangle.
A vector of values for the strictly lower triangle of a matrix. All values must be in the [0,1] interval (because they are correlations) and the matrix formed must be positive definite.
Use this in combination with the
lazyCov function to
convert a vector of standard deviations and the correlation matrix
into a covariance matrix.
A symmetric correlation matrix, with 1's on the diagonal.
Paul E. Johnson <firstname.lastname@example.org>
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.