cor2cov | R Documentation |
Turn correlation matrix and standard deviations back to covariance matrix
cor2cov(mycor, mysd = rep(1, dim(mycor)[1]))
mycor |
correlation matrix |
mysd |
standard deviations |
covariance matrix
Daniel Lill (daniel.lill@physik.uni-freiburg.de)
mycor <- matrix(c(1,0.8,0.8,1),2) mysd <- c(sqrt(2),1) cor2cov(mycor,mysd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.