Skip to content

bayesDiagnostics

0.1.0Package record

Comprehensive Bayesian Model Diagnostics and Comparison Tools

0packages depend
4.6Kdownloads / year
60.2%test coverage
13/13flavors OK

Overview

About

Provides comprehensive tools for Bayesian model diagnostics and comparison. Includes prior sensitivity analysis, posterior predictive checks (Gelman et al. (2013) doi:10.1201/b16018), advanced model comparison using Pareto-smoothed importance sampling leave-one-out cross-validation (Vehtari et al. (2017) doi:10.1007/s11222-016-9696-4), convergence diagnostics, and prior elicitation tools. Integrates with 'brms' (Burkner (2017) doi:10.18637/jss.v080.i01), 'rstan', and 'rstanarm' packages for comprehensive Bayesian workflow diagnostics.

Changes in 0.1.0

Initial CRAN Release

New Features

  • **MCMC Diagnostics** (3 functions)
  • mcmc_diagnostics_summary(): Comprehensive convergence checks
  • effective_sample_size_diagnostics(): Detailed ESS analysis
  • hierarchical_convergence(): Hierarchical model diagnostics
  • **Posterior Predictive Checks** (5 functions)
  • posterior_predictive_check(): Full PPC with test statistics
  • automated_ppc(): Automated diagnostic screening
  • graphical_ppc(): Publication-quality visualizations
  • ppc_crossvalidation(): LOO-PIT calibration checks
  • bayesian_p_values(): Custom test statistic utilities
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
  • **Prior Specification & Sensitivity** (3 functions)
  • prior_elicitation_helper(): Expert knowledge → priors
  • prior_sensitivity(): Robustness assessment
  • prior_robustness(): Multi-dimensional sensitivity
  • **Model Comparison** (3 functions)
  • model_comparison_suite(): LOO/WAIC/Bayes R² comparison
  • bayes_factor_comparison(): Bridge sampling Bayes Factors
  • predictive_performance(): Predictive accuracy metrics
  • **Utilities & Reporting** (4 functions)
  • extract_posterior_unified(): Cross-package posterior extraction
  • diagnostic_report(): HTML/PDF report generation

Package Integration

  • Seamless integration with brms, rstan, and rstanarm
  • Support for cmdstanr and coda packages
  • Comprehensive vignette with 18 function examples
  • Complete workflow demonstration

Documentation

  • 800+ line introductory vignette
  • Complete function reference documentation
  • Interpretation guidelines for all diagnostics
  • Further reading section with key references

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 9.7 min · r-release-linux-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 2 earlier changesHide 2 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.0
READMEYes · 266 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Description cites a JSS article
Help pages
71 (52 internal)includes a package overview page
Examples that run
0%4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
25%
Documented parameters
99%
Return-value docs
100%
Help pages citing references
0%

Downloads

4.6K
CRAN downloads in the past year
Rank #11,172 · ~12/day · ~379/mo
Daily download trend is not available in this view yet.
31630 days
95790 days
4.6K1 year
Compare downloads with other packages →
Also on77 r2u19 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-08-02
Responsiveness
not measured
PracticesBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/ikrakib/bayesdiagnostics on 2026-10-22.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
22 external dependencies (excludes base and recommended)

Installing bayesDiagnostics adds 72 packages (35 with compiled code, 75 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-01-14 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-01-14
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
73 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bayesDiagnostics")
Rakib, I. K. (2026). bayesDiagnostics: Comprehensive Bayesian Model Diagnostics and Comparison Tools (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.bayesDiagnostics

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bayesDiagnostics version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy