Learn R Programming

BayesMallows (version 0.3.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".

...

Additional arguments passed on to cowplot::plot_grid. Only used when model_fit is of class BayesMallowsMixtures.

See Also

compute_mallows, plot.BayesMallows