Skip to content
Back to formatted view

Raw Message

Message-ID: <3EAAD288.3040809@pdf.com>
Date: 2003-04-26T18:40:08Z
From: Spencer Graves
Subject: 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