mlm_path_plot | R Documentation |
bmlm
's mediation model as a path diagramPlots a path diagram for an estimated multilevel mediation model.
mlm_path_plot(
mod = NULL,
xlab = "X",
ylab = "Y",
mlab = "M",
level = 0.95,
random = TRUE,
text = FALSE,
id = NULL,
digits = 2,
...
)
mod |
A Stanfit model estimated with |
xlab |
Label for X |
ylab |
Label for Y |
mlab |
Label for M |
level |
"Confidence" level for credible intervals. (Defaults to .95.) |
random |
Should the "random" effects SDs be displayed? (Default = TRUE) |
text |
Should additional parameter values be displayed? (Defaults to FALSE.) |
id |
Plot an individual-level path diagram by specifying ID number. |
digits |
Number of significant digits to show on graph. (Default = 2.) |
... |
Other arguments passed on to |
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 not
specifying input to the mod
argument.
To modify various settings of the underlying qgraph object, see
qgraph
.
A qgraph object.
Matti Vuorre mv2521@columbia.edu
# Draw a template path diagram of the mediation model
mlm_path_plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.