Comprehensive Bayesian Model Diagnostics and Comparison Tools
Overview
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.
Initial CRAN Release
New Features
- **MCMC Diagnostics** (3 functions)
mcmc_diagnostics_summary(): Comprehensive convergence checkseffective_sample_size_diagnostics(): Detailed ESS analysishierarchical_convergence(): Hierarchical model diagnostics- **Posterior Predictive Checks** (5 functions)
posterior_predictive_check(): Full PPC with test statisticsautomated_ppc(): Automated diagnostic screeninggraphical_ppc(): Publication-quality visualizationsppc_crossvalidation(): LOO-PIT calibration checksbayesian_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 → priorsprior_sensitivity(): Robustness assessmentprior_robustness(): Multi-dimensional sensitivity- **Model Comparison** (3 functions)
model_comparison_suite(): LOO/WAIC/Bayes R² comparisonbayes_factor_comparison(): Bridge sampling Bayes Factorspredictive_performance(): Predictive accuracy metrics- **Utilities & Reporting** (4 functions)
extract_posterior_unified(): Cross-package posterior extractiondiagnostic_report(): HTML/PDF report generation
Package Integration
- Seamless integration with
brms,rstan, andrstanarm - Support for
cmdstanrandcodapackages - 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
- 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
Documentation
- 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
Repository
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.
Dependencies
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-01-14 · current release
- RR 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")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.
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.