Skip to content

Using adonis()

2 messages · Leigh Fall, Gavin Simpson

#
On Mon, 2009-11-23 at 10:33 -0600, Leigh Fall wrote:
Why do you want the distribution? The column marked 'Pr(>F)' gives you
the permutation-derived 'p'-value that is, the proportion of the
permuted F's (including the observed) greater than or equal to the
observed F.
We can't run this as we don't have bc2 nor samples. Here is something we
can run (from ?adonis):
Call:
adonis(formula = dune ~ Management * A1, data = dune.env, permutations = 99) 

                    Df SumsOfSqs  MeanSqs  F.Model     R2 Pr(>F)   
Management     3.00000   1.46859  0.48953  3.26288 0.3416   0.01 **
A1             1.00000   0.44089  0.44089  2.93867 0.1026   0.03 * 
Management:A1  3.00000   0.58918  0.19639  1.30902 0.1370   0.26   
Residuals     12.00000   1.80036  0.15003          0.4188          
Total         19.00000   4.29902                   1.0000          
---
Signif. codes:  0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1
[,1]      [,2]      [,3]
[1,] 0.5435436 0.8537530 0.9314347
[2,] 1.3900990 0.5298171 1.5712973
[3,] 1.4157505 0.5383744 0.7451193
[4,] 1.5889761 0.3698395 0.8468100
[5,] 0.9508102 0.2316184 0.7575177
[6,] 1.0072180 0.6972496 0.7375206
[1] 99

Here we have a model with 3 covariates (Management, A1, and their
interaction. Component 'f.perms' is the matrix of F.Model for the 99
permutations (rows) for the 3 covariates (columns). So the permutation F
distribution for Management is in mod$f.perms[,1], e.g.
Does that help?

G