plot_ibbu_stanfit_parameters: Plot distribution of IBBU parameters.

View source: R/visualize-NIW-IA-stanfit.R

plot_ibbu_stanfit_parametersR Documentation

Plot distribution of IBBU parameters.

Description

Plot distribution of post-warmup MCMC samples for all parameters representing the prior and/or posterior beliefs.

Usage

plot_ibbu_stanfit_parameters(
  model,
  categories = get_category_levels_from_stanfit(model),
  groups = get_group_levels_from_stanfit(model, include_prior = T),
  cues = get_cue_levels_from_stanfit(model),
  ndraws = NULL,
  untransform_cues = TRUE,
  panel_scaling = F,
  group.colors = get_default_colors("group", groups)
)

Arguments

model

mv-ibbu-stanfit object.

categories, groups, cues

Character vector of categories/groups/cues to be plotted. Typically, the levels of these factors are automatically added to the fit during the creation of the fit. If necessary, however, it is possible to use recover_types on the stanfit object to add or change these levels later. (default: all categories/groups/cues will be plotted)

ndraws

Number of draws to plot (or use to calculate the CIs), or 'NULL' if all draws are to be returned. (default: 'NULL')

untransform_cues

Should m_0 and S_0 be transformed back into the original cue space? (default: 'TRUE')

panel_scaling

Should the relative scaling be calculated separately for each panel? If not the scaling is calculated globally. (default: 'FALSE')

group.colors

Vector of fill colors of same length as group.ids or 'NULL' to use defaults. (default: 'NULL')

which

Should parameters for the prior, posterior, or both be plotted? (default: '"both"')

Value

ggplot object.

See Also

TBD


hlplab/MVBeliefUpdatr documentation built on March 29, 2025, 10:42 p.m.