Hi

i am using prediction.strength with k-medoids algorithms. There are simple 
examples like 


prediction.strength(iriss,2,3,M=3,method="pam")

I wrote my code like

prediction.strength(data,2,6,M=10,clustermethod=pamkCBI,DIST,krange=2:6,diss=TRUE,usepam=TRUE)

because i am using the dissimilarity matrix instead of the data itself for the 
clustering algorithms. But then i got this error message:

Error in switch(method, kmeans = kmeans(xdata[indvec[[l]][[i]], ], k,  : 
EXPR must be a length 1 vector

can someone please help me to correct my code? i would be very thankful:)

many regards

xy
        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to