Plot bmlm's mediation model as a path diagram

Description

Plots a path diagram for an estimated multilevel mediation model.

Usage

1
2
mlm_path_plot(mod = NULL, xlab = "X", ylab = "Y", mlab = "M",
  level = 0.95, text = FALSE, template = FALSE, id = NULL, ...)

Arguments

mod

A Stanfit model estimated with mlm().

xlab

Label for X

ylab

Label for Y

mlab

Label for M

level

"Confidence" level for credible intervals. (Defaults to .95.)

text

Should additional parameter values be displayed? (Defaults to FALSE.)

template

Should an empty template diagram be plotted? (Defaults to FALSE.)

id

Plot an individual-level path diagram by specifying ID number.

...

Other arguments passed on to qgraph::qgraph().

Details

Plots a path diagram of the mediation model, with estimated parameter values and credible intervals. Can also be used to draw a template diagram of the mediation model by setting template = TRUE.

To modify various settings of the underlying qgraph object, see qgraph.

Value

A qgraph object.

Author(s)

Matti Vuorre mv2521@columbia.edu

Examples

1
2
# Draw a template path diagram of the mediation model
mlm_path_plot(template = TRUE)