cor2cov | R Documentation |
Correlation Matrix to Covariance Matrix convert a correlation matrix and variance vector into the corresponding covariance matrix. A warning is given if the covariance matrix is not positive definite.
cor2cov(corMat, varVec)
corMat |
is a square matrix with 1's on the diagonal |
varVec |
is a valid variance vector, with length |
Covariance matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.