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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.