[R] cluster with mahalanobis distance

David L Carlson dcarlson at tamu.edu
Thu May 31 16:23:16 CEST 2012


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: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Maria Froes
> Sent: Wednesday, May 30, 2012 6:42 PM
> To: r-help at r-project.org
> 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]]
> 
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list