[R] Specifying medoids in PAM?

From: David Finlayson <david.p.finlayson_at_gmail.com>
Date: Wed 08 Jun 2005 - 05:11:25 EST

I am using the PAM algorithm in the CLUSTER library.

When I allow PAM to seed the medoids using the default __build__ algorithm things work

> pam(stats.table, metric="euclidean", stand=TRUE, k=5)

But I have some clusters from a Hierarchical analysis that I would like to use as seeds for the PAM algorithm. I can't figure what the mediod argument wants. When I put in the five integer indicies for the observations in stats.table that I would like to use as seeds (the row numbers), I segfault R.

> pam(stats.table, metric="euclidean", stand=TRUE, medoids=c(1,3,20,2,5), k=5)

Here is my version info:
> version

platform i386-pc-mingw32

arch     i386           
os       mingw32        
system   i386, mingw32  
major    2              
minor    0.1            
year     2004           
month    11             
day      15             
language R      

Any guidance would be appreciated.


David Finlayson
Marine Geology & Geophysics
School of Oceanography
Box 357940
University of Washington
Seattle, WA  98195-7940

Office: Marine Sciences Building, Room 112
Phone: (206) 616-9407
Web: http://students.washington.edu/dfinlays

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Jun 08 05:15:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:27 EST