[R] Zero mean correlation Matrix

AliR aaliraja at gmail.com
Mon Oct 20 18:54:45 CEST 2008


Hi,,

I want to use the existing cor function in R but with a different way to
compute the correlation method.. basically zero mean correlation. 

The forumula I have is 

'D' <- function(c1, c2)
  sum(c1*c2, na.rm=T)/(sqrt(sum(c1*c1, na.rm=T))*sqrt(sum(c2*c2, na.rm=T)))


I am not sure how i can modify the method cor computes its square roots and
covariance matrixes? I only need to add this to get the answer 
       


-- 
View this message in context: http://www.nabble.com/Zero-mean-correlation-Matrix-tp20074044p20074044.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list