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