Frequency distribution of the ranking sequences
Construct the frequency distribution of the distinct ranking
sequences from the dataset of the individual rankings. This can be of
interest in itself, but also used to speed up computation by providing
the obs_freq
argument to compute_mallows
.
rank_freq_distr(rankings)
rankings |
A matrix with the individual rankings in each row. |
Numeric matrix with the distinct rankings in each row and the
corresponding frequencies indicated in the last (n_items+1)
-th
column.
# Create example data. We set the burn-in and thinning very low # for the sampling to go fast data0 <- sample_mallows(rho0 = 1:5, alpha=10, n_samples = 1000, burnin = 10, thinning = 1) # Find the frequency distribution rank_freq_distr(rankings=data0)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.