confint.test_mediation {robmed} | R Documentation |
Confidence intervals from (robust) mediation analysis
Description
Extract or compute confidence intervals for effects in (robust) mediation analysis.
Usage
## 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, ...)
Arguments
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. |
Value
A numeric matrix containing the requested confidence intervals.
Author(s)
Andreas Alfons
See Also
test_mediation()
, coef()
,
p_value()
, boot.ci()
Examples
data("BSG2014")
# run fast-and-robust bootstrap test
robust_boot <- test_mediation(BSG2014,
x = "ValueDiversity",
y = "TeamCommitment",
m = "TaskConflict",
robust = TRUE)
confint(robust_boot, type = "boot")
# run OLS bootstrap test
ols_boot <- test_mediation(BSG2014,
x = "ValueDiversity",
y = "TeamCommitment",
m = "TaskConflict",
robust = FALSE)
confint(ols_boot, type = "data")