Re: [R] Comparing two matrices

2009-03-04 Thread Stéphane Dray
matel.rtest accepts both Euclidean and non Euclidean matrices. If both distance matrices are Euclidean, then a faster algorithm is used to speed up the permutation procedure. You can also use mantel.randtest which is exactly similar to rtest but faster as computation are in C. Sarah Goslee wrot

Re: [R] Comparing two matrices

2009-03-03 Thread Sarah Goslee
Hi, For the Mantel test, your matrices do not need to be Euclidean, but they do need to be symmetric. You could write a similar test that does not require a symmetric matrix, though. Sarah On Tue, Mar 3, 2009 at 11:40 AM, Koen Hufkens wrote: > Hi List, > > I would like to compare two (confusion

[R] Comparing two matrices

2009-03-03 Thread Koen Hufkens
Hi List, I would like to compare two (confusion) matrices. I ended up with the ade4 mantel.rtest function as my best option. However it seems that my data is non-euclidean in nature (is.euclid gives a FALSE). I attached both matrices at the end of the document. Are there any tools to tran