View source: R/doKruskalWallisTest.R
| doKruskalWallisTest | R Documentation |
Do Kruskal-Wallis Test Taxa and Multiple Groups
doKruskalWallisTest( x, sample_group = NULL, adj_method = "BH", effect_size = TRUE, ... )
x |
A phyloseq object |
sample_group |
Variable in |
adj_method |
One of "holm", "hochberg", "hommel",
"bonferroni", "BH", "BY", "fdr", "none". Default="BH".
For more information see
|
effect_size |
Logical. Default is TRUE. Calculates effect size for
Kruskal-Wallis test using
|
... |
Additional parameters that are passed on to
|
Performs Kruskal-Wallis Test one or multiple levels and
is a wrapper using kruskal_test,
adjust_pvalue and
add_significance for an
input phyloseq object. Useful for comparing
large number of taxa between groups.
A tibble.
Sudarshan A. Shetty
kruskal_test
kruskal_effsize
library(biomeStats)
library(phyloseq)
library(microbiome)
library(dplyr)
data("FuentesIliGutData")
ps.rel <- microbiome::transform(FuentesIliGutData, "compositional")
ps.rel <- core(ps.rel, detection=0.001, prevalence=50/100)
kw_results <- doKruskalWallisTest(ps.rel,
sample_group = "ILI",
adj_method = "BH",
effect_size = TRUE)
print(kw_results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.