BayesMallows2.2.2 package

Bayesian Preference Learning with the Mallows Rank Model

BayesMallows-package

BayesMallows: Bayesian Preference Learning with the Mallows Rank Model

assess_convergence

Trace Plots from Metropolis-Hastings Algorithm

assign_cluster

Assign Assessors to Clusters

asymptotic_partition_function

Asymptotic Approximation of Partition Function

burnin-set

Set the burnin

burnin

See the burnin

compute_consensus

Compute Consensus Ranking

compute_exact_partition_function

Compute exact partition function

compute_expected_distance

Expected value of metrics under a Mallows rank model

compute_mallows_mixtures

Compute Mixtures of Mallows Models

compute_mallows_sequentially

Estimate the Bayesian Mallows Model Sequentially

estimate_partition_function

Estimate Partition Function

compute_mallows

Preference Learning with the Mallows Rank Model

compute_observation_frequency

Frequency distribution of the ranking sequences

compute_posterior_intervals

Compute Posterior Intervals

compute_rank_distance

Distance between a set of rankings and a given rank sequence

create_ranking

Convert between ranking and ordering.

get_acceptance_ratios

Get Acceptance Ratios

get_cardinalities

Get cardinalities for each distance

get_mallows_loglik

Likelihood and log-likelihood evaluation for a Mallows mixture model

get_transitive_closure

Get transitive closure

heat_plot

Heat plot of posterior probabilities

plot_elbow

Plot Within-Cluster Sum of Distances

plot_top_k

Plot Top-k Rankings with Pairwise Preferences

plot.BayesMallows

Plot Posterior Distributions

plot.SMCMallows

Plot SMC Posterior Distributions

predict_top_k

Predict Top-k Rankings with Pairwise Preferences

print.BayesMallows

Print Method for BayesMallows Objects

rmallows

Sample from the Mallows distribution.

sample_mallows

Random Samples from the Mallows Rank Model

sample_prior

Sample from prior distribution

set_compute_options

Specify options for computation

set_initial_values

Set initial values of scale parameter and modal ranking

set_model_options

Set options for Bayesian Mallows model

set_priors

Set prior parameters for Bayesian Mallows model

set_progress_report

Set progress report options for MCMC algorithm

set_smc_options

Set SMC compute options

setup_rank_data

Setup rank data

update_mallows

Update a Bayesian Mallows model with new users

An implementation of the Bayesian version of the Mallows rank model (Vitelli et al., Journal of Machine Learning Research, 2018 <https://jmlr.org/papers/v18/15-481.html>; Crispino et al., Annals of Applied Statistics, 2019 <doi:10.1214/18-AOAS1203>; Sorensen et al., R Journal, 2020 <doi:10.32614/RJ-2020-026>; Stein, PhD Thesis, 2023 <https://eprints.lancs.ac.uk/id/eprint/195759>). Both Metropolis-Hastings and sequential Monte Carlo algorithms for estimating the models are available. Cayley, footrule, Hamming, Kendall, Spearman, and Ulam distances are supported in the models. The rank data to be analyzed can be in the form of complete rankings, top-k rankings, partially missing rankings, as well as consistent and inconsistent pairwise preferences. Several functions for plotting and studying the posterior distributions of parameters are provided. The package also provides functions for estimating the partition function (normalizing constant) of the Mallows rank model, both with the importance sampling algorithm of Vitelli et al. and asymptotic approximation with the IPFP algorithm (Mukherjee, Annals of Statistics, 2016 <doi:10.1214/15-AOS1389>).

  • Maintainer: Oystein Sorensen
  • License: GPL-3
  • Last published: 2024-08-17