View source: R/assess_convergence.R
assess_convergence | R Documentation |
assess_convergence
provides trace plots for the parameters of the Mallows
Rank model, in order to study the convergence of the Metropolis-Hastings
algorithm.
assess_convergence(model_fit, ...)
## S3 method for class 'BayesMallows'
assess_convergence(
model_fit,
parameter = c("alpha", "rho", "Rtilde", "cluster_probs", "theta"),
items = NULL,
assessors = NULL,
...
)
## S3 method for class 'BayesMallowsMixtures'
assess_convergence(
model_fit,
parameter = c("alpha", "cluster_probs"),
items = NULL,
assessors = NULL,
...
)
model_fit |
A fitted model object of class |
... |
Other arguments passed on to other methods. Currently not used. |
parameter |
Character string specifying which parameter to plot.
Available options are |
items |
The items to study in the diagnostic plot for |
assessors |
Numeric vector specifying the assessors to study in the
diagnostic plot for |
set.seed(1)
# Fit a model on the potato_visual data
mod <- compute_mallows(setup_rank_data(potato_visual))
# Check for convergence
assess_convergence(mod)
assess_convergence(mod, parameter = "rho", items = 1:20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.