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

Adonis - how to calc the Sums of Squares using the Adonis output #439

Open
MatS792 opened this issue Sep 27, 2021 · 1 comment
Open

Adonis - how to calc the Sums of Squares using the Adonis output #439

MatS792 opened this issue Sep 27, 2021 · 1 comment

Comments

@MatS792
Copy link

MatS792 commented Sep 27, 2021

Hi all,
is there a way to get from the Adonis() function a matrix that contain the Sums of Squares or other values that are involved in the R squared calculation ?
I am trying to compare the "variance explained" by two adonis calculated on the same matrix distance but with different grouping strategy.
In other words:
matrix.dist is calculated before running adonis.
grouping_1 is the column within my_dataset with one type of grouping.
grouping_2 is the column within my_dataset with an other type of grouping.
The function I used:
adonis1 <- adonis(matrx.dist ~ grouping_1, data = my_dataset, na.action = FALSE, perm = 9999)
adonis2 <- adonis(matrx.dist ~ grouping_2, data = my_dataset, na.action = FALSE, perm = 9999)

Checking within adonis1 (for example), I found coef.sites which potentially could be the matrix that I'm looking for but I am not sure if coef.sites is the right one.
Can you help me?

@jarioksa
Copy link
Contributor

jarioksa commented Nov 3, 2021

The adonis2 (the currently supported version) has column SumOfSqs in its output. This stands for "sums of squares". Did you ask about this? If you mean something else, please explain. [Checked in the current release 2.5-7 and the latest development version 2.6-0.]

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