Skip to content

hbamr

Hierarchical Bayesian Aldrich-McKelvey Scaling via 'Stan'

v2.4.5 · Feb 14, 2026 · GPL (>= 3)

Description

Perform hierarchical Bayesian Aldrich-McKelvey scaling using Hamiltonian Monte Carlo via 'Stan'. Aldrich-McKelvey ('AM') scaling is a method for estimating the ideological positions of survey respondents and political actors on a common scale using positional survey data. The hierarchical versions of the Bayesian 'AM' model included in this package outperform other versions both in terms of yielding meaningful posterior distributions for respondent positions and in terms of recovering true respondent positions in simulations. The package contains functions for preparing data, fitting models, extracting estimates, plotting key results, and comparing models using cross-validation. The original version of the default model is described in Bølstad (2024) <doi:10.1017/pan.2023.18>.

Downloads

342

Last 30 days

11296th

1.1K

Last 90 days

4.1K

Last year

Trend: -22.6% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (5 non-OK)
NOTE r-oldrel-macos-arm64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 84.8Mb
  sub-directories of 1Mb or more:
    libs  83.4Mb
NOTE r-oldrel-macos-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 87.2Mb
  sub-directories of 1Mb or more:
    libs  85.8Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 84.8Mb
  sub-directories of 1Mb or more:
    libs  83.4Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 87.2Mb
  sub-directories of 1Mb or more:
    libs  85.8Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.

Dependency Network

Dependencies Reverse dependencies colorspace dplyr future future.apply ggplot2 loo matrixStats plyr progressr RColorBrewer Rcpp RcppParallel rlang rstan (>= 2.26.1) rstantools +1 more dependencies hbamr

Version History

new 2.4.5 Mar 10, 2026
updated 2.4.5 ← 2.4.4 diff Feb 13, 2026
updated 2.4.4 ← 2.4.2 diff Aug 17, 2025
updated 2.4.2 ← 2.4.1 diff Mar 4, 2025
updated 2.4.1 ← 2.4.0 diff Feb 12, 2025
updated 2.4.0 ← 2.3.2 diff Jan 26, 2025
updated 2.3.2 ← 2.3.1 diff Sep 22, 2024
updated 2.3.1 ← 2.3.0 diff Jun 3, 2024
updated 2.3.0 ← 2.2.1 diff Mar 30, 2024
updated 2.2.1 ← 2.2.0 diff Feb 22, 2024
updated 2.2.0 ← 2.1.2 diff Feb 13, 2024
updated 2.1.2 ← 2.1.1 diff Feb 6, 2024
updated 2.1.1 ← 2.1.0 diff Jan 24, 2024
updated 2.1.0 ← 2.0.1 diff Jan 16, 2024
updated 2.0.1 ← 1.2.0 diff Jan 7, 2024
updated 1.2.0 ← 1.1.6 diff Sep 24, 2023
updated 1.1.6 ← 1.1.3 diff Jun 8, 2023
updated 1.1.3 ← 1.1.1 diff Jun 6, 2023
updated 1.1.1 ← 1.0.5 diff Apr 23, 2023
new 1.0.5 Mar 13, 2023