Understand and Describe Bayesian Models and Posterior Distributions
Overview
Provides utilities to describe posterior distributions and Bayesian models. It includes point-estimates such as Maximum A Posteriori (MAP), measures of dispersion (Highest Density Interval - HDI; Kruschke, 2015 doi:10.1016/C2012-0-00477-2) and indices used for null-hypothesis testing (such as ROPE percentage, pd and Bayes factors). References: Makowski et al. (2021) doi:10.21105/joss.01541.
Changes
sensitivity_to_prior()now supports models from package *brms*. All slopes need a normal, student_t, or cauchy prior.p_rope()now actually is just a wrapper forrope(ci = 1).equivalence_test()methods gain aci_methodargument passed torope()to select the type of credible interval used in the ROPE calculation (#777).bayesian_as_frequentist()gains arespargument to convert one response of a multivariate *brms* model (easystats/performance#908).
Bug fixes
bayesian_as_frequentist()now works for linear mixed models from *BayesFactor* (with random factors set inwhichRandom). They are refit withlme4::lmer()(#505).
Show all changes in 0.20.0Hide the rest of the changes in 0.20.0
- If suggested packages are not installed, the Bayes factor vignette now builds. Before, its inline code ran and failed with "object not found".
equivalence_test()no longer prints "HDI" columns when using other CI methods (such as the default ETI).- Fixed issue with printing wrong column order of multiple CI columns in
describe_posterior(). - If the model formula transforms the response, for example with
scale(y)orsqrt(y),rope_range()now uses the standard deviation of the transformed response. For linear models, the default ROPE is then on the same scale as the model parameters. - For multivariate *brms* models with
resp_weights()and ordinal responses,rope_range()now returns one ROPE per response, without a warning. - If
simulate_prior()orcheck_prior()cannot simulate a prior, for example a laplace or flat prior, it now gives a warning that names the parameters. Before, it returned a column ofNAwith no warning. - For *brms* models with a censored outcome, such as
y | cens(censored),mediation()now works (#631). Before, it failed with an indexing error, such as "subscript out of bounds". - If the mediator enters the outcome model with
mo(),mediation()now gives an informative error (#576). If a coefficient for thetreatmentormediatoris not in the model, the error names it. Before, both cases failed with an indexing error, such as "undefined columns selected".
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- WARNING12 OK, 1 WARNING2026-10-01
- OK13 OK2026-09-16
- ERROR9 OK, 3 WARNING, 1 ERROR2026-09-04
- WARNING11 OK, 2 WARNING2026-05-25
Show 4 earlier changesHide 4 earlier changes
- ERROR11 OK, 2 ERROR2026-05-22
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 62 (11 internal)includes a package overview page
- Examples that run
- 64%30 run in a plain check (21 of them under a condition) · 16 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 96%
- Documented parameters
- 98%
- Return-value docs
- 58%
- Help pages citing references
- 47%
Downloads
Repository
- PRs merged (all time)
- 94%
- Median days to close, 50 most recently updated closed issues
- 33
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
20 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/easystats/bayestestr on 2026-10-11.
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-10-01
pkgdown site last built 2026-10-01, before release 0.20.0 (2026-10-16)
Show all practicesHide 4 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-11-16Pull request: opened by its own accountCommits: 2 by its own account · at least 2 crediting it in the message
- Gemini CLIfirst seen 2026-02-05Seen in the repository: GEMINI.mdNamed in .Rbuildignore: GEMINI.md
- Copilot code reviewCommits: at least 2 accepting its review suggestions
Dependencies
Installing bayestestR adds 2 packages (0 with compiled code, 1.6 MB of source tarballs). Heaviest: insight 1.2 MB, datawizard 432 KB.
Show all 44 packagesHide all 44 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.20.0Latest
- 0.19.02026-09-09 · diff ↗
- 0.18.12026-05-24 · diff ↗
- 0.18.02026-05-21 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.17.0
- 0.16.12025-07-01 · diff ↗
- 0.16.02025-05-20 · diff ↗
- 0.15.32025-04-28 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.15.22025-02-07 · diff ↗
- 0.15.12025-01-17 · diff ↗
- 0.15.0
- 0.14.02024-07-24 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.13.22024-02-12 · diff ↗
Show 30 earlier eventsHide 30 earlier events
- RR 4.3.0 released · 2023-04-21
- 0.13.1
- 0.13.02022-09-18 · diff ↗ ·
added 4 exports
contr.equalprior, contr.equalprior_deviations, contr.equalprior_pairs, p_to_bf - 0.12.1
- RR 4.2.0 released · 2022-04-22
- 0.11.52021-10-30 · diff ↗
- 0.11.0
- 0.10.5
- 0.10.0
- RR 4.1.0 released · 2021-05-18
- 0.9.02021-04-08 · diff ↗ ·
removed 1 export
mhdioradded 10 exports
bic_to_bf, distribution_binom, distribution_chisq, distribution_gaussian, distribution_student_t, distribution_t, print_html, print_md, reshape_draws, reshape_iterations - 0.8.22021-01-26 · diff ↗ ·
removed 2 exports
bayesfactor_pointull, bf_pointulladded 2 exports
bayesfactor_pointnull, bf_pointnull - 0.8.0
- 0.7.5
- 0.7.2
- 0.7.02020-06-19 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.6.02020-04-20 · diff ↗
- 0.5.3
- 0.5.22020-02-12 · diff ↗
- 0.5.12020-01-27 · diff ↗
- 0.5.02020-01-18 · diff ↗ ·
removed 1 export
bayesfactor_savagedickeyadded 13 exports
bayesfactor_pointull, bayesfactor_rope, bf_inclusion, bf_models, bf_parameters, bf_pointull, bf_restricted, bf_rope, distribution_tweedie, mhdior, p_pointnull, si, weighted_posteriors - 0.4.02019-10-20 · diff ↗ ·
added 7 exports
bayesian_as_frequentist, convert_bayesian_as_frequentist, distribution_binomial, overlap, p_significance, simulate_correlation, simulate_ttest - 0.3.0
- 0.2.52019-08-06 · diff ↗ ·
removed 2 exports
estimate_probability, probability_atadded 5 exports
bayesfactor_parameters, bayesfactor_restricted, eti, reshape_ci, sensitivity_to_prior - 0.2.22019-06-20 · diff ↗ ·
added 5 exports
convert_p_to_pd, convert_pd_to_p, distribution_mixture_normal, p_to_pd, pd_to_p - 0.2.02019-05-29 · diff ↗ ·
added 24 exports
area_under_curve, auc, bayesfactor, bayesfactor_inclusion, bayesfactor_models, bayesfactor_savagedickey, describe_posterior, describe_prior, diagnostic_posterior, distribution, distribution_beta, distribution_cauchy, distribution_chisquared, distribution_custom, distribution_normal, distribution_poisson, distribution_student, distribution_uniform, effective_sample, estimate_density, estimate_probability, mcse, point_estimate, probability_at - RR 3.6.0 released · 2019-04-26
- 0.1.02019-04-08
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2019-04-08
- Total releases
- 37 / 7 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 0.4 KB / 1 file
- Download size
- 576 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("bayestestR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.01541.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.