Repository navigation
adonis is deprecated: use adonis2 #641
jarioksa
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The next vegan release will deprecate
adonisin favour ofadonis2. Several CRAN packages have already adoptedadonis2(we have warned on this change since 2016 whenadonis2was released). There are still five CRAN packages that calladonis, but I have contacted their maintainers. For more details, see issue #523. Quick scanning found still more CRAN packages that useadonis, but they do not test those parts and are not caught in CRAN checks. However, these functions will not work correctly. I will have a closer look at these functions after vegan release.I urge all package maintainers to fix their packages and switch to
adonis2. Here an overview of needed changes:by = NULLinstead ofby = "terms". For the old result, you must explicitly setadonis2(..., by="terms"). See issue Consider changing the default toby = NULLorby = "margin"inadonis2()#677.adonis()toadonis2()calls.adonis2return object is essentially the same as theaov.tabelement ofadonis. Instead ofobject$aov.tabrefer only toobject.adonis2drops columnMeanSqsand has one column less (five instead of six), and you must adapt numerical indexing.SumsOfSqsis nowSumOfSqs, andF.Modelis nowF, and you may need to change named indexing.anova.ccathat inherits fromanovaordata.framewith attributes (as.data.frame(object)will drop theanovaattributes). They are essentially similar as return objects ofanova.ccaandpermutest.cca. There are no longer objects of class"adonis"nor specific methods for that vanished class.adonis2no longer returnscoefficients(for species) andcoef.sites. These were based on Euclidean distance, and are misleading (or plainly wrong) with any other dissimilarity (and the choice of dissimilarity did not influence these coefficients). See issue Extracting coefficients #640.All reactions