Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_partition_function

Compute the logarithm of the partition function for a Mallows rank model


Description

Compute the logarithm of the partition function for a Mallows rank model

Usage

get_partition_function(
  n_items,
  alpha,
  cardinalities = NULL,
  logz_estimate = NULL,
  metric = "footrule"
)

Arguments

n_items

Number of items.

alpha

The value of the alpha parameter.

cardinalities

Number of occurrences for each unique distance. Applicable for Footrule and Spearman distance. Defaults to R_NilValue.

logz_estimate

Precomputed importance sampling fit.

metric

A string. Available options are "footrule", "kendall", "spearman", "cayley", "hamming", and "ulam". Defaults to "footrule".

Value

A scalar, the logarithm of the partition function.

References

There are no references for Rd macro \insertAllCites on this help page.


BayesMallows

Bayesian Preference Learning with the Mallows Rank Model

v1.0.1
GPL-3
Authors
Oystein Sorensen [aut, cre] (<https://orcid.org/0000-0003-0724-3542>), Valeria Vitelli [aut] (<https://orcid.org/0000-0002-6746-0453>), Marta Crispino [aut], Qinghua Liu [aut], Cristina Mollica [aut], Luca Tardella [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.