[R] 2 questions about cluster analysis

Fredy Mejía fmejia at mac.com
Tue Aug 27 17:58:46 CEST 2002


Hello everyone!

I have two questions regarding cluster analysis with the package 'cluster'
:

1.  I have a dissimilarity matrix in csv format, and I would like to use 
it to generate a dendogram using 'hclust'.  How do I make that matrix 
compatible with the function?  I think it has to be similar to the objects 
generated by  the 'dist' function.  Any ideas?

2.  Does anybody have a code for calculating a similarity matrix using the 
Nei-Li index.  My data has either presence (1) or absence (0) for several 
attributes in 73 individuals (specifically, I'm trying to construct a 
dendogram with RFLP data)

Many thanks in advance!

Fredy Mejía

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list