English

hdbayes: An R Package for Bayesian Analysis of Generalized Linear Models Using Historical Data

Methodology 2025-06-26 v1 Computation

Abstract

There has been increased interest in the use of historical data to formulate informative priors in regression models. While many such priors for incorporating historical data have been proposed, adoption is limited due to access to software. Where software does exist, the implementations between different methods could be vastly different, making comparisons between methods difficult. In this paper, we introduce the R package hdbayes, an implementation of the power prior, normalized power prior, Bayesian hierarchical model, robust meta-analytic prior, commensurate prior, and latent exchangeability prior for generalized linear models. The bulk of the package is written in the Stan programming language, with user-friendly R wrapper functions to call samplers.

Keywords

Cite

@article{arxiv.2506.20060,
  title  = {hdbayes: An R Package for Bayesian Analysis of Generalized Linear Models Using Historical Data},
  author = {Ethan M. Alt and Xinxin Chen and Luiz M. Carvalho and Joseph G. Ibrahim},
  journal= {arXiv preprint arXiv:2506.20060},
  year   = {2025}
}

Comments

34 pages, 3 figures. R package 'hdbayes' is available on CRAN and at https://github.com/ethan-alt/hdbayes

R2 v1 2026-07-01T03:32:24.148Z