Learn R Programming

robmed (version 0.1.1)

confint.testMediation: Confidence intervals for (robust) mediation analysis

Description

Extract or compute confidence intervals for coefficients from (robust) mediation analysis.

Usage

# S3 method for bootTestMediation
confint(object, parm = NULL, level = NULL, ...)

# S3 method for sobelTestMediation confint(object, parm = NULL, level = 0.95, ...)

Arguments

object

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.

parm

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.

level

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.

Value

A numeric matrix containing the requested confidence intervals.

See Also

testMediation, fitMediation, coef