confint.test_mediation | R Documentation |
Extract or compute confidence intervals for effects in (robust) mediation analysis.
## S3 method for class 'boot_test_mediation'
confint(object, parm = NULL, level = NULL, type = c("boot", "data"), ...)
## S3 method for class 'sobel_test_mediation'
confint(object, parm = NULL, level = 0.95, ...)
object |
an object inheriting from class |
parm |
an integer, character or logical vector specifying the paths
for which to extract or compute confidence intervals, or |
level |
for the |
type |
a character string specifying how to compute the confidence
interval of the effects other than the indirect effect(s). Possible values
are |
... |
additional arguments are currently ignored. |
A numeric matrix containing the requested confidence intervals.
Andreas Alfons
test_mediation()
, coef()
,
p_value()
, boot.ci()
data("BSG2014")
# run fast-and-robust bootstrap test
robust_boot <- test_mediation(BSG2014,
x = "ValueDiversity",
y = "TeamCommitment",
m = "TaskConflict",
level = 0.9,
robust = TRUE)
confint(robust_boot, type = "boot")
# run OLS bootstrap test
ols_boot <- test_mediation(BSG2014,
x = "ValueDiversity",
y = "TeamCommitment",
m = "TaskConflict",
level = 0.9,
robust = FALSE)
confint(ols_boot, type = "data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.