MAC: Run the main analysis.

View source: R/MAC.R

MACR Documentation

Run the main analysis.

Description

Run the main analysis.

Usage

MAC(HA, multi = T, decor = T, hybrd = T, mc = 5, fdr = F, sig_cut = 0.1)

Arguments

HA

The dataset, can be obtained by running sim_mediation_data.

multi

Apply the multivariate approach or not, default=true.

decor

Apply the decorrelation approach or not, default=true.

hybrd

Apply the hybrid approach or not, default=true.

mc

Number of cores for parallel computing, default=5.

fdr

Apply FDR correction in the final result or not, default=false.

sig_cut

The significance level (alpha), default=0.1.

Examples

HA=sim_mediation_data(hypo="HA",mm=0.1,vv=0.1,sm=10)
annoR=MAC(HA)

roqe/MACtest documentation built on Aug. 6, 2023, 9:53 a.m.