Displaying 2 results from an estimated 2 matches for "centrotypes".
2009 Feb 18
0
Index-G1 error
....G1 ------------------------------------------
res <- array(0,c(nc.max - nc.min +1,2))
res[,1] <- nc.min:nc.max
clusters <- NULL
for (nc in nc.min:nc.max) {
cl <- pam(dist.mat,nc,diss=TRUE)
res[nc-nc.min+1,2] <- G1 <- index.G1(as.matrix(alpha.vec),cl$cluster,d=dist.mat,centrotypes="medoids")
clusters <- rbind(clusters, cl$cluster)
}
###############################################################################
I get the following error whenever I use index.G1:
> nc <- 2
> cl <- pam(dist.mat,nc,diss=TRUE)
> cl
Medoids:
ID
[1,] 5 5...
2010 Apr 05
0
Agnes in Cluster Package and index.G1 in the clusterSim package questions
...nal solution?).
I was able to find the Package ‘clusterSim’ which Calculates
Calinski-Harabasz pseudo F-statistic but I am having some difficulty
substituting in the CL (A vector of integers indicating the cluster to which
each object is allocated) argument in
the formula:
index.G1 (x,cl,d=NULL,centrotypes="centroids")
Thanks in advance for any help,
Sincerely,
Pancho Aguirre
[[alternative HTML version deleted]]