Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider changing the default to by = NULL or by = "margin" in adonis2() #677

Closed
gavinsimpson opened this issue Aug 13, 2024 · 2 comments
Closed

Comments

@gavinsimpson
Copy link
Contributor

The default permutation test in adonis2() is by = "terms" for a sequential test of model terms where order of terms can matter. I appreciate that this was the default (and only option in adonis()?) but it really isn't very useful in many situations that ecologists will be using adonis2() for (observational data).

by = "margin" would be better if you want a test of model terms by default. by = NULL would be more consistent with the anova() methods for rda(), cca(), etc.

I think we should change this to do the statistically better thing at the expense of backwards "compatability" with adonis().

@jarioksa
Copy link
Contributor

Personally I think that by = "terms" is statistically more correct than by = "margin": single terms sum up to total in sequential tests, but not in marginal tests. I only added that alternative to get rid of whining. That said, I agree with changing the default, but I'd prefer by = NULL.

gavinsimpson added a commit to gavinsimpson/vegan that referenced this issue Aug 16, 2024
gavinsimpson added a commit to gavinsimpson/vegan that referenced this issue Aug 16, 2024
gavinsimpson added a commit to gavinsimpson/vegan that referenced this issue Aug 16, 2024
…quential tests as that was what was being tested prior to changes in vegandevs#677
gavinsimpson added a commit to gavinsimpson/vegan that referenced this issue Aug 16, 2024
…quential tests as that was what was being tested prior to changes in vegandevs#677
gavinsimpson added a commit that referenced this issue Aug 16, 2024
…ial test to an omnibus test

(cherry picked from commit a6b45f5)
gavinsimpson added a commit that referenced this issue Aug 16, 2024
gavinsimpson added a commit that referenced this issue Aug 16, 2024
…quential tests as that was what was being tested prior to changes in #677

(cherry picked from commit 51daf9f)
gavinsimpson added a commit that referenced this issue Aug 16, 2024
…quential tests as that was what was being tested prior to changes in #677

(cherry picked from commit 23ed9d0)
@gavinsimpson
Copy link
Contributor Author

This is now implemented in the master branch and in the cran-2.6-6 branches.

gavinsimpson added a commit that referenced this issue Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants