Learn R Programming

robmed (version 0.6.0)

summary.test_mediation: Summary of results from (robust) mediation analysis

Description

Summarize results from (robust) mediation analysis for proper interpretation.

Usage

# S3 method for boot_test_mediation
summary(object, type = c("boot", "data"),
  ...)

# S3 method for sobel_test_mediation summary(object, ...)

Arguments

object

an object inheriting from class "test_mediation" containing results from (robust) mediation analysis.

type

a character string specifying how to summarize the effects other than the indirect effect(s). Possible values are "boot" (the default) to compute significance tests using the normal approximation of the bootstrap distribution (i.e., to assume a normal distribution of the corresponding effect with the standard deviation computed from the bootstrap replicates), or "theory" to compute significance tests via statistical theory based on the original data (e.g., t-tests if the coefficients are estimated via regression). Note that this is only relevant for mediation analysis via a bootstrap test, where significance of the indirect effect is always assessed via a percentile-based confidence interval due to the asymmetry of its distribution.

additional arguments are currently ignored.

Value

An object of class "summary_test_mediation" with the following components:

object

the object passed to the summary method, which contains the results from testing the indirect effect.

summary

an object containing all necessary information to summarize the effects other than the indirect effect.

See Also

test_mediation

Examples

Run this code
# NOT RUN {
data("BSG2014")
test <- test_mediation(BSG2014,
                       x = "ValueDiversity",
                       y = "TeamCommitment",
                       m = "TaskConflict")
summary(test)

# }

Run the code above in your browser using DataLab