[R-sig-eco] partial Mantel test
Gavin Simpson
gavin.simpson at ucl.ac.uk
Tue Jun 7 15:05:53 CEST 2011
On Tue, 2011-06-07 at 07:46 -0500, Iannone, Basil wrote:
> Dear r users,
>
> I have a very quick and probably very easy question pertaining to the
> conducting of a partial Mantel test in the vegan package using the code
> below.
>
> mantel.partial(xdis, ydis, zdis, method = "pearson", permutations = 999,
> strata)
>
> So I want to test for a relationship between a species distance matrix A and
> an environmental distance matrix B while controlling for (considering the
> effects of) a third distance matrix C.
>
> So what I need to know is if I am correct in my understanding that using the
> above code I would enter A as "xdis," B as "ydis," and C (the extra matrix
> that I want to control for) as "zdis."
Yes, that is correct - at least to my reading of the help page and the
code.
HTH
G
> Could someone please tell me if I am correct and if I am not please let me
> know how to specify the matrices correctly.
>
> Thanks for the help,
>
>
>
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-sig-ecology
mailing list