sob.parallel: sob.parallel : The Sobel mediation test for high dimension

Description Usage Arguments Details Value

View source: R/mediation.R

Description

To compute statistics and p-values for the Sobel test. Results for three versions of "Sobel test" are provided: Sobel test, Aroian test and Goodman test. Function adapt from package "bda". (for covariable)

Usage

1
sob.parallel(X, Y, M, conf = NULL, nb.core = 2)

Arguments

X

exposure

Y

outcome

M

methylation matrix

conf

latent factors

nb.core

number of core used (parallel)

Details

To test whether a mediator carries the influence on an IV to a DV. Missing values are not allowed.

Value

pValue et score for Sobel test, Aroian test and Goodman test.


jumentib/useFonc documentation built on Nov. 18, 2019, 3:17 p.m.