[R] distance method in kmeans
paulandpen at optusnet.com.au
Sun Apr 22 17:08:18 CEST 2007
You could try clustan graphics, cheap and awesome with plenty of
preprocessing capabilities of matrices.
Given this is one of R's strengths (matrix programming) I would imagine
there is code out there that would enable you to generate a matrix for use
Typically, what I would do is to generate a set of tetrachoric correlations
if I am going to use binary data in k-means
----- Original Message -----
From: "Ranga Chandra Gudivada" <chandra_bio at yahoo.com>
To: <R-help at stat.math.ethz.ch>
Sent: Monday, April 23, 2007 12:19 AM
Subject: [R] distance method in kmeans
>I am trying to cluster some binary data using k-means . As the regular
>"kmeans" available from stats package in R does'nt provide the option to
>change the distance method. I was wondering there is any package available
>to specify type of distance measure to be used in k means clustering in R.
>Especially distances like "Jaccard" which is good for binary data.
> Thanks chandra
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help