knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

MiAF

The goal of MiAF is to test for overall association between the composition of a microbial community and a host phenotype of interest (e.g. disease status) with/without covariate adjustments. In this package, we construct a novel community-level test, named MiAF, by adaptively combining p-values from OTU-level (univariate) tests.

Installation

library(devtools)
install_github("songbiostat/MiAF")

Arguments

Values

Example

library(MiAF)
library(GUniFrac)
data(throat.otu.tab)
data(throat.meta)
data(throat.tree)

y <- as.numeric(throat.meta$SmokingStatus == 'Smoker')
gender <- as.numeric(throat.meta$Sex == 'Female')
zcov <- as.matrix(gender)
MiAF(Y = y, X = throat.otu.tab, tree = throat.tree, cov = zcov, model = "binomial", n.perm = 999)


songbiostat/MiAF documentation built on Feb. 18, 2022, 10:29 p.m.