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
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-
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
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
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
: 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
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
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
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
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.
___
10 matches
Mail list logo