Extract or compute confidence intervals for coefficients from (robust) mediation analysis.
# S3 method for bootTestMediation
confint(object, parm = NULL, level = NULL, ...)# S3 method for sobelTestMediation
confint(object, parm = NULL, level = 0.95, ...)
an object inheriting from class "testMediation"
containing results from (robust) mediation analysis, or an object inheriting
from class "fitMediation"
containing a (robust) mediation
model fit.
an integer, character or logical vector specifying the
coefficients for which to extract or compute confidence intervals, or
NULL
to extract or compute confidence intervals for all coefficients.
for the "bootTestMediation"
method, this is ignored and
the confidence level of the bootstrap confidence interval for the indirect
effect is used. For the other methods, the confidence level of the
confidence intervals to be computed. The default is to compute 95%
confidence intervals.
additional arguments are currently ignored.
A numeric matrix containing the requested confidence intervals.