Hierarchical Bayesian Aldrich-McKelvey Scaling via 'Stan'

Perform hierarchical Bayesian Aldrich-McKelvey scaling using Hamiltonian Monte Carlo via 'Stan'. Aldrich-McKelvey ('AM') scaling is a method for estimating the latent positions of survey respondents and external objects 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) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("hbamr")

2.4.7 by Jørgen Bølstad, 4 months ago


https://jbolstad.github.io/hbamr/


Report a bug at https://github.com/jbolstad/hbamr/issues


Browse source code at https://github.com/cran/hbamr


Authors: Jørgen Bølstad [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL (>= 3) license


Imports colorspace, dplyr, future, future.apply, ggplot2, loo, matrixStats, methods, parallel, plyr, progressr, RColorBrewer, Rcpp, RcppParallel, rlang, rstan, rstantools, stats, tidyr

Suggests data.table, knitr, rmarkdown

Linking to BH, Rcpp, RcppEigen, RcppParallel, rstan, StanHeaders

System requirements: GNU make


See at CRAN