For the mediator identified by var, the function draws the level 1 and/or (aggregated) level 2 indirect effects versus the predictor and the confidence bands at alpha significance level. If var is NULL, draw the relative mediation effects with confidence intervals.
Usage
## S3 method for class 'mlma.boot'
plot(x, ..., var = NULL, alpha = 0.05, quant=FALSE)
Arguments
x
an "mlma" object.
...
arguments to be passed to methods.
var
the name of the mediator that is to be plotted.
alpha
the significance level at which to draw the confidence bands.
quant
if true, confidence interval is calculated using quantil when plot the relative effects. By default, the CIs are calculated using normal approximation. This argument does nothing for the CIs calculated when var is not null.
Author(s)
Qingzhao Yu (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu).