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) doi:10.1214/ss/1009212673, normalized power prior by Duan et al. (2006) doi:10.1002/env.752, normalized asymptotic power prior by Ibrahim et al. (2015) doi:10.1002/sim.6728, commensurate prior by Hobbs et al. (2011) doi:10.1111/j.1541-0420.2011.01564.x, robust meta-analytic-predictive prior by Schmidli et al. (2014) doi:10.1111/biom.12242, the latent exchangeability prior by Alt et al. (2023) doi:10.48550/arXiv.2303.05223, 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

This package has been downloaded 127 times in the last 30 days. More than a random curiosity, but not quite a blockbuster. Still, it's gaining traction! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 2 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
0 downloadsMar 3, 2025
0 downloadsMar 4, 2025
5 downloadsMar 5, 2025
3 downloadsMar 6, 2025
3 downloadsMar 7, 2025
0 downloadsMar 8, 2025
1 downloadsMar 9, 2025
3 downloadsMar 10, 2025
4 downloadsMar 11, 2025
7 downloadsMar 12, 2025
1 downloadsMar 13, 2025
2 downloadsMar 14, 2025
8 downloadsMar 15, 2025
2 downloadsMar 16, 2025
1 downloadsMar 17, 2025
9 downloadsMar 18, 2025
3 downloadsMar 19, 2025
8 downloadsMar 20, 2025
9 downloadsMar 21, 2025
2 downloadsMar 22, 2025
6 downloadsMar 23, 2025
10 downloadsMar 24, 2025
4 downloadsMar 25, 2025
2 downloadsMar 26, 2025
5 downloadsMar 27, 2025
3 downloadsMar 28, 2025
7 downloadsMar 29, 2025
3 downloadsMar 30, 2025
3 downloadsMar 31, 2025
7 downloadsApr 1, 2025
4 downloadsApr 2, 2025
2 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
0
10

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

Last 365 days

This package has been downloaded 1,970 times in the last 365 days. Now we’re talking! This work is officially 'heard of in academic circles', just like those wild research papers on synthetic bananas. The day with the most downloads was Apr 11, 2024 with 43 downloads.

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

  • Imports9 packages
  • Suggests5 packages