[R] R help
Patrick Burns
pburns at pburns.seanet.com
Sat Apr 26 22:44:40 CEST 2003
If the variance matrix is large, then
t(Var / Sd) / Sd
is probably more efficient.
Patrick Burns
Burns Statistics
patrick at burns-stat.com
+44 (0) 208 525 0696
http://www.burns-stat.com/
(home of S Poetry and "A Guide for the Unwilling S User")
Spencer Graves wrote:
> > 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
>
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
More information about the R-help
mailing list