sobelTest_ord: Sobel test for the indirect effect - Two ordered mediator...

View source: R/RcppExports.R

sobelTest_ordR Documentation

Sobel test for the indirect effect - Two ordered mediator path

Description

This function takes the parameter estimates and covariances and performs the Sobel test for two ordered mediators.

Usage

sobelTest_ord(
  mu1,
  sig1,
  mu2,
  sig2,
  mu3,
  sig3,
  mu2b = 0L,
  sig2b = 0L,
  mu3b = 0L,
  sig3b = 0L,
  sig12 = 0L,
  sig12b = 0L,
  sig13 = 0L,
  sig13b = 0L,
  sig22b = 0L,
  sig23 = 0L,
  sig23b = 0L,
  sig2b3 = 0L,
  sig2b3b = 0L,
  sig33b = 0L,
  indL = 1L,
  mu1_0 = 0,
  mu2_0 = 0,
  mu3_0 = 0,
  mu2b_0 = 0,
  mu3b_0 = 0
)

Arguments

mu1

Value of the estimate of the independent variable on the first mediator.

sig1

Value of the variance of the estimate of the independent variable on the first mediator.

mu2

Value of the estimate of the first mediator on the second mediator.

sig2

Value of the variance of the estimate of the first mediator on the second mediator.

mu3

Value of the estimate of the second mediator on the response.

sig3

Value of the variance of the estimate of the second mediator on the response.

mu2b

Value of the estimate of the effect of the interaction of the independent and first mediator variable on the second mediator.

sig2b

Value of the variance of the estimate of the effect of the interaction of the independent and first mediator variable on the second mediator.

mu3b

Value of the estimate of the effect of the interaction of the independent and second mediator variable on the response.

sig3b

Value of the variance of the estimate of the effect of the interaction of the independent and second mediator variable on the response.

sig12

Value of the covariance between mu1 and mu2.

sig12b

Value of the covariance between mu1 and mu2b.

sig13

Value of the covariance between mu1 and mu3.

sig13b

Value of the covariance between mu1 and mu3b.

sig22b

Value of the covariance between mu2 and mu2b.

sig23

Value of the covariance between mu2 and mu3.

sig23b

Value of the covariance between mu2 and mu2b.

sig2b3

Value of the covariance between mu2b and mu3.

sig2b3b

Value of the covariance between mu2b and mu3b.

sig33b

Value of the covariance between mu3 and mu3b.

indL

Value indicating the value of the independent variable used for the interaction. Typically 1.

mu1_0

Null value for mu1.

mu2_0

Null value for mu2.

mu3_0

Null value for mu3.

mu2b_0

Null value for mu2b.

mu3b_0

Null value for mu3b.

Value

A p-value for the test for the indirect effect.

Examples

sobelTest_ord(1, .1, .25, .01, 0, 0, .15, .01, 0, 0)

ieTest documentation built on April 12, 2025, 1:49 a.m.