Skip to content

glmbayes

Bayesian Generalized Linear Models (IID Samples)

v0.9.6 · Jun 21, 2026 · GPL-2

Description

Provides Bayesian linear and generalized linear model fitting with independent and identically distributed (iid) posterior samples. The main functions mirror R's lm() and glm() interfaces while adding prior family specifications for Gaussian, Poisson, binomial, and Gamma models with log-concave likelihoods. Sampling for supported non-conjugate models uses accept-reject methods based on likelihood subgradients as in Nygren and Nygren (2006) <doi:10.1198/016214506000000357>. The package also includes tools for prior setup, posterior summaries, prediction, diagnostics, simulation, vignettes, and optional 'OpenCL' acceleration for larger models.

Downloads

CRAN

534

Last 30 days

6624th

993

Last 90 days

993

Last year

Trend: +16.3% (30d vs prior 30d)

r2u CRAN

40

Last 30 days

96

Last 90 days

96

Last year

Trend: -28.6% (30d vs prior 30d)

autoCRAN

0

Last 7 days

10

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘Chapter-00.Rmd’ using rmarkdown
--- finished re-building ‘Chapter-00.Rmd’

--- re-building ‘Chapter-01.Rmd’ using rmarkdown
--- finished re-building ‘Chapter-01.Rmd’

--- re-building ‘Chapter-
...[truncated]...
shed re-building ‘Chapter-A11.Rmd’

--- re-building ‘Chapter-A12.Rmd’ using rmarkdown
--- finished re-building ‘Chapter-A12.Rmd’

SUMMARY: processing the following file failed:
  ‘Chapter-A03.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 5, 2026

Code

Structure

Lines of code

77,705

Files

609

Compiled share

44.4%

Has compiled src

Yes

Language breakdown

R 13,313 (17.1%)C/C++/src 34,479 (44.4%)Tests 596 (0.8%)Docs 9,522 (12.3%)Vignettes 19,795 (25.5%)

API

Exported functions

53

Internal functions

116

Recent export changes

v0.9.6+4 dBeta, multi_prior_setup, rBeta_reg +1 more  −9 add_to_libpath_linux, add_to_path_linux, add_to_path_windows 6 more
v0.9.3+58 EnvelopeBuild, EnvelopeCentering, EnvelopeDispersionBuild +55 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.04

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

96.8%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

42.9%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

3

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2026-05-04

Latest release

2026-06-21

Avg cadence

24 days

Cold removal rate

100%

Dep drift

3

LOC over versions

v0.9.3: 76,653 LOCv0.9.5: 77,161 LOCv0.9.6: 77,705 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies MASS coda Rcpp RcppParallel Rdpack (>= 0.11-0) opencltools nmathopencl opencltools glmbayes

Version History

3 tracked
updated 0.9.6 ← 0.9.5 diff Jun 21, 2026
updated 0.9.5 ← 0.9.3 diff May 18, 2026
new 0.9.3 May 4, 2026