Provides an effect bar plot in the context of simple mediation.
mediation.effect.bar.plot(x, mediator, dv,
main = "Mediation Effect Bar Plot", width = 1, left.text.adj = 0,
right.text.adj = 0, rounding = 3, file = "", save.pdf = FALSE,
save.eps = FALSE, save.jpg = FALSE, ...)
Only a figure is returned
vector of the predictor/independent variable
vector of the mediator variable
vector of the dependent/outcome variable
main title
width of bar, default 1
for fine tuning left side text adjustment
for fine tuning right side text adjustment
how to round so that the values displayed in the plot do not have too few or too many significant digits
file name of the plot to be saved (not necessary)
TRUE
or FALSE
if the produced figure should be saved as a PDF file
TRUE
or FALSE
if the produced figure should be saved as an EPS file
TRUE
or FALSE
if the produced figure should be saved as a JPG file
optional additional specifications for nested functions
Ken Kelley (University of Notre Dame; KKelley@nd.edu)
Provides an effect bar for mediation (Bauer, Preacher, & Gil, 2006) may be used to plot the results of a mediation analysis compactly. Effect bars represent, in a single metric, the relative magnitudes of several values that are important for interpreting indirect effects. Preacher and Kelley (2011) discuss this plotting method also.
Bauer, D. J., Preacher, K. J., & Gil, K. M. (2006). Conceptualizing and testing random indirect effects and moderated mediation in multilevel models: New procedures and recommendations. Psychological Methods, 11, 142--163.
Preacher, K. J., & Kelley, K. (2011). Effect size measures for mediation models: Quantitative and graphical strategies for communicating indirect effects. Psychological Methods, 16, 93--115.
mediation
, mediation.effect.bar.plot