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

View source: R/RcppExports.R

sobelTest_unordR 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_unord(
  mu1,
  sig1,
  mu2,
  sig2,
  mu3,
  sig3,
  mu4,
  sig4,
  mu2b,
  sig2b,
  mu4b,
  sig4b,
  sig12 = 0L,
  sig12b = 0L,
  sig13 = 0L,
  sig14 = 0L,
  sig14b = 0L,
  sig22b = 0L,
  sig23 = 0L,
  sig24 = 0L,
  sig24b = 0L,
  sig2b3 = 0L,
  sig2b4 = 0L,
  sig2b4b = 0L,
  sig34 = 0L,
  sig34b = 0L,
  sig44b = 0L,
  indL = 1L,
  mu1_0 = 0,
  mu2_0 = 0,
  mu3_0 = 0,
  mu4_0 = 0,
  mu2b_0 = 0,
  mu4b_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 response.

sig2

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

mu3

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

sig3

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

mu4

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

sig4

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 response.

sig2b

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

mu4b

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

sig4b

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.

sig14

Value of the covariance between mu1 and mu4.

sig14b

Value of the covariance between mu1 and mu4b.

sig22b

Value of the covariance between mu1 and mu2b.

sig23

Value of the covariance between mu2 and mu3.

sig24

Value of the covariance between mu2 and mu4.

sig24b

Value of the covariance between mu2 and mu4b.

sig2b3

Value of the covariance between mu2b and mu3.

sig2b4

Value of the covariance between mu2b and mu4.

sig2b4b

Value of the covariance between mu2b and mu4b.

sig34

Value of the covariance between mu3 and mu4.

sig34b

Value of the covariance between mu3 and mu4b.

sig44b

Value of the covariance between mu4 and mu4b.

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.

mu4_0

Null value for mu4.

mu2b_0

Null value for mu2b.

mu4b_0

Null value for mu4b.

Value

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

Examples

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

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