View source: R/expected_dist.R
expected_dist | R Documentation |
Compute the expectation of several metrics under the Mallows rank model.
expected_dist(alpha, n_items, metric)
alpha |
Non-negative scalar specifying the scale (precision) parameter in the Mallows rank model. |
n_items |
Integer specifying the number of items. |
metric |
Character string specifying the distance measure to use. Available options are |
A scalar providing the expected value of the metric
under the Mallows rank model with distance specified by the metric
argument.
Other rank functions:
get_mallows_loglik()
,
rank_conversion
,
rank_distance()
,
rank_freq_distr()
,
sample_mallows()
expected_dist(1, 5, metric = "kendall")
expected_dist(2, 6, metric = "cayley")
expected_dist(1.5, 7, metric = "hamming")
expected_dist(5, 30, "ulam")
expected_dist(3.5, 45, "footrule")
expected_dist(4, 10, "spearman")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.