[R] cluster results using fanny
TEMPL Matthias
Matthias.Templ at statistik.gv.at
Tue May 17 10:31:07 CEST 2005
> Barbara Diaz wrote:
> > Hi,
> >
> > I am using fanny and I have estrange results. I am wondering if
> > someone out there can help me understand why this happens.
> >
> > First of all in most of my tries, it gives me a result in
> which each
> > object has equal membership in all clusters. I have read that that
> > means "the clustering is entirely fuzzy". Looking at the
> graphics it
> > is really difficult to understand how objects with so
> different scores
> > for the variables have the same membership for all the clusters.
Hi Barbara,
I think, there is a problem with fanny, when you have standardised data.
For example:
library(mvoutlier)
library(cluster)
data(chorizon)
a <- fanny(chorizon[,101:110],4)
b <- fanny(scale(chorizon[,101:110]),4)
a$mem # is ok, but
b$mem # have same memberships
Better to use function cmeans in package e1071, which gives correct
memberships!
Best,
Matthias
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read
> the posting guide! http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list