Re: [R] cluster with mahalanobis distance

2012-05-31 Thread David L Carlson
t; From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Maria Froes > Sent: Wednesday, May 30, 2012 6:42 PM > To: r-help@r-project.org > Subject: Re: [R] cluster with mahalanobis distance > > How can I perform cluster analysis using the mahal

Re: [R] cluster with mahalanobis distance

2012-05-30 Thread Maria Froes
How can I perform cluster analysis using the mahalanobis distance instead of the euclidean distance? Thank you Maria Froes [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

Re: [R] cluster with mahalanobis distance

2010-03-04 Thread Friedrich Leisch
Model-based clustering, e.g. using package mclust will do what you want: it uses normal densities to calculate similarities of objects to clusters, which is a monotone transformation of Mahalanobis distance (basically what's inside the exp() of the multivariate Gaussian density). If you believe

Re: [R] cluster with mahalanobis distance

2010-03-03 Thread Phil Spector
Albyn - That's a very important fact that I overlooked in my original response. Thanks for pointing it out. - Phil On Wed, 3 Mar 2010, Albyn Jones wrote: Note: this procedure assumes that all clusters have the same covariance matrix. alby

Re: [R] cluster with mahalanobis distance

2010-03-03 Thread Albyn Jones
Note: this procedure assumes that all clusters have the same covariance matrix. albyn On Wed, Mar 03, 2010 at 01:23:37PM -0800, Phil Spector wrote: > The manhattan distance and the Mahalanobis distances are quite different. > One of the main differences is that a covariance matrix is necessary

Re: [R] cluster with mahalanobis distance

2010-03-03 Thread Ravi Varadhan
: Phil Spector Date: Wednesday, March 3, 2010 4:24 pm Subject: Re: [R] cluster with mahalanobis distance To: Tal Galili Cc: r-help@r-project.org, naama > The manhattan distance and the Mahalanobis distances are > quite different. One of the main differences is that > a covariance matrix

Re: [R] cluster with mahalanobis distance

2010-03-03 Thread Phil Spector
The manhattan distance and the Mahalanobis distances are quite different. One of the main differences is that a covariance matrix is necessary to calculate the Mahalanobis distance, so it's not easily accomodated by dist. There is a function in base R which does calculate the Mahalanobis dist

Re: [R] cluster with mahalanobis distance

2010-03-03 Thread Tal Galili
I am sorry, After further inspection I fear my last answer was not correct, please ignore it - and let's wait for other responders. Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili

Re: [R] cluster with mahalanobis distance

2010-03-03 Thread Tal Galili
when you create the distance function to put into the hclust, use: dist(x, method = "manhattan") Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatisti

[R] cluster with mahalanobis distance

2010-03-03 Thread naama
How can I perform cluster analysis using the mahalanobis distance instead of the euclidean distance? thank you Naama Wolf -- View this message in context: http://n4.nabble.com/cluster-with-mahalanobis-distance-tp1577038p1577038.html Sent from the R help mailing list archive at Nabble.com. ___