Re: [R] distance in the function kmeans

About this list Date view Thread view Subject view Author view Attachment view

From: n.bouget@laposte.net
Date: Fri 28 May 2004 - 18:30:33 EST


Message-id: <HYF0YX$00B4A5CDA0E53AB89D13149BACD6D987@laposte.net>


> n.bouget wrote:
>
> > Hi,
> > I want to know which distance is using in the function kmeans
> > and if we can change this distance.
> > Indeed, in the function pam, we can put a distance matrix in
> > parameter (by the line "pam<-pam(dist(matrixdata),k=7)" ) but
> > we can't do it in the function kmeans, we have to put the
> > matrix of data directly ...
Yes but how can we choose the distance to calculate centers?

> > Thanks in advance,
> > Nicolas BOUGET
>
> As the name says, kmeans() calculates *means* (centres) of
clusters. It
> does not any make sense to do that on distances ...
>
> Uwe Ligges
>
>
> > Accédez au courrier électronique de La Poste :
www.laposte.net ;
> > 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > https://www.stat.
math.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
>

Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST