Use distance() in package ecodist to compute the mahalanobis distance matrix
and pass that to hclust(). 

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352

> -----Original Message-----
> From: [email protected] [mailto:r-help-bounces@r-
> project.org] On Behalf Of Maria Froes
> Sent: Wednesday, May 30, 2012 6:42 PM
> To: [email protected]
> Subject: Re: [R] cluster with mahalanobis distance
> 
> How can I perform cluster analysis using the mahalanobis distance
> instead of
> 
> the euclidean distance?
> 
> 
> 
> Thank you
> 
> Maria Froes
> 
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> [email protected] 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.

______________________________________________
[email protected] 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