Skip to content
Prev 173158 / 398506 Next

rcorr.cens Goodman-Kruskal gamma

Thanks to David and Frank for the suggestions. With a 2-dimensional input rcorr.cens and John Baron's implementation works good. But I am not able to calculate gamma for a multivariate matrix

example: columns=species; rows=releves; the numbers are BB-values (ordinal scale; 1<3 but 3-1 is not necessarily 2)

   K. ceratoides S. caucasica A. tibeticum
A1    3               1            1
A2    0               3            2
A3    1               1            0
A4    2               2            0
A5    0               3            2
B1    1               1            1
B2    4               3            1

I want to calculate a distance matrix with scale unit "Goodman-Kruskals gamma" (instead of classical euclidean, bray curtis, manhattan etc.) which I can use for hierachical cluster analysis (e.g. amap, vegan, cluster) in order to compare the different releves.
  
Further suggestions would be greatly appreciated,
Thank you very much,
Kim



 
-------- Original-Nachricht --------
Dear r-helpers!
I want to classify my vegetation data with hierachical cluster analysis.
My Dataset consist of Abundance-Values (Braun-Blanquet ordinal scale; ranked) for each plant species and relev?.
I found a lot of r-packages dealing with cluster analysis, but none of them is able to calculate a distance measure for ranked data.
Podani recommends the use of Goodman and Kruskals' Gamma for the distance. I found the function rcorr.cens (outx=true) of the Hmisc package which should do it.
What I don't understand is how to define the input vectors x, y with my vegetation dataset. The other thing how I can use the output of rcorr.cens for a distance measure in the cluster analysis (e.g. in vegan or amap).
Any help would be greatly appreciated,
Thank you very much,
Kim