Skip to content

Distance matrix based on correlation coefficient

4 messages · Dragos Zaharescu, Jari Oksanen, Gavin Simpson

#
I would much appreciate if?someone would enlighten me on how to calculate a 
distance matrix based on correlation coefficient (Spearman)? The simple 
correlation matrix seems not to work.
I am trying to use it?in FSO/MFSO to calculate the influence of 
climate?factors?on?heavy metals?concentrations.

Cheers,
Dragos Zaharescu

??
Animal Anatomy Lab
Faculty of Biological Sciences
Vigo University, apd. 137
36310, Vigo, SPAIN
zaha_dragos at yahoo.com
zdragos at uvigo.es
http://webs.uvigo.es/zdragos/
?
~ You should be the change you want to see in the world?~ Ghandi
#
On Tue, 2010-07-20 at 12:12 -0700, Dragos Zaharescu wrote:
In what sense did it not work? We aren't mind readers! Hence the posting
guide asking you to provide information that will help us to help you.
Does this help at all?
A          B         C
A 1.00000000 0.08986947 0.1224007
B 0.08986947 1.00000000 0.2667838
C 0.12240068 0.26678381 1.0000000
A         B         C
A 0.0000000 0.9101305 0.8775993
B 0.9101305 0.0000000 0.7332162
C 0.8775993 0.7332162 0.0000000
A         B
B 0.9101305          
C 0.8775993 0.7332162

HTH

G
#
On 20/07/10 22:42 PM, "Gavin Simpson" <gavin.simpson at ucl.ac.uk> wrote:

            
Actually the canonical transformation to distance is sqrt(2-2*cor(dat)).

Cheers, Jari Oksanen
#
On Tue, 2010-07-20 at 23:35 +0300, Jari Oksanen wrote:
Of course, thanks Jari. That 1 - bit was total rubbish, not even
acknowledging that cor could be negative. Not sure what came over me; I
blame the heat here in London ;-)

Hangs head in shame.

G