Perform_HTMMIOW: Perform HT-MMIOW

View source: R/HTMMIOW.R

Perform_HTMMIOWR Documentation

Perform HT-MMIOW

Description

This function performs HT-MMIOW on user-provided exposure, outcome, confounder, and mediator data.

Usage

Perform_HTMMIOW(
  exposure,
  outcome,
  confounder = NULL,
  mediator,
  umapcomponents = 2,
  B = 2000
)

Arguments

exposure

vector of exposure variable

outcome

vector of outcome variable

confounder

matrix of relavant covariates

mediator

matrix of integers that represent abundance

umapcomponents

number of components for UMAP to reduce to

B

number of replicates for hypothesis test

Value

A list of observed test statistic, p-value, and test statistics under the null hypothesis

Examples

Perform_HTMMIOW(exposure = sim_data$sim_exposure,
outcome = sim_data$sim_outcome,
mediator = sim_data$sim_microbiome,
umapcomponents = 2)

yukamoro/HTMMIOW documentation built on May 5, 2022, 6:47 a.m.