{
  "_id": "6ac78b19de46216d5edd1f42",
  "Package": "hbamr",
  "Title": "Hierarchical Bayesian Aldrich-McKelvey Scaling via 'Stan'",
  "Version": "2.4.7",
  "Authors@R": "person(\"Jørgen\", \"Bølstad\", , \"jorgen.bolstad@stv.uio.no\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-7623-5741\"))",
  "Description": "Perform hierarchical Bayesian Aldrich-McKelvey scaling\nusing Hamiltonian Monte Carlo via 'Stan'. Aldrich-McKelvey\n('AM') scaling is a method for estimating the latent positions\nof survey respondents and external objects on a common scale\nusing positional survey data. The hierarchical versions of the\nBayesian 'AM' model included in this package outperform other\nversions both in terms of yielding meaningful posterior\ndistributions for respondent positions and in terms of\nrecovering true respondent positions in simulations. The\npackage contains functions for preparing data, fitting models,\nextracting estimates, plotting key results, and comparing\nmodels using cross-validation. The original version of the\ndefault model is described in Bølstad (2024)\n<doi:10.1017/pan.2023.18>.",
  "License": "GPL (>= 3)",
  "URL": "https://jbolstad.github.io/hbamr/",
  "BugReports": "https://github.com/jbolstad/hbamr/issues",
  "Biarch": "true",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-08 12:14:36 UTC",
    "User": "root"
  },
  "Author": "Jørgen Bølstad [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-7623-5741>)",
  "Maintainer": "Jørgen Bølstad <jorgen.bolstad@stv.uio.no>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-23 04:34:43 UTC",
  "RemoteUrl": "https://github.com/cran/hbamr",
  "RemoteRef": "HEAD",
  "RemoteSha": "6e75022c902f025b4682c6685d940a3d67a09d80",
  "_user": "cran",
  "_type": "src",
  "_file": "hbamr_2.4.7.tar.gz",
  "_fileid": "https://r2.ropensci.org/bb7835ae286b0887c956af136e7475e1f8499d16b136d46f9fdf6bd5d72b06a0",
  "_filesize": 940173,
  "_sha256": "bb7835ae286b0887c956af136e7475e1f8499d16b136d46f9fdf6bd5d72b06a0",
  "_expires": "2027-01-16T12:22:46.000Z",
  "_created": "2026-10-08T12:14:36.000Z",
  "_published": "2026-10-08T12:22:48.996Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113305828982,
      "time": 257,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11549378835"
    },
    {
      "job": 113305828749,
      "time": 287,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11549528750"
    },
    {
      "job": 113305828955,
      "time": 222,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11548924715"
    },
    {
      "job": 113305828760,
      "time": 284,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11550093254"
    },
    {
      "job": 113303371305,
      "time": 378,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11549592967"
    },
    {
      "job": 113305828860,
      "time": 195,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11549008878"
    },
    {
      "job": 113305828769,
      "time": 363,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11550370207"
    },
    {
      "job": 113305828921,
      "time": 339,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11549468891"
    },
    {
      "job": 113305828818,
      "time": 321,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11549518850"
    },
    {
      "job": 113305828765,
      "time": 297,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11549213970"
    }
  ],
  "_upstream": "https://github.com/cran/hbamr",
  "_commit": {
    "id": "6e75022c902f025b4682c6685d940a3d67a09d80",
    "author": "Jørgen Bølstad <jorgen.bolstad@stv.uio.no>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.4.7\n",
    "time": 1782189283
  },
  "_maintainer": {
    "name": "Jørgen Bølstad",
    "email": "jorgen.bolstad@stv.uio.no",
    "orcid": "0000-0002-7623-5741"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.7",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.9.1",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.1.4",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.1",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.26.22",
      "role": "LinkingTo"
    },
    {
      "package": "colorspace",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "future.apply",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "loo",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.7",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.1.4",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.1",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.2.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-18",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "2.4.5",
      "date": "2026-02-14"
    },
    {
      "name": "2.4.6",
      "date": "2026-04-28"
    },
    {
      "name": "2.4.7",
      "date": "2026-06-23"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 568,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hbamr"
  },
  "_devurl": "https://github.com/jbolstad/hbamr",
  "_pkgdown": "https://jbolstad.github.io/hbamr/",
  "_searchresults": 0,
  "_topics": [
    "onetbb",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hbamr.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt"
  ],
  "_homeurl": "https://github.com/jbolstad/hbamr",
  "_realowner": "jbolstad",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.5",
      "date": "2023-03-14"
    },
    {
      "version": "1.1.1",
      "date": "2023-04-24"
    },
    {
      "version": "1.1.3",
      "date": "2023-06-07"
    },
    {
      "version": "1.1.6",
      "date": "2023-06-09"
    },
    {
      "version": "1.2.0",
      "date": "2023-09-25"
    },
    {
      "version": "2.0.1",
      "date": "2024-01-08"
    },
    {
      "version": "2.1.0",
      "date": "2024-01-17"
    },
    {
      "version": "2.1.1",
      "date": "2024-01-25"
    },
    {
      "version": "2.1.2",
      "date": "2024-02-07"
    },
    {
      "version": "2.2.0",
      "date": "2024-02-14"
    },
    {
      "version": "2.2.1",
      "date": "2024-02-23"
    },
    {
      "version": "2.3.0",
      "date": "2024-03-31"
    },
    {
      "version": "2.3.1",
      "date": "2024-06-04"
    },
    {
      "version": "2.3.2",
      "date": "2024-09-23"
    },
    {
      "version": "2.4.0",
      "date": "2025-01-26"
    },
    {
      "version": "2.4.1",
      "date": "2025-02-13"
    },
    {
      "version": "2.4.2",
      "date": "2025-03-05"
    },
    {
      "version": "2.4.4",
      "date": "2025-08-18"
    },
    {
      "version": "2.4.5",
      "date": "2026-02-16"
    },
    {
      "version": "2.4.6",
      "date": "2026-04-28"
    },
    {
      "version": "2.4.7",
      "date": "2026-06-23"
    }
  ],
  "_exports": [
    "fbam",
    "get_est",
    "get_plot_data",
    "hbam",
    "hbam_cv",
    "plot_by_group",
    "plot_over_self",
    "plot_respondents",
    "plot_stimuli",
    "prep_data",
    "prep_data_cv"
  ],
  "_datasets": [
    {
      "name": "LC1980",
      "title": "1980 Liberal-Conservative Scales",
      "object": "LC1980",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Self",
        "Carter",
        "Reagan",
        "Kennedy",
        "Anderson",
        "Republicans",
        "Democrats"
      ],
      "rows": 888,
      "table": true,
      "tojson": true
    },
    {
      "name": "LC2012",
      "title": "2012 Liberal-Conservative Scales",
      "object": "LC2012",
      "class": [
        "data.frame"
      ],
      "fields": [
        "caseid",
        "Self",
        "Obama",
        "Romney",
        "Democrats",
        "Republicans"
      ],
      "rows": 5914,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "hbamr-package",
      "title": "Hierarchical Bayesian Aldrich-McKelvey Scaling via Stan",
      "topics": [
        "hbamr-package",
        "hbamr"
      ]
    },
    {
      "page": "fbam",
      "title": "Fit an FBAM model using optimization",
      "topics": [
        "fbam"
      ]
    },
    {
      "page": "get_est",
      "title": "Extract point estimates or other summaries of marginal posterior distributions",
      "topics": [
        "get_est"
      ]
    },
    {
      "page": "get_plot_data",
      "title": "Extract data for plotting results from an HBAM model",
      "topics": [
        "get_plot_data"
      ]
    },
    {
      "page": "hbam",
      "title": "Fit an HBAM model",
      "topics": [
        "hbam"
      ]
    },
    {
      "page": "hbam_cv",
      "title": "Perform K-fold cross-validation",
      "topics": [
        "hbam_cv"
      ]
    },
    {
      "page": "LC1980",
      "title": "1980 Liberal-Conservative Scales",
      "topics": [
        "LC1980"
      ]
    },
    {
      "page": "LC2012",
      "title": "2012 Liberal-Conservative Scales",
      "topics": [
        "LC2012"
      ]
    },
    {
      "page": "plot_by_group",
      "title": "Plot posterior densities of parameter averages by group",
      "topics": [
        "plot_by_group"
      ]
    },
    {
      "page": "plot_over_self",
      "title": "Plot individual parameter estimates over self-placements",
      "topics": [
        "plot_over_self"
      ]
    },
    {
      "page": "plot_respondents",
      "title": "Plot estimated respondent positions",
      "topics": [
        "plot_respondents"
      ]
    },
    {
      "page": "plot_stimuli",
      "title": "Plot estimated stimulus positions",
      "topics": [
        "plot_stimuli"
      ]
    },
    {
      "page": "prep_data",
      "title": "Prepare data to fit an HBAM or FBAM model",
      "topics": [
        "prep_data"
      ]
    },
    {
      "page": "prep_data_cv",
      "title": "Prepare data for a K-fold cross-validation of an HBAM model",
      "topics": [
        "prep_data_cv"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/hbamr/raw/HEAD/man/figures/logo.png",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "codetools",
    "colorspace",
    "cpp11",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "farver",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lifecycle",
    "listenv",
    "loo",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "otel",
    "parallelly",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "progressr",
    "ps",
    "purrr",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "hbamr.Rmd",
      "filename": "hbamr.html",
      "title": "Hierarchical Bayesian Aldrich-McKelvey Scaling in R via Stan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example Data",
        "Preparing the Data",
        "Models",
        "Summary of Model Features",
        "Fitting",
        "Fitting via Optimization",
        "Execution Times",
        "Plotting",
        "Stimuli Positions",
        "Respondent Positions",
        "Individual Parameters over Self-Placements",
        "Shifting",
        "Stretching",
        "Flipping",
        "Additional Parameters",
        "Posterior Summaries",
        "Cross-Validation",
        "Diagnostics",
        "Limits to Exact Replication",
        "References"
      ],
      "created": "2023-03-14 17:30:02",
      "modified": "2026-06-23 04:34:43",
      "commits": 14
    }
  ],
  "_score": 2.4771212547196626,
  "_indexed": false,
  "_nocasepkg": "hbamr",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://jbolstad.r-universe.dev/hbamr",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.7",
      "date": "2026-10-08T12:18:43.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/24326e48e4cb810f07bef70002f4d850f2d559167893ee0434ba4a52073be78d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.7",
      "date": "2026-10-08T12:18:46.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/cc1df38a36a3fba2594834714da489aa84bc36131633e7d205fad0ab1ebf61f6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.4.7",
      "date": "2026-10-08T12:18:07.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/4c9d58980918e7c94c8ed166ef9da19131ff573fa2ec94c5352f0f4465d20b5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.4.7",
      "date": "2026-10-08T12:18:51.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/907c7bd0421188bf21dea24ca109d1d2b8dbfbc16e4b2fa0b4d72b63da45dd78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.7",
      "date": "2026-10-08T12:18:33.000Z",
      "arch": "emscripten",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/72c60547e1743518a29413a8514f9bf17cb21b4896f5feac39e232bc0e2ddc3a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.7",
      "date": "2026-10-08T12:20:07.000Z",
      "arch": "aarch64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/ad13b17bf52e2a89de7dfe0188d8b6251290e991ebf7d131514539c97c225e55",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.7",
      "date": "2026-10-08T12:18:00.000Z",
      "arch": "x86_64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/52eea304e4713d76de5a684b8148e268ebe707e925f5cf68310f2b6b430d0629",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.4.7",
      "date": "2026-10-08T12:19:26.000Z",
      "arch": "aarch64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/6a993df71a560487591927ec6497f2496f709d3d2256aaee417b4010f8d956da",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.4.7",
      "date": "2026-10-08T12:17:57.000Z",
      "arch": "x86_64",
      "commit": "6e75022c902f025b4682c6685d940a3d67a09d80",
      "fileid": "https://r2.ropensci.org/61f793ebb6cf54e013ae3f45a081bd15f7b488df4afa0d8a3b8b917368dc46e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37774910135"
    }
  ]
}