Skip to contents

Plot Latent Factors of a Dynamite Model

Usage

plot_psis(
  x,
  responses = NULL,
  level = 0.05,
  alpha = 0.5,
  scales = c("fixed", "free")
)

Arguments

x

[dynamitefit]
The model fit object

responses

[character()]
Response(s) for which the coefficients should be drawn. Possible options are elements of unique(x$priors$response), and the default is this whole vector.

level

[numeric(1)]
Level for posterior intervals. Default is 0.05, leading to 90% intervals.

alpha

[numeric(1)]
Opacity level for geom_ribbon. Default is 0.5.

scales

[character(1)] Should y-axis of the panels be "fixed" (the default) or "free"? See ggplot2::facet_wrap().

Value

A ggplot object.