cor2cov | R Documentation |
Convert from standard deviation and correlation matrix to covariance matrix.
cor2cov(cor, sd)
cor |
A correlation matrix. If |
sd |
A vector of standard deviations (optional). |
A covariance matrix.
cor2cov(matrix(c(1, 0.5, 0.5, 1), 2, 2), 0.1)
cor2cov(LTmat(c(0.39, 0.67, 0.28), .names=c("CL", "VC")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.