PerformPartialCorr: Perform Partial Correlation Analysis

View source: R/general_multivar.R

PerformPartialCorrR Documentation

Perform Partial Correlation Analysis

Description

Function to perform and plot partial correlations between all taxonomic features, the outcome, and selected confounders. NOTE: All metadata must be numeric

Usage

PerformPartialCorr(
  mbSetObj,
  taxa.lvl = "Phylum",
  variable = NA,
  alg = "pearson",
  pval.cutoff = 0.05
)

Arguments

mbSetObj

Input the name of the mbSetObj.

taxa.lvl

Character, input the taxonomic level to perform partial correlation analysis.

variable

Character, input the selected variable.

alg

Use "kendall" or "spearman" for non-parametric and "pearson" for parametric.


xia-lab/MicrobiomeAnalystR documentation built on April 17, 2024, 7:45 p.m.