Peter Dalgaard wrote:
> Arun Kumar Saha wrote:
>> Suppose I have a Variance-covariance matrix A. Is there any fast way to
>> calculate correlation matrix from 'A' and vice-versa without emplying
>> any
>> 'for' loop?
>>
> C <- cov2cor(A)
>
> The other way around is ill-defined, but if d is the v
; <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Monday, May 19, 2008 8:32 AM
Subject: [R] Converting variance covariance matrix to correlation
matrix
Suppose I have a Variance-covariance matrix A. Is there any fast way
to
calculate correlati
Arun Kumar Saha wrote:
Suppose I have a Variance-covariance matrix A. Is there any fast way to
calculate correlation matrix from 'A' and vice-versa without emplying any
'for' loop?
C <- cov2cor(A)
The other way around is ill-defined, but if d is the vector of variances,
d <- sqrt(diag(A))
A
Suppose I have a Variance-covariance matrix A. Is there any fast way to
calculate correlation matrix from 'A' and vice-versa without emplying any
'for' loop?
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.
4 matches
Mail list logo