R help
Var <- array(c(4, 1, 1, 4), dim=c(2,2))
> Sd <- sqrt(diag(Var))
> Var/outer(Sd, Sd)
[,1] [,2]
[1,] 1.00 0.25
[2,] 0.25 1.00
hope this helps. spencer graves
Shutnik wrote:
Hi, How to convert a var-covar matrix to correlation matrix. Thanks --------------------------------- [[alternate HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help