Re: [R-sig-eco] correlation between dissimilarity matrices
Hi Carlos Very briefly... you could look at rda() in vegan (not that in calibrate) partial and constrianed rda seems to be appropriate for your case. Maybe you should code a bit for controlling your nested stratification variable even if it is not very clear to me the nature of the data (sites vs location) I mean.. how exactly they are structured? best paolo Da: r-sig-ecology-boun...@r-project.org r-sig-ecology-boun...@r-project.org per conto di Carlos liuc...@hotmail.com Inviato: mercoledì 21 maggio 2014 20.57 A: r-sig-ecology@r-project.org Oggetto: [R-sig-eco] correlation between dissimilarity matrices Hello, I am working with two dissimilarity matrices containing dissimilarities in taxonomic community structure and environmental variables, respectively, between different sites. Those sites are grouped in three different locations. I know I can obtain the correlation between both matices by using a Mantel test. However, I would also like to know the correlation between both matrices after removing the effect of the dissimilarities between locations, i.e. only considering the dissimilarties within locations. How could I do it? Thank you very much, Carlos -- View this message in context: http://r-sig-ecology.471788.n2.nabble.com/correlation-between-dissimilarity-matrices-tp7578910.html Sent from the r-sig-ecology mailing list archive at Nabble.com. ___ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology ___ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
Re: [R-sig-eco] correlation between dissimilarity matrices
Hi Martin, Thank you very much for your answer. I prefer to introduce environmental variables in a dissimilarity matrix (b), not as a matrix with different columns being each column an environmental variable. I was testing with a partial Mantel test. I created a dissimilarity matrix (c) with zeros when dissimilarities were between sites of the same location and ones when dissimilarities were between sites of different locations. Then, the code would be: mantel.partial (a, b, c, method = pearson, permutations = n) Nevertheless, results do not seem correct. I will look into the other options you have recommended me, Best, Carlos -- View this message in context: http://r-sig-ecology.471788.n2.nabble.com/correlation-between-dissimilarity-matrices-tp7578910p7578913.html Sent from the r-sig-ecology mailing list archive at Nabble.com. ___ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
Re: [R-sig-eco] correlation between dissimilarity matrices
Thank you for your answer, I will also try using rda. I have two dissimilarity matrices representing distances between sites. Those sites belong to three different locations. I would like to find out if the correlation between both matrices is mainly promoted by the fact that dissimilarities between locations are correlated in both matrices (e.g. distances between sites from location A and B are high in both matrices), or on the contrary the correlation between both matrices occurs because dissimilarities within locations are correlated. Greetings, Carlos -- View this message in context: http://r-sig-ecology.471788.n2.nabble.com/correlation-between-dissimilarity-matrices-tp7578910p7578914.html Sent from the r-sig-ecology mailing list archive at Nabble.com. ___ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology