PerformUnivarTest: Main function to perform classical univariate analysis.

View source: R/general_anal.R

PerformUnivarTestR Documentation

Main function to perform classical univariate analysis.

Description

This functions performs classical univariate analysis on the normalized microbiome data.

Usage

PerformUnivarTest(mbSetObj, variable, p.lvl, shotgunid, taxrank, statOpt)

Arguments

mbSetObj

Input the name of the mbSetObj.

variable

Character, input the name of the experimental factor.

p.lvl

Numeric, input the adjusted p-value cutoff.

shotgunid

If 16S, it is set to "NA".

taxrank

Character, input the taxonomic level to perform univariate analysis.

statOpt

Character, input "nonpar" to use non-paramentric tests including Mann-Whitney for two-group comparisons or Kruskall-Wallis for multiple group comparisons. Input "tt" to use parametric tests including T-tests for two-group comparisons and ANOVA for multiple group comparisons.

datatype

Character, input whether the data is marker gene data ("16S") or metagenomic data ("metageno").

Author(s)

Jeff Xia jeff.xia@mcgill.ca McGill University, Canada License: GNU GPL (>= 2)


xia-lab/MicrobiomeAnalystR documentation built on Sept. 7, 2024, 1:26 p.m.