plot_parameter_correlations: Plot correlations between parameters of ideal adaptor stanfit

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

plot_parameter_correlationsR Documentation

Plot correlations between parameters of ideal adaptor stanfit

Description

Plot correlations between posterior MCMC samples for all parameters representing the prior and/or posterior beliefs.

Usage

plot_parameter_correlations(model, ...)

## S3 method for class 'ideal_adaptor_stanfit'
plot_parameter_correlations(
  model,
  categories = get_category_levels(model),
  groups = "prior",
  cues = get_cue_levels(model),
  pars = NULL,
  ndraws = NULL,
  untransform_cues = FALSE,
  category.colors = get_default_colors("category", categories)
)

Arguments

model

An ideal adaptor stanfit object.

categories, groups, cues, pars

Character vector of categories, groups, cues, and/or parameters to be plotted. To subset to specific parameters, note the following naming conventions:

(1) all 'm' parameters are named 'm_cue_name' (2) the 'S' parameter is decomposed into a vector of standard deviations 'tau' and a correlation matrix 'rho'. (3) all 'tau' parameters are named 'tau_cue_name' (4) all 'rho' parameters are named 'rho_cue_name1__x__cue_name2'

(default: all categories, cues, and parameters in the model; '"prior"' for group since those are the only free parameters).

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

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

category.colors

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

Details

Typically, the categories, groups, and cues 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.

Value

ggplot object.

See Also

TBD


hlplab/MVBeliefUpdatr documentation built on July 5, 2025, 6:42 a.m.