Skip to content

Adjusting for covariates with "formula = " in ancombc() #24

Answered by FrederickHuangLin
brynaR asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @brynaR,

Thanks for your interest in ANCOMBC!

Per your question, you can treat formula as specifying independent variables in a linear model (in log scale, though). Therefore, in your case, if the variable of interest is x4, and you specify formula = "x4 + period", it means you are trying to detect differentially abundant taxa with regards to x4 while adjusting period effect. As you can see, it does not matter whether the variable of interest specified in the formula is continuous or discrete. However, it is not the case when it comes to the test for structural zeros or the global test. For example, due to the definition of the global test (a taxon is differentially abundant in at leas…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@brynaR
Comment options

@FrederickHuangLin
Comment options

@brynaR
Comment options

@FrederickHuangLin
Comment options

Answer selected by FrederickHuangLin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants