| cor2cov | R Documentation |
Generate a covariance matrix using a correlation matrix and vector of standard deviations
cor2cov(C, S)
C |
A correlation matrix. |
S |
A vector of standard deviations. |
A covariance matrix
C <- matrix(c(1,-0.3,0.7,-0.3,1,-0.2,0.7,-0.2,1), 3, 3)
S <- c(0.5, 2, 1.25)
cor2cov(C,S)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.