Learn R Programming

BayesMallows (version 1.4.0)

metropolis_hastings_aug_ranking: Metropolis-Hastings Augmented Ranking

Description

Function to perform Metropolis-Hastings for new augmented ranking

Usage

metropolis_hastings_aug_ranking(
  alpha,
  rho,
  n_items,
  partial_ranking,
  current_ranking,
  pseudo,
  metric = "footnote"
)

Value

R_curr or R_obs A ranking sequence vector representing proposed augmented ranking for next iteration of MCMC chain

Arguments

alpha

Numeric value of the scale parameter

rho

Numeric vector specifying the consensus ranking

n_items

Integer is the number of items in a ranking

partial_ranking

An incomplete rank sequence vector of the original observed incomplete ranking which contains NAs

current_ranking

An complete rank sequence vector of the proposed augmented ranking obtained from calculate_forward_probability function

pseudo

Boolean specifying whether to use pseudo proposal or not.s

metric

A character string specifying the distance metric to use in the Bayesian Mallows Model. Available options are "footrule", "spearman", "cayley", "hamming", "kendall", and "ulam".