Hi, I need some help understanding the output from PAM. When I look at the output it doesn't list the cluster number by the median vlaues on each of the variables (like it does with k-means) Instead I have the following: So I know for instance cluster 1 has a mean for variable1 of 33.33, however when I run PAM i get: variable 1 variable2 29 32 12 97 12 9 308 106 8 217 62 2 Does 29 relate to cluster 1, and 97 to cluster2 etc. Hope this makes sense, Nathaniel ___________________________________________________________ [[alternative HTML version deleted]] ______________________________________________ R-help@stat.math.ethz.ch 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. ___________________________________________________________ now. [[alternative HTML version deleted]]
You've asked the almost identical question yesterday. {that *de*creases the probability of getting help in some cases!} If you take a little effort and follow the posting guide (keywords "reproducible example"; "not using HTML in e-mails"), I (and many others) gladly will help you further. Martin Maechler, ETH Zurich>>>>> "nathaniel" == nathaniel Grey <nathaniel.grey at yahoo.co.uk> >>>>> on Fri, 20 Apr 2007 17:09:09 +0200 (CEST) writes:nathaniel> Hi, nathaniel> I need some help understanding the output from PAM. When I look at the output it doesn't list the cluster number by the median vlaues on each of the variables (like it does with k-means) Instead I have the following: nathaniel> So I know for instance cluster 1 has a mean for variable1 of 33.33, however when I run PAM i get: nathaniel> variable 1 variable2 nathaniel> 29 32 12 nathaniel> 97 12 9 nathaniel> 308 106 8 nathaniel> 217 62 2 nathaniel> Does 29 relate to cluster 1, and 97 to cluster2 etc. nathaniel> Hope this makes sense, nathaniel> Nathaniel nathaniel> ___________________________________________________________ nathaniel> [[alternative HTML version deleted]] nathaniel> ______________________________________________ nathaniel> R-help at stat.math.ethz.ch mailing list nathaniel> https://stat.ethz.ch/mailman/listinfo/r-help nathaniel> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html nathaniel> and provide commented, minimal, self-contained, reproducible code.
The question is not reproducable, therefore useless. Perhaps you are forgetting what a medoid is when you expect a mean? HTH, Ranjan On Fri, 20 Apr 2007 17:09:09 +0200 (CEST) nathaniel Grey <nathaniel.grey at yahoo.co.uk> wrote:> Hi, > > I need some help understanding the output from PAM. When I look at the output it doesn't list the cluster number by the median vlaues on each of the variables (like it does with k-means) Instead I have the following: > > So I know for instance cluster 1 has a mean for variable1 of 33.33, however when I run PAM i get: > variable 1 variable2 > 29 32 12 > 97 12 9 > 308 106 8 > 217 62 2 > > Does 29 relate to cluster 1, and 97 to cluster2 etc. > > Hope this makes sense, > > Nathaniel > > > ___________________________________________________________ > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. > > > ___________________________________________________________ > > now. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >