# How to properly design formulas in Adonis ?

**URL:** https://forum.qiime2.org/t/how-to-properly-design-formulas-in-adonis/17996
**Category:** User Support
**Tags:** diversity, permanova, beta
**Created:** [January 8, 2021, 11:28am UTC](https://forum.qiime2.org/t/how-to-properly-design-formulas-in-adonis/17996 "2021-01-08T11:28:54Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![yanxianl](https://forum.qiime2.org/user_avatar/forum.qiime2.org/yanxianl/32/2039_2.png) [@yanxianl](https://forum.qiime2.org/u/yanxianl)
#### Post date: [January 9, 2021, 9:58am UTC](https://forum.qiime2.org/t/how-to-properly-design-formulas-in-adonis/17996/2 "2021-01-09T09:58:05Z")

</div>

Hi @Erwan,

> [@Erwan](#):
>
> What factors should be included in the formula ?

This depends on the question you want to answer from your data. Usually we include the factors we are interested or concerned in the model. You need to use your domain knowledge to decide which factors may affect your treatment effects and include them in the model.

> [@Erwan](#):
>
> When to use interaction terms ?

Usually it's good to include interaction terms in the model when you have more than one factor in your model. If you know for sure that Collection\_month does not interact with Treatment, you can just use the formula “Collection\_month + Treatment” . Otherwise, you probably should include the interaction term, using the formula "Collection\_month \* Treatment". If the interaction term is significant, it means your Treatment effect is depend on the Collection\_month. An example would be that your Treatment effect is stronger in Collection\_month A than Collection\_month B.

You can read this [blog post](https://statisticsbyjim.com/regression/interaction-effects/) regarding the interaction term in regression models.

---

_[View the full topic](https://forum.qiime2.org/t/how-to-properly-design-formulas-in-adonis/17996)._
