Skip to content

Adonis and nmds help and questions for a novice.

4 messages · Ashley Houlden, Gavin Simpson, Sarah Goslee

#
On Tue, 2011-10-04 at 08:45 +0000, Ashley Houlden wrote:
You can isolate the effects due to different permutations being used by
setting a seed via set.seed().

As ?adonis says, sequential sums of squares are used. If there is
imbalance in your design it isn't surprising that the results are not
invariant to the ordering of terms in the formula.
Not 100% sure what you mean by nested, but adonis() uses the full
functionality of R's formula interface. See The R manual for details
or ?formula. ?adonis also has details of how you might test a nested
design in the Details section - this might not be what you want but it
does allow you to test for an effect of one variable by conditioning the
permutations on another.
The permutation test, test at the level of the factor, not pairwise
comparisons of the levels within the factor. So you get information on
Soil, not on Clay, Sand, Loam levels. This is the same as you would get
if you did anova(mod) where mod was a linear model with a factor
predictor.

betadisper() the sister function to adonis() which tests for differences
of multivariate dispersions, not differences of multivariate means, does
allow the sorts of pairwise tests you are thinking of, but we haven't
implemented this in adonis yet I'm afraid.

HTH

G

        

  
    
#
On Tue, 2011-10-04 at 08:45 +0000, Ashley Houlden wrote:
<snip />
In addition, you don't necessarily need ecodist for the bray curtis
distance. vegdist() in vegan will compute this for you.

Not that there is anything wrong with ecodist I hasten to add - just
that you can do this all in vegan if you wanted.

G

  
    
#
On Tue, Oct 4, 2011 at 4:41 PM, Gavin Simpson <gavin.simpson at ucl.ac.uk> wrote:
Because ecodist is awesome. :) But there's no need to mix and match; vegan
and ecodist do many of the same things (for historical reasons).

Sarah