Re: [R] Mahalanobis Distance

2011-09-27 Thread jorgeA
Hello David(s), First of all, thank you for your help. I was running some tests, and I wish to know if I have correctly understood your explanation. Well, when I use rbind(), I get the variables binded by row, and when I use cbind() I get the variables binded by column. The dist() function, as t

Re: [R] Mahalanobis Distance

2011-09-26 Thread jorgeA
Hello David, Thank you for the help anyway. Well answering your question "However, I wonder how much value there is to computing the Mahalanobis distance with two variables that are measured on such different scales?": These two variables are subseries of the same time series. What I'm doing is u

[R] Mahalanobis Distance

2011-09-26 Thread jorgeA
Hello R helpers, I'm trying to use Mahalanobis distance to calculate distance of two time series, to make some comparations with euclidean distance, DTW, etc, but I'm having some dificults. I have, for example, two objects: s.1 <- c( 5.6324702, 1.3994353, -3.2572327, -3.8311846, -1.2248719, 0.