Learn R Programming

BayesMallows (version 1.1.0)

assess_convergence: Trace Plots from Metropolis-Hastings Algorithm

Description

assess_convergence provides trace plots for the parameters of the Mallows Rank model, in order to study the convergence of the Metropolis-Hastings algorithm.

Usage

assess_convergence(
  model_fit,
  parameter = "alpha",
  items = NULL,
  assessors = NULL
)

Arguments

model_fit

A fitted model object of class BayesMallows returned from compute_mallows or an object of class BayesMallowsMixtures returned from compute_mallows_mixtures.

parameter

Character string specifying which parameter to plot. Available options are "alpha", "rho", "Rtilde", "cluster_probs", or "theta".

items

The items to study in the diagnostic plot for rho. Either a vector of item names, corresponding to model_fit$items or a vector of indices. If NULL, five items are selected randomly. Only used when parameter = "rho" or parameter = "Rtilde".

assessors

Numeric vector specifying the assessors to study in the diagnostic plot for "Rtilde".

See Also

compute_mallows, plot.BayesMallows