[R] Clustering with ordinal data

Gavin Simpson gavin.simpson at ucl.ac.uk
Fri Feb 15 20:43:22 CET 2008


On Fri, 2008-02-15 at 10:45 -0800, Tim Smith wrote:
> Hi,
> 
> Is there any clustering package in R that can cluster with ordinal data?
> 
> thanks!

daisy() in recommended package 'cluster' can generate dissimilarities
for ordinal data using Gower's general (dis)similarity coefficient for
mixed data. It returns an object that inherits from dist so it can be
used in clustering tools that accept dist objects. Check out the options
in the cluster package itself, but also note you can use hclust in base
R.

For more information, see if the details on the Cluster Task View help:

http://cran.r-project.org/src/contrib/Views/Cluster.html

HTH

G

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list