Skip to content

BayesMallows

2.2.7Package record

Bayesian Preference Learning with the Mallows Rank Model

0packages dependsuggested by 1
10.8Kdownloads / year
97.9%test coverage
13/13flavors OK

Overview

About

An implementation of the Bayesian version of the Mallows rank model (Vitelli et al., Journal of Machine Learning Research, 2018 https://jmlr.org/papers/v18/15-481.html; Crispino et al., Annals of Applied Statistics, 2019 doi:10.1214/18-AOAS1203; Sorensen et al., R Journal, 2020 doi:10.32614/RJ-2020-026; Stein, PhD Thesis, 2023 https://eprints.lancs.ac.uk/id/eprint/195759). Both Metropolis-Hastings and sequential Monte Carlo algorithms for estimating the models are available. Cayley, footrule, Hamming, Kendall, Spearman, and Ulam distances are supported in the models. The rank data to be analyzed can be in the form of complete rankings, top-k rankings, partially missing rankings, as well as consistent and inconsistent pairwise preferences. Several functions for plotting and studying the posterior distributions of parameters are provided. The package also provides functions for estimating the partition function (normalizing constant) of the Mallows rank model, both with the importance sampling algorithm of Vitelli et al. and asymptotic approximation with the IPFP algorithm (Mukherjee, Annals of Statistics, 2016 doi:10.1214/15-AOS1389).

Changes in 2.2.7
  • A bug in the computation of acceptance ratios has been fixed. Issue #436 on GitHub. Thanks to Jonas Nordstrøm for discovering.
  • Documentation of return value added to get_acceptance_ratios().

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 11.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.2.7
README· In the repository, left out of the releaseVignettesYes · 3 · staticNEWSYes · 100% structured · mentions 2.2.7Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites an R Journal article
Help pages
47 (3 internal)includes a package overview page
Examples that run
82%23 run in a plain check · 5 never run
Exported functions with examples
79%
Documented parameters
99%
Return-value docs
85%
Help pages citing references
51% with a bibliography file

Downloads

10.8K
CRAN downloads in the past year
Rank #4,045 · ~30/day · ~898/mo
Daily download trend is not available in this view yet.
87030 days
2.2K90 days
10.8K1 year
Compare downloads with other packages →
Also on559 r2u40 autocran118 c2d4u

Repository

21Stars
10Forks
0Open issues
0Open PRs
37Releases
909Commits
15Commit identities
mallows-modelr-package
License file reads as GPL-3.0 · 909 commits · Last activity 2026-02-06 · 0% stars, 30d · Default branch at 2.2.7.9000, ahead of CRAN 2.2.7 (checked 2026-10-18) · Discussions: 1 post
Responsiveness
How these are sampled
PRs merged (all time)
93%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-08-20 · 212026-09-21 · 21
PracticesBeta

12 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/ocbe-uio/bayesmallows on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Contributing guide (inherited from ocbe-uio)
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-01-20 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Lint, format, editor (2)
Lint workflowRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-01-20
    Pull request: opened by its own account
    Commits: 4 by its own account · at least 4 crediting it in the message
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing BayesMallows adds 42 packages (20 with compiled code, 23 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, isoband 1.5 MB.

Depends (1)
R >= 3.5.0
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (8)
Author, Maintainer since 0.1.0 (2018)
Author · added in 1.0.4
Author · added in 0.1.1
Author · added in 1.0.0
Author · added in 1.0.4
Author · added in 1.0.0
Listed in earlier versions (1)
Qingua Liu
no longer listed · 0.1.0
Releases (39)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.2.7Latest
    record
    2026-01-20 · current release · diff ↗
  • 2.2.6
    record
    2025-11-25 · diff ↗
  • 2.2.5
    record
    2025-06-27 · diff ↗
  • 2.2.4
    record
    2025-06-13 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.2.3
    record
    2025-01-14 · diff ↗
  • 2.2.2
    record
    2024-08-17 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.2.1
    record
    2024-04-22 · diff ↗
  • 2.2.0
    record
    2024-04-19 · diff ↗ ·
    added 2 exports
    compute_exact_partition_function, set_progress_report
  • 2.1.1
    record
    2024-03-15 · diff ↗
  • 2.1.0
    record
    2024-03-13 · diff ↗ ·
    added 5 exports
    burnin<-, burnin, compute_mallows_sequentially, get_acceptance_ratios, sample_prior
  • 2.0.1
    record
    2024-01-25 · diff ↗
  • 2.0.0
    record
    2024-01-15 · diff ↗ ·
    removed 14 exports
    calculate_backward_probability, calculate_forward_probability, compute_posterior_intervals_alpha, compute_posterior_intervals_rho, compute_rho_consensus, expected_dist, generate_constraints, generate_initial_ranking, generate_transitive_closure, prepare_partition_function, rank_distance, rank_freq_distr, smc_mallows_new_item_rank, smc_mallows_new_users
    added 12 exports
    compute_expected_distance, compute_observation_frequency, compute_rank_distance, get_cardinalities, get_transitive_closure, set_compute_options, set_initial_values, set_model_options, set_priors, set_smc_options, setup_rank_data, update_mallows
  • 1.5.0
    record
    2023-11-25 · diff ↗ ·
    removed 7 exports
    get_exponent_sum, get_sample_probabilities, leap_and_shift_probs, lik_db_mix, metropolis_hastings_alpha, metropolis_hastings_aug_ranking, metropolis_hastings_rho
Show 32 earlier eventsHide 32 earlier events
  • 1.4.0
    record
    2023-10-04 · diff ↗ ·
    removed 7 exports
    metropolis_hastings_aug_ranking_pseudo, plot_alpha_posterior, plot_rho_posterior, smc_mallows_new_item_rank_alpha_fixed, smc_mallows_new_users_complete, smc_mallows_new_users_partial, smc_mallows_new_users_partial_alpha_fixed
    added 1 export
    prepare_partition_function
  • 1.3.2
    record
    2023-08-24 · diff ↗
  • 1.3.1
    record
    2023-08-22 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.0
    record
    2023-03-10 · diff ↗ ·
    added 1 export
    heat_plot
  • 1.2.2
    record
    2023-02-03 · diff ↗
  • 1.2.1
    record
    2022-11-04 · diff ↗
  • 1.2.0
    record
    2022-05-25 · diff ↗ ·
    added 2 exports
    get_exponent_sum, smc_mallows_new_users
  • R
    R 4.2.0 released · 2022-04-22
  • 1.1.2
    record
    2022-04-11 · diff ↗
  • 1.1.1
    record
    2022-04-02 · diff ↗
  • 1.1.0
    record
    2021-12-03 · diff ↗ ·
    added 19 exports
    calculate_backward_probability, calculate_forward_probability, compute_posterior_intervals_alpha, compute_posterior_intervals_rho, compute_rho_consensus, get_mallows_loglik, get_sample_probabilities, leap_and_shift_probs, metropolis_hastings_alpha, metropolis_hastings_aug_ranking, metropolis_hastings_aug_ranking_pseudo, metropolis_hastings_rho, plot_alpha_posterior, plot_rho_posterior, smc_mallows_new_item_rank, smc_mallows_new_item_rank_alpha_fixed, smc_mallows_new_users_complete, smc_mallows_new_users_partial, smc_mallows_new_users_partial_alpha_fixed
  • 1.0.4
    record
    2021-11-17 · diff ↗
  • 1.0.3
    record
    2021-10-14 · diff ↗
  • 1.0.2
    record
    2021-06-04 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.1
    record
    2021-02-23 · diff ↗
  • 1.0.0
    record
    2021-01-08 · diff ↗ ·
    added 4 exports
    expected_dist, lik_db_mix, rank_distance, rank_freq_distr
  • 0.5.0
    record
    2020-08-28 · diff ↗
  • 0.4.4
    record
    2020-08-07 · diff ↗
  • 0.4.3
    record
    2020-06-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.4.2
    record
    2020-03-23 · diff ↗
  • 0.4.1
    record
    2019-09-05 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.4.0
    record
    2019-02-22 · diff ↗
  • 0.3.1
    record
    2019-02-01 · diff ↗
  • 0.3.0
    record
    2019-01-30 · diff ↗ ·
    removed 3 exports
    compute_cp_consensus, compute_map_consensus, tidy_mcmc
  • 0.2.0
    record
    2018-11-30 · diff ↗ ·
    added 2 exports
    compute_consensus, predict_top_k
  • 0.1.1
    record
    2018-10-15 · diff ↗
  • 0.1.0
    record
    2018-10-08
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-10-08
Total releases
39 / 8 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
29 KB / 8 files
Download size
4.2 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("BayesMallows")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for BayesMallows version 2.2.7 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy