DA.abc | R Documentation |
Implementation of ANCOM-BC for DAtest
DA.abc( data, predictor, covars = NULL, out.all = NULL, p.adj = "fdr", coeff = 2, allResults = FALSE, ... )
data |
Either a matrix with counts/abundances, OR a |
predictor |
The predictor of interest. Either a Factor or Numeric, OR if |
covars |
Either a named list with covariables, OR if |
out.all |
If TRUE, will run global test which will produce one p-value for the |
p.adj |
Character. P-value adjustment. Default "fdr". See |
coeff |
Integer. The beta coefficient and p-value will be associated with this coefficient. This coefficient is by default compared to the intercept (1. level of |
allResults |
If TRUE will return raw results from the |
... |
Additional arguments for the |
A data.frame with with results.
# Creating random count_table and predictor set.seed(4) mat <- matrix(rnbinom(200, size = 0.1, mu = 500), nrow = 20, ncol = 10) rownames(mat) <- 1:20 pred <- c(rep("Control", 5), rep("Treatment", 5)) # Running ANCOM-BC res <- DA.abc(data = mat, predictor = pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.