Learn R Programming

BayesMallows (version 1.3.2)

get_sample_probabilities: Get Sample Probabilities

Description

Calculate probability of assigning a set of specific ranks to an specific item given its rank in the consensus ranking

Usage

get_sample_probabilities(
  rho_item_rank,
  alpha,
  remaining_set_ranks,
  n_items,
  metric = "footrule"
)

Value

sample_prob_list A numeric sequence of sample probabilities for selecting a specific rank given the current rho_item_rank

Arguments

rho_item_rank

An integer value rank of an item in the current consensus ranking

alpha

Numeric value of the scale parameter

remaining_set_ranks

A sequence of integer values of the set of possible ranks that we can assign the item

n_items

Integer is the number of items in the consensus ranking

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".