Plot estimated parameters of multilevel mediation model

Description

Plot the model's estimated parameters as histograms or a coefficient plot.

Usage

1
2
3
mlm_pars_plot(mod = NULL, type = "hist", color = "black", p_shape = 15,
  p_size = 1.2, level = 0.95, nrow = 3, pars = c("a", "b", "cp",
  "corrab", "ab", "c", "pme"))

Arguments

mod

A Stanfit model estimated with mlm().

type

Type of the plot, hist or coefplot.

color

Color (and fill) for plots.

p_shape

Shape of points for coefplot.

p_size

Size of points for coefplot.

level

X level for Credible Intervals. (Defaults to .95.)

nrow

Number of rows for multiple histograms.

pars

Which parameters to plot.

Details

The point estimate for the coefficient plot is the posterior mean.

Value

A ggplot2 object.

Author(s)

Matti Vuorre mv2521@columbia.edu