search for: kmedian

Displaying 2 results from an estimated 2 matches for "kmedian".

Did you mean: median
2010 Apr 24
4
DICE Coefficient of similarity measure
Hi, I wanted the DICE coefficient (similarity measure for binary variables) to be calculated in R and found that the "igraph" package has the option of "similarity.dice" to do this. But, for this command, the input object should be an igraph object. But, I have a dataframe of columns containing 1's and 0's. Can I convert this dataframe into an igraph object, so that
2008 Jun 04
1
possible bug in flexclust
...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@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,...