-
In case of testing for interactions between two factors which one to use? anosim() or adonis2()? I got the same results when I ran adonis2() or anosim() but for interaction both gave different results? my codes
many thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@jarioksa Dear Jari, |
Beta Was this translation helpful? Give feedback.
anosim
gives you only the overall test. It doesn't test separately main effects and interaction, but they are all pooled together into one overall test. Theinteraction()
does not give you interactions after main effects but effects of all terms together, including main effects. Similar analysis can be found inadonis2
with argumentby = NULL
which assesses all terms together. This is not a particular design feature in vegan but that is how linear algebra works. If you want to get specifically main effects and interaction, you should useadonis2
(in general, it is always better to useadonis2
thananosim
).