hdbayes

Bayesian Analysis of Generalized Linear Models with Historical Data

CRAN Package

User-friendly functions for leveraging (multiple) historical data set(s) for generalized linear models. The package contains functions for sampling from the posterior distribution of a generalized linear model using the prior induced by the Bayesian hierarchical model, power prior by Ibrahim and Chen (2000) , normalized power prior by Duan et al. (2006) , normalized asymptotic power prior by Ibrahim et al. (2015) , commensurate prior by Hobbs et al. (2011) , robust meta-analytic-predictive prior by Schmidli et al. (2014) , the latent exchangeability prior by Alt et al. (2023) , and a normal (or half-normal) prior. Functions for computing the marginal log-likelihood under each of the implemented priors are also included. The package compiles all the 'CmdStan' models once during installation using the 'instantiate' package.


Documentation


Team


Insights

Last 30 days

Last 365 days

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Depends1 package
  • Imports10 packages
  • Suggests7 packages