Skip to content

How to set different control/reference groups? #55

Discussion options

You must be logged in to vote

Hi @maximus-sci,

Suppose you have 4 groups, A, B, C, and D, and you are interested in the comparison of C vs. D. A quick and easy way is probably to subset the data to contain only C and D, and then perform ANCOMBC. A sample code would like

sub_data = data %>% filter (group %in% c("C", "D"))

Hope it helps,
Huang

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@maximus-sci
Comment options

@FrederickHuangLin
Comment options

Answer selected by maximus-sci
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