Re: [R] Questions on Mahalanobis Distance

2010-01-30 Thread Robert Lonsinger
I have been able to implement the Mahalanobis distance function, and I have also been able to generate code that computes the mahalanobis distance calculations. Both have resulted in the same results, though these results differ from the true results. I believe my problem is in the formulation of

Re: [R] Questions on Mahalanobis Distance

2010-01-30 Thread Sarah Goslee
If the goal is to *use* the Mahalanobis distance, rather than to learn how to write your own code, there are several existing implementations. rseek.org is a good place to find functions. Sarah On Fri, Jan 29, 2010 at 9:48 PM, Robert Lonsinger wrote: > Hello, > I am a new R user and trying to le

[R] Questions on Mahalanobis Distance

2010-01-29 Thread Robert Lonsinger
Hello, I am a new R user and trying to learn how to implement the mahalanobis function to measure the distance between to 2 population centroids. I have used STATISTICA to calculate these differences, but was hoping to learn to do the analysis in R. I have implemented the code as below, but my re