# NOT RUN {
data(phy); data(cla); data(ord); data(fam); data(clin)
otu_tabs <- list(Phylum = phy, Class = cla, Order = ord, Family = fam)
set <- tidy_micro(otu_tabs = otu_tabs, clinical = clin) %>%
filter(day == 7) ## Only including first week
# }
# NOT RUN {
bb_phy <- set %>%
## Filtering out low abundance and unclassified taxa
## These models will either break or we don't care about them
otu_filter(prev_cutoff = 5, ra_cutoff = 0.1,
exclude_taxa = c("Unclassified", "Bacteria")) %>%
## Beta binomial models for each Family of taxa with bpd1 as a covariate
bb_mods(table = "Phylum", bpd1, CI_method = "wald")
names(bb_phy)
bb_phy$Estimate_Summary
# }
Run the code above in your browser using DataLab