adonis.II | R Documentation |
This function is a wrapper to adonis
but performs type II tests (whereas adonis
performs type I).
adonis.II(formula, data, ...)
formula |
a typical model formula such as |
data |
the data frame from which |
... |
additional arguments to |
See adonis
for detailed explanation of what is done. The only difference with adonis
is that adonis.II
performs type II tests instead of type I.
a data frame of class "anova"
.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
require(vegan)
data(dune)
data(dune.env)
# Compare:
adonis(dune~Management*A1,data=dune.env,permutations=99)
adonis(dune~A1*Management,data=dune.env,permutations=99)
# With:
adonis.II(dune~Management*A1,data=dune.env,permutations=99)
adonis.II(dune~A1*Management,data=dune.env,permutations=99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.