[R-sig-eco] Adonis output with or without strata
Gaëlle Quere
g@e||equere @end|ng |rom hotm@||@com
Fri Apr 10 15:38:47 CEST 2020
Hi Jakob,
Thank you for your time and useful answers. I had tried to include Island as a fixed factor earlier and had a significant result for both factors. I got confused on how to interpret this output.
I was interested in the difference between Healthy and Diseased but Island had an effect too so I thought: should I test the interaction factor then? Also, what does it tell me about which of Island or Disease has the most influence etc. this sort of questions. Since we are here and if you have time, maybe we could go through it.
I ran this model:
adonis <- adonis(dist ~ Island + Dis, data = meta)
and obtained this output:
Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
Island 1 0.9302 0.93024 2.6688 0.18269 0.001 ***
Dis 1 0.6759 0.67592 1.9392 0.13275 0.002 **
Residuals 10 3.4856 0.34856 0.68456
Total 12 5.0918 1.00000
Q1: Does the model test the effect of Island within the Healthy group and the Diseased group separately or does it test an Island effect on the whole data set?
Q2: If I visualize my data using an NMDS, there is a clear separation of the Healthy and Diseased groups (see pdf enclosed) meaning that healthy samples are “closer” to each other than diseased samples from the same island? but now the adonis seems to say that Island has a strong effect too. How do I distinguish between the two factors, how do I know which factor has the “strongest effect” on the microbiomes?
Cheers,
Gaëlle
________________________________
De : Jakob Russel <russel2620 using gmail.com>
Envoyé : vendredi 10 avril 2020 10:04
À : Gaëlle Quere <gaellequere using hotmail.com>
Objet : Re: Adonis output with or without strata
Dear Gaëlle,
I have just received your email through r-sig-ecology, so it seems to have passed through.
Q1:
Yes, your model tests whether the microbiomes of Healthy and Diseased algae are different, regardless of island. (Under the assumption that the Bray-Curtis dissimilarity captures this difference in microbiome composition)
Q2:
If you are not interested in the islands, I would say your model is correct. You could try to include islands as a fixed effect to see the effect size, but if you have a balanced experimental design it will not affect the Dis factor. If your design is unbalanced the order matters and you should add the island as the first fixed effect adonis <- adonis(dist ~ Island + Dis, data = meta).
Regards,
Jakob
Den fre. 10. apr. 2020 kl. 11.28 skrev <gaellequere using hotmail.com<mailto:gaellequere using hotmail.com>>:
Dear Jakob,
Sorry for sending a private email. I tried to reply directly on the forum but it keeps getting rejected and I don't understand why.
Here was my answer:
Dear Jakob,
Thank you for your prompt reply. May I take the opportunity to ask two related additional questions?
As mentioned in my first post, my research question is to compare microbiomes depending on health status of the host algae (Healthy vs Diseased). Healthy and diseased samples were collected in different islands.
So far, this is the model I have been using to answer my research question:
Variable: Bray-Curtis dissimilarity matrix (dist)
Fixed factor: Disease (Dis)
Random factor: Island
adonis<- adonis(dist ~ Dis, strata = Island, data = meta)
Q1: If I understood correctly, this model compares Healthy and Diseased samples within each island, is that correct? The p-value being significant, does it mean that Healthy and Diseased samples are different within each island or can I make a general statement like: overall Healthy and Diseased microbiomes are different regardless of the island. In other words, microbiomes associated with diseased samples share significant similarities among island and are distinct from healthy samples?
Q2: Is my model correct or should I consider Island as a fixed factor and consider potential interactions as well in order to test the effect of both Island and Dis on the microbiomes?
Thanks once more,
Gaëlle
<quote author='Jakob Russel'>
Dear Gaëlle,
The p-values in PERMANOVA are generated by permutations. These permutations
are by default free, but they can be constrained by the strata factor.
The strata argument only affects the permutations, and hence will only
affect the p-value.
The Sum of Squares (and R2) are only based on the fixed effects.
Regards,
Jakob
Den fre. 10. apr. 2020 kl. 09.42 skrev Gaëlle Quere <GaelleQUERE using hotmail.com<mailto:GaelleQUERE using hotmail.com>
>:
> Dear list members,
>
> I am having trouble understanding the output of an adonis model I am
> running first with then without the argument “strata” in the formula. I
> have seen this question asked before but no answer were provided.
>
> I would like to compare microbial communities associated with healthy and
> diseased reef algae. Healthy and diseased algae have been collected in
> different islands. I am more interested in the difference between the
> Healthy and Diseased groups, I am not really interested in comparing the
> islands but still would like to take the islands into account. From what I
> read it looks like a way to do it is to include Island as a random factor
> in my model.
>
> Variable: Bray-Curtis dissimilarity matrix (dist)
>
> Fixed factor: Disease (Dis)
>
> Random factor: Island
>
> adonis1<- adonis(dist ~ Dis, strata = Island, data = meta)
>
> adonis2<- adonis(dist ~ Dis, data = meta)
>
>
>
> However, I get the exact same output for both models:
>
> Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
>
> Dis_status 1 0.8934 0.89345 1.9845 0.0397 0.001 ***
> Residuals 48 21.6103 0.45021 0.9603
> Total 49 22.5038 1.0000
> ---
>
>
> I tried with a subset and I had the same output besides a different
> p-value.
>
>
>
> Could someone please explain to me why the outputs are identical?
>
>
>
> I am sorry if that sounds trivial but but I don’t really understand why
> R2, SumsOfSqs and MeanSqs are exactly identical with or without the strata
> argument. I’d like to understand better what’s behind it.
>
>
> Thanks a lot,
>
> Gaelle
>
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology using r-project.org<mailto:R-sig-ecology using r-project.org>
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>
[[alternative HTML version deleted]]
_______________________________________________
R-sig-ecology mailing list
R-sig-ecology using r-project.org<mailto:R-sig-ecology using r-project.org>
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
</quote>
Quoted from:
http://r-sig-ecology.471788.n2.nabble.com/Adonis-output-with-or-without-strata-tp7580521p7580522.html
_____________________________________
Sent from http://r-sig-ecology.471788.n2.nabble.com
More information about the R-sig-ecology
mailing list