[R] Compute a correlation matrix from an existing covariance matrix

Kjetil Brinchmann Halvorsen kjetilbrinchmannhalvorsen at gmail.com
Tue Feb 21 18:35:32 CET 2006


Marc Bernard wrote:
> Dear All,
>    
>   I am wondering if there is an R function to convert a covariance matrix to a correlation matrix. I have a covariance matrix sigma and I want to compute the corresponding correlation matrix R from sigma.
>    

Does cov2cor  do what you want?

Kjetil

>   Thank you very much,
>    
>   Bernard
> 
> 		
> ---------------------------------
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list