PERMANOVA effect size for each factor with adonis2 #709
-
Hi, I was able to see individual effect sizes before without by="margin" but not anymore. Not sure if this is R version thing (I'm running 4.4.1 currently) or a change with vegan itself (I'm running 2.6-8). Thanks! Current output with marginal PERMANOVA (for context if needed) adonis2(formula = dune ~ Management + A1, data = dune.env, permutations = 99, by = "margin")
# Df SumOfSqs R2 F Pr(>F)
# Management 3 1.1865 0.27600 2.4828 0.01
# A1 1 0.4409 0.10256 2.7676 0.02
# Residual 15 2.3895 0.55583
# Total 19 4.2990 1.00000 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In vegan prior to 2.6-8, If you want to have statistics See the release NEWS for vegan 2.6-8:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, adding Including the output here for anyone reading this later.
adonis2(formula = dune ~ Management * A1, data = dune.env, permutations = 99)
adonis2(formula = dune ~ Management * A1, data = dune.env, permutations = 99, by = "terms") |
Beta Was this translation helpful? Give feedback.
In vegan prior to 2.6-8,
adonis2
default wasby = "terms"
.adonis2
(oradonis
) never had a defaultby = "margin"
, but the tests were sequential.If you want to have statistics
by = "margin"
, you must request testsby = "margin"
. There is no way of getting marginal effects without running an analysis using marginal effects. There never was.See the release NEWS for vegan 2.6-8:
adonis2()
now defaults to running an omnibus test of the model (by = NULL
) instead of a sequential test of model terms (by = "terms"
). This makesadonis2()
more consistent with the default for related ordination methods. See #677.