Package: hbamr 2.4.3

Jørgen Bølstad

hbamr: 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 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>.

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

hbamr_2.4.3.tar.gz
hbamr_2.4.3.zip(r-4.5)hbamr_2.4.3.zip(r-4.4)hbamr_2.4.3.zip(r-4.3)
hbamr_2.4.3.tgz(r-4.5-arm64)hbamr_2.4.3.tgz(r-4.4-arm64)hbamr_2.4.3.tgz(r-4.3-arm64)
hbamr_2.4.3.tar.gz(r-4.5-noble)hbamr_2.4.3.tar.gz(r-4.4-noble)
hbamr.pdf |hbamr.html
hbamr/json (API)
NEWS

# Install 'hbamr' in R:
install.packages('hbamr', repos = c('https://jbolstad.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jbolstad/hbamr/issues

Pkgdown site:https://jbolstad.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • LC1980 - 1980 Liberal-Conservative Scales
  • LC2012 - 2012 Liberal-Conservative Scales

On CRAN:

Conda-Forge:

bayesianbayesian-inferenceideal-point-estimationstansurvey-analysiscpp

5.04 score 2 stars 690 downloads 11 exports 69 dependencies

Last updated 13 hours agofrom:a64fb0c937. Checks:1 OK, 8 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 05 2025
R-4.5-win-x86_64NOTEMar 05 2025
R-4.5-mac-aarch64NOTEMar 05 2025
R-4.5-linux-x86_64NOTEMar 05 2025
R-4.4-win-x86_64NOTEMar 05 2025
R-4.4-mac-aarch64NOTEMar 05 2025
R-4.4-linux-x86_64NOTEMar 05 2025
R-4.3-win-x86_64NOTEMar 05 2025
R-4.3-mac-aarch64NOTEMar 05 2025

Exports:fbamget_estget_plot_datahbamhbam_cvplot_by_groupplot_over_selfplot_respondentsplot_stimuliprep_dataprep_data_cv

Dependencies:abindbackportsBHcallrcheckmateclicodetoolscolorspacecpp11descdigestdistributionaldplyrfansifarverfuturefuture.applygenericsggplot2globalsgluegridExtragtableinlineisobandlabelinglatticelifecyclelistenvloomagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenumDerivparallellypillarpkgbuildpkgconfigplyrposteriorprocessxprogressrpspurrrQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelrlangrstanrstantoolsscalesStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr

Hierarchical Bayesian Aldrich-McKelvey Scaling in R via Stan

Rendered fromhbamr.Rmdusingknitr::rmarkdownon Mar 05 2025.

Last update: 2025-03-04
Started: 2023-02-05