med.test: med.test : The Sobel mediation test

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
med.test(mv, iv, dv, cof = NULL)

Arguments

mv

The mediator variable (aka M)

iv

The independant variable (aka X)

dv

The dependent variable (aka Y)

cof

cofacteur

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.