[R] possible bug in flexclust

From: Gary Lewis <gary.m.lewis_at_gmail.com>
Date: Wed, 04 Jun 2008 13:40:58 -0400


Hi - Writing to see if someone can suggest whether a problem warrants a bug report. It concerns the use of stepFlexclust in the flexclust package. The problem concerns the size of clusters returned.

Versions: R-2.7.0 on Windows XP; RODBC_1.2-3

code snippet:
r8 <- stepFlexclust(df,8,nrep=100,FUN=kcca, family=kccaFamily("kmedians")) summary(r8) ## returns cluster sizes of 51, 115, 218, 73, 118, 140, 311, and 118
trev <- data.frame(r8_at_cluster)
sqlSave(ch, trev, rownames="unitid")

in MySQL:
select r8cluster, count(*) from trev group by 1 order by 1 ## returns cluster sizes of 51, 116, 217, 73, 117, 140, 312, 118

problem:
4 of the 8 clusters differ in sizes. They're close but I'd think they should be exact.

So ... bug or not a bug? It'd be nice if I was just doing something wrong.

Thanks.

Gary

        [[alternative HTML version deleted]]



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 Wed 04 Jun 2008 - 19:59:46 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 Thu 05 Jun 2008 - 14:30:37 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