mlm_pars_plot: Plot estimated parameters of multilevel mediation model

View source: R/mlm_plot.R

mlm_pars_plotR Documentation

Plot estimated parameters of multilevel mediation model

Description

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

Usage

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", "covab", "me", "c", "pme")
)

Arguments

mod

A Stanfit model estimated with mlm().

type

Type of the plot, hist, coef, or violin.

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


mvuorre/bmlm documentation built on Oct. 3, 2023, 5:48 a.m.