Created
January 13, 2012 05:04
-
-
Save swuecho/1604771 to your computer and use it in GitHub Desktop.
cov2cor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cov2cor <- function(x) { | |
for (i in 1:dim(x)[1]){ | |
for (j in 1:dim(x)[2]){ | |
x[i,j]<-x[i,j]/sqrt(x[i,i]/sqrt[j,j] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment