Re: [R] Clustering with ordinal data

From: Gavin Simpson <gavin.simpson_at_ucl.ac.uk>
Date: Fri, 15 Feb 2008 19:43:22 +0000

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
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 15 Feb 2008 - 19:46:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Feb 2008 - 20:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive